help with redoing a script... simple but doesn't work

Post » Thu May 03, 2012 9:36 pm

don't know if something changed in the script codes or what. Was originally done in pure morrowind.. but using the goty edition now

begin MV_Manashort iWillvalueset iWillvalue to 0if Player.GetSpellEffects, "wombburn" == 1     player.removespell MVregen1    player.removespell MVregen2    player.removespell MVregen3    player.removespell MVregen4    player.removespell MVregen5    returnEndifIf iWillvalue  player.getwillpower    player.removespell MVregen1    player.removespell MVregen2    player.removespell MVregen3    player.removespell MVregen4    player.removespell MVregen5    if player.getwillpower => 100        player.addspell MVregen5    elseif player.getwillpower => 75        player.addspell MVregen4    elseif player.getwillpower => 50        player.addspell MVregen3    elseif player.getwillpower => 25        player.addspell MVregen2    else        player.addspell MVregen1        endif    set iWillvalue to player.getwillpowerelse    returnendifEnd MV_Mana
User avatar
Mistress trades Melissa
 
Posts: 3464
Joined: Mon Jun 19, 2006 9:28 pm

Post » Fri May 04, 2012 5:00 am

It WAS working??? Hard to believe.

Replace all "player." to "player->", for starters. Also, all "if XXX" to "if ( XXX )".

If iWillvalue player.getwillpower
You don't can into scripting.
User avatar
Kit Marsden
 
Posts: 3467
Joined: Thu Jul 19, 2007 2:19 pm

Post » Thu May 03, 2012 9:49 pm

It WAS working??? Hard to believe.

Replace all "player." to "player->", for starters. Also, all "if XXX" to "if ( XXX )".

You don't can into scripting.

Part of my notes on old tweaks and such. found the correct version.. coming back to it after a while. and it dropped some of the code during the paste for some reason.
User avatar
Leah
 
Posts: 3358
Joined: Wed Nov 01, 2006 3:11 pm


Return to III - Morrowind