Request to tweak 146 (cast spell at creature).
Atm param2 can be either 0 (cast normally, at the level specified by param1) or 1 (cast instantly at character's level). What my problem is, I've sorted all instances of 12 into several 'library' spells, so the original source instead 146s the library at the specified level.
Here is the problem - if I use param2=0 then items display casting gestures, even if the lib.spl itself has speed set to zero, and it stops te attacking sequence, so the char makes a shot then stands idly. Both problems can be solved by using param2=1, but then I can't store multiple headers in a single file. It's not that vital though, since there're not that many items that need to be tweaked.
Still, if it's not too complicated, I want to ask to let 146 recognize param2=2, which would cast instantly and take param1 into account as well.
The effect looks pretty straightforward.
A param2 = 0 sends a message that to ClearAllActions() and then adds ForceSpellRES(S:RES*, O:Target, I:CastingLevel) to the end of the action queue
A param2 != 0 sends a message that immediately executes the CastSpell() basic action
I don't know how this effect is normally used in the game, and for such spells do they have junk in param1?
So can someone point to me some spells I can have a look at?
Edited by Ascension64, 24 February 2011 - 02:12 AM.