I hope this is the right place for it...

var %i = 1
var %x = $$2
/person { if ( $$1 = minus) { var %i = %i - var %x }}
//say person has lost: %x points.
//say person now has: %1 points.
{ if ( $$1 = add) { var %1 = %i + var %x }}
//say person has gained: %x points.
//say person now has: %1 points.
else { halt }


That is my script I have right now, and whenever I run it... it quits me from mIRC frown
Here's what I want it to do:
I type " /person minus 2"
it outputs:
"Person has lost: 2 points"
"Person now has: -1 points"

or I put in "/person add 2"
and it says:
"Person has gained: 2 points"
"Person now has: 3 points"

can someone help me with my situation? confused

Moved to Scripts & Popups

Last edited by Mentality; 19/12/04 11:00 PM.