summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/System.c4g/MagicFlint.c
diff options
context:
space:
mode:
Diffstat (limited to 'TemplePushing.c4s/System.c4g/MagicFlint.c')
-rw-r--r--TemplePushing.c4s/System.c4g/MagicFlint.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/TemplePushing.c4s/System.c4g/MagicFlint.c b/TemplePushing.c4s/System.c4g/MagicFlint.c
new file mode 100644
index 0000000..a158248
--- /dev/null
+++ b/TemplePushing.c4s/System.c4g/MagicFlint.c
@@ -0,0 +1,26 @@
+/*-- Summon flint --*/
+
+#strict 2
+
+#appendto MGFL
+
+public func Activate(object caster, object realcaster)
+{
+ var result = CheckEffect("FlintNSpell", 0, 125);
+ if (result)
+ {
+ RemoveObject();
+ return result != -1;
+ }
+
+ Sound("Magic*");
+ CreateParticle("MSpark", 0,0, 1000, RGBa(255,50,50,150));
+
+ if (realcaster) caster = realcaster;
+
+ var flints = [FLNT, SFLN, EFLN];
+ caster->CreateContents(flints[Random(GetLength(flints))]);
+
+ RemoveObject();
+ return 1;
+}