Oblivionaddicted Posted July 4, 2017 Share Posted July 4, 2017 Hello everybody! I'd like the lucky coin to do what its name implies by adding the player a fortify-luck spell throught a script. What's wrong with this script?BeginScript ScriptName if ( GetItemCount, "lucky_coin"==1 )player->addSpell "SpellID"elseIf ( GetItemCount "lucky_coin" ==0 )player->removeSpell "SpellID"EndIf EndScript ScriptName Link to comment Share on other sites More sharing options...
Dragon32 Posted July 5, 2017 Share Posted July 5, 2017 Check for menu mode and escape It's running every frame, maybe add a counter. Do you need a condition for the ElseIf? MWEdit is a good script editor. Syntax checking, function hints etc. - http://mwedit.sourceforge.net/ Link to comment Share on other sites More sharing options...
Recommended Posts