How to create toggleable power

Post » Mon Nov 19, 2012 10:38 am

My apologize if i fill the forum with question but i am working on a mod that is surely ambitious, and i need your help! Do you know how to create toggleable power?
User avatar
BRIANNA
 
Posts: 3438
Joined: Thu Jan 11, 2007 7:51 pm

Post » Sun Nov 18, 2012 9:01 pm

Easy easy easy.

Spell Property toggleAbility  Auto  Event OnEffectStart(Actor akTarget, Actor akCaster)     If akTarget.HasSpell(toggleAbility)          akTarget.RemoveSpell(toggleAbility)     Else          akTarget.AddSpell(toggleAbility, false)     EndIfEndEvent

Set up a script effect magic effect with that script attached, fill the property with the constant-effect ability you're wanting to toggle, and then make a spell with the script magic effect to act as the actual toggle.
User avatar
R.I.P
 
Posts: 3370
Joined: Sat Dec 01, 2007 8:11 pm

Post » Mon Nov 19, 2012 2:04 am

Easy easy easy.

Spell Property toggleAbility  Auto  Event OnEffectStart(Actor akTarget, Actor akCaster)	 If akTarget.HasSpell(toggleAbility)		  akTarget.RemoveSpell(toggleAbility)	 Else		  akTarget.AddSpell(toggleAbility, false)	 EndIfEndEvent

Set up a script effect magic effect with that script attached, fill the property with the constant-effect ability you're wanting to toggle, and then make a spell with the script magic effect to act as the actual toggle.

Hey my thanks! i am a newcomer in modding :D another thing, do you know if is it possible associate a power to a perk, so when you take the perk you unlock the power?
User avatar
Alan Whiston
 
Posts: 3358
Joined: Sun May 06, 2007 4:07 pm

Post » Sun Nov 18, 2012 8:56 pm

Hey my thanks! i am a newcomer in modding :biggrin: another thing, do you know if is it possible associate a power to a perk, so when you take the perk you unlock the power?

There's a "quest" section of the perk entry point menu, and it may be possible to use a quest stage to add the power to the player? However, I have not explored this "quest" part of the perk system at all, so I'm just speculating. I have no idea how it works :D
User avatar
Robert DeLarosa
 
Posts: 3415
Joined: Tue Sep 04, 2007 3:43 pm


Return to V - Skyrim