Help - Search - Members - Calendar
Full Version: Please Help me with HandtoHand Script
The Nexus Forums > Specific Games > Oblivion > Oblivion Modifications > General Mod Talk
avenger2.0
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.}
endif
End

******************************************

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?
LoginToDownload
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.