Idea: a spell what will give you an enemy unit for a few seconds, after that the unit explodes, dealing splash damage.
For that, i wanted to cast mind control and fire a weapon, which has a lot of wait in it's iscript (like a time bomb).
Now I noticed that
-I can't "useweapon [id of mind control]" in a spellcasting animation, sc crashes.
-Mind Control uses no spellcast animation where i could use "useweapon [id of my weapon]", even if datedit says otherwise.
is there a way to accomplish this effect? maybe with missile iscript? I experimented with sigorder a little, like
sigorder 182 #id of mind control order
castspell
it simply does nothing (i gave the unit even the regular mind control buttion to see if it has the requirements to cast this spell)
Ok, here is my idea on how I would make such a spell. Use it, modify it, or call me a n00b or an idiot, idc.
STEP 1: Copy a weapon of arclite shock cannon into a slot 121 and set it to instant kill (10000) and it max it range (without crashes)
STEP 2: Edit the spellcasting animation:
UnitUnknownWTFCastSpell:
nobrkcodestart
playfram blabla
wait 3
#etc..
cast spell
wait 60
useweapon 121
nobrkcodeend
goto #whatever
STEP 3: In Firegraft, add a button to the unit you want to give this hardcore attack, set its icon to something even more hardcore, and give it action: use tech #mind control ID here.
That's step 4 compile into exe, run the fucking game, ye know the deal..
So basically what this does, is giving a unit a mind controlling spell, which has into its animation programmed, to wait 6 seconds and then use a weapon with unlimited range that explodes on the target.
Notice that there are 2 side effects with this method:
1) You can only give that to a unit that doesn't use any other spells (spellcasting animation)
2) The casting unit will freeze during the mind controlling time
Post has been edited 1 time(s), last time on May 10 2009, 12:19 pm by Dominus Sacerdus.
None.