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
bishoposiris
Newbie


Joined: 02 Jul 2013
Posts: 4
Location: Cary, NC

PostPosted: Fri Jul 05, 2013 10:34 pm   

zMUD trigger not working in CMUD using (*) and %1
 
I was using the following trigger in zMUD:

Pattern: You have (*) gold, (*) silver, and (*) copper,

#math gold %1*1000;#math silver %2*20;#math worth @gold+@silver+%3

but it doesn't work in CMUD. Can someone explain why?

Bishop
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Sat Jul 06, 2013 4:53 am   
 
Putting parentheses around your expressions would probably fix it, but really you'd be better off avoiding #math entirely and just assigning to your variables directly:
Code:
gold = (%1 * 1000);silver = (%2 * 20);worth = (@gold + @silver + %3)
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