Jump to content

Toggle able spell effects


kruddpm

Recommended Posts

hi does anyone no how i can edit a spell or a power so it is permanent until i either cast a the same spell again or cast a spell to turn it off?
Link to comment
Share on other sites

Scriptname Your Scriptname here ;Name your Script

 

ref me

 

Begin ScriptEffectStart

Set me to getself

If ( me.IsSpellTarget BlankSpace == 0 )

me.addSpell BlankSpace

else

me.removeSpell Blankspace

endif

 

End

===============================================================================

ok say you wanted to make a toggle-able lifedetect spell. first make a life detect ABILITY in the CS and give it a unique ID example: KSPLifeDetectorAB. then make a spell using the above script and where it says BlankSpace put the unique ID of the Ability. set the script to be a magic effect. then add it to a vendor or make a spell tome or something. you use the scripted spell to add or remove the ability anytime yoyu want. if you need more detailed instructions i can show some screens. i just did this for my Wraith Race so they can detect life around them. i got this script from the Cobl Adaption Toggle script and all i did was switch the name and spell references.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...