Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
LordBudigert737
Beginner


Joined: 15 Jan 2015
Posts: 16

PostPosted: 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. :)
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4769
Location: Pensacola, FL, USA

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net