|
bishoposiris Newbie
Joined: 02 Jul 2013 Posts: 4 Location: Cary, NC
|
Posted: 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 |
|
|
|
Daern Sorcerer
Joined: 15 Apr 2011 Posts: 809
|
Posted: 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) |
|
|
|
|
|
|
|
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
|
|