Jump to content

Need a simple script


mechatech

Recommended Posts

Be patient my friend,

regarding this issue :smile: I am forwarding this to my teacher

Forli, author of Vampire Revolution

I'll edit this post with answers, of course after he replied my message

 

EDIT : Rejoice ! :D the answer is here.

 

My teacher said :

 

Create a new enchantment and attach it to the cloak. In this enchantment, add the following Script effect (since it's an enchantment, it will only run when the item is equipped):
scn Mg06JskarInvisEnchScript

short invisible

Begin _ScriptEffectFinish   ;when the item is equipped and so the enchantment wear off...
   RemoveSpellNS Mg06JskarInvis
   Return    ;prevent the ScriptEffectUpdate from running
End

Begin _ScriptEffectUpdate   ;any frame the cloak is equipped and so the enchantment is active...
   If IsSneaking    ;check for the sneaking condition
      AddSpellNS SpellNS Mg06JskarInvis   ;and eventually add the ability
   Else
      RemoveSpellNS Mg06JskarInvis    ;or remove it.
   EndIf
End
Edited by lubronbrons
Link to comment
Share on other sites

  • Recently Browsing   0 members

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