dim XPOLD, XPNEW, XPDIFF
world.setvariable "XPNEW", "%1"
XPOLD = CInt(world.getvariable ("XPOLD"))
XPNEW = CInt(world.getvariable ("XPNEW"))
XPDIFF = (XPOLD - XPNEW)
if XPDIFF < 0 then
XPDIFF = (XPDIFF + 100)
elseif XPDIFF = 0 then
exit sub
end if
world.setvariable ("XPOLD"), XPNEW
world.setvariable "XPDIFF", XPDIFF
world.enabletrigger "XP", FALSEThis of course is a trigger that is sent to script...
It doesn't work, Why? Can you make it so that it does work in the future?
As you know from my recent posts I'm writting an infobar script for the mud I play, Right now its only checking the prompt when I kill a creature, I'd like to have it check on EVERY prompt, but if the difference is 0 I want it to ignore the rest of the script. I take it that this is one of those few things that just can't be done in this fashion.