Jump to content

Setting scripts


ozzgarth

Recommended Posts

IIRC, the safest way to do it is to create an ability with a script effect which makes the modification on ScriptEffectStart and undoes is on ScriptEffectFinish, then a second script adds/removes it from the wielder:

 

SCN ... ;Ability script -> Magic Effect script

float OldVal

Begin ScriptEffectStart
set OldVal to fabsorbmovespeed
set fabsorbmovespeed to ....  ;**Enter new value here**
end

Begin ScriptEffectFinish
set fabsorbmovespeed to OldVal
end

 

SCN ... ;Item script -> Object script

Begin OnEquip Player
addspell ... ;ObjectID of ability
end

Begin OnUnEquip Player
removespell ... ;ObjectID of ability
end

 

Baring minor syntax/function name errors, that should pretty much handle what you're after.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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