 |
LordBudigert737 Beginner
Joined: 15 Jan 2015 Posts: 16
|
Posted: Thu Jan 15, 2015 7:42 pm
Script Help: %eval within trigger |
What the old script looked like:
Code: |
#TRIGGER {sack of green ivy} {#SUBST "sack of green ivy [REFRESH 1]";@Ivy = %eval( @Ivy + 1)} |
I can apparently no longer use the second part of that command. Nothing after the semicolon works. I'm assuming this is a change with CMUD (I've always used ZMUD and just now getting around to converting some of my old scripts.)
If anybody can tell me how to add/subtract from the @ivy variable within this specific trigger, I would be greatly appreciative. :) |
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4769 Location: Pensacola, FL, USA
|
Posted: Fri Jan 16, 2015 12:40 am |
you dont use the @ symbol when defining a variable, this was true in zMud as well
also, most anything in parenthesis will be %eval'd
ivy=(@ivy+1) |
|
_________________ Discord: Shalimarwildcat |
|
|
 |
|
|