Companion Ablitity

Post » Wed Jul 18, 2012 8:30 am

I would like "this ability" to only activate on player Sneak, then deactivate while standing. Is there anyone who could help me make a script for a companion's ability to activate on, Player IsSneaking and then deactivate on Is NotSneaking?

I really don't know how to make the script but the logic seems to be possible, any companion with "this ability" activates on;

Player IsSneaking == "this ability" 1
Player IsNotSneaking == "this ability" 0

The second part, don't think it would work if "this ability" is a Constant Ability since it would always be on, what about as Cast Once?


Thanks for any tips or help.
User avatar
Jynx Anthropic
 
Posts: 3352
Joined: Fri Sep 08, 2006 9:36 pm

Post » Wed Jul 18, 2012 6:00 am

What kind of ability are you trying to add--a spell, a boost in stats, etc? I'd try something like this:

if ( GetPCSneaking == 1 )	Companion->addSpell, "ExampleSpellName"elseif ( GetPCSneaking == 0 )	Companion->removeSpell, "ExampleSpellName"

Then again, I'm far from an expert and just sort of muddle my way through by trial and error, so take my advice with a grain of salt. :smile:
User avatar
Hella Beast
 
Posts: 3434
Joined: Mon Jul 16, 2007 2:50 am


Return to III - Morrowind