Avenger20A Posted August 27, 2008 Share Posted August 27, 2008 I want to write a script that adds a magic to hand to hand {I know there are mods that do that already but I want it to be an effect with out a timer eg. I don't want fire on target for 5 seconds} Heres what I got so far!*******************************************scriptname MyHandtoHandScript float timer Begin ScriptEffectStart if ( timer < 0 && MM.h2hOut == 1 ) :{If the spell is ineffect and Handtohand is active} set self to getself RemoveAllItems :{this line is where I want to put interchangible magic effects, fire, ice, light.etc.} endifEnd ****************************************** I keep getting an error about "MM.h2hOut" being an unrecognized command or function. I got the "if ( timer < 0 && MM.h2hOut == 1 )" from one of the fieryfists scripts but that was the limit of my understanding. Can anyone offer some help? Link to comment Share on other sites More sharing options...
LoginToDownload Posted August 27, 2008 Share Posted August 27, 2008 I think MM.h2hOut is a Quest script variable, MM being the quest and h2hOut the variable. In all probability, h2hOut equals 1 if the player is in a "combat" stance and doesn't have a weapon equipped, and 0 otherwise. A fair warning, though, you have a lot more to go aside from that to add an "Enchantment" to H2H. Unless I'm mistaken, the way of accomplishing it is to have those who come close to you be put under a magic effect by repeatedly casting an AoE spell right at the player and, if they're hurt while under the effect, check if the player is still close to them and attacking. If so, move an activator to the target and have it cast the appropriate magic effect at the target. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.