ozzgarth Posted August 31, 2011 Share Posted August 31, 2011 I was just wondering how I could script an item so that when it's equipped then it would change a game setting eg. (fabsorbmovespeed) Any help would be appreciated :D -Ozzgarth Link to comment Share on other sites More sharing options...
Skevitj Posted August 31, 2011 Share Posted August 31, 2011 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 More sharing options...
ozzgarth Posted August 31, 2011 Author Share Posted August 31, 2011 (edited) Iv tried it out and it doesn't work :( Edited August 31, 2011 by ozzgarth Link to comment Share on other sites More sharing options...
Recommended Posts