Pisces on 11/6/2004 at 23:29
I finnally starting scripting again after a year's break. So I made a hard script but as expected it didn't work. I managed to isolate the problem area so what the hell is wrong with this script
begin evilscript
short doonce
if ( onpcequip == 1 )
if ( doonce == 0 )
set doonce to 1
player->modluck, 10
endif
endif
end evilscript
It is on a shield, It says nothing when I save it but when I add the shield into my inventory it comes up with "expression error" and "right eval error" and does nothing when I put it on. This is a simple script so I know I did something stupid and I will bang my head against the wall when someone tells me what but I can't figure it out.
Striker on 12/6/2004 at 04:39
begin evilscript
short doonce
short onpcequip
if ( onpcequip == 1 )
if ( doonce == 0 )
set doonce to 1
set onpcequip to 0
player->modluck, 10
endif
endif
end evilscript
Try that.
Pisces on 12/6/2004 at 08:39
ahh...that was it. I remember having to do that with other script too.