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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Orkonkel
Newbie


Joined: 18 May 2009
Posts: 1

PostPosted: Mon May 18, 2009 10:32 am   

Trigger Help
 
Value:
#IF (%1 < 58) {roll}
#VAR rolls (+1)
#SHOW You have rolled @rolls times.
#IF (%1 > @highestroll) {#VAR highestroll = %1}
#SHOW Highest roll so far is @highestroll.

The highest roll part works, but I can't get it to properly display the number of times I have rolled. I can't access the zMud helpfiles since I'm running Vista, so been looking at the cMud ones. Anyway, some help here would be appreciated. What should the variable be to add one after every roll?

Also, how do I make the highestroll and rolls variables reset every time I connect to mud?
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Mon May 18, 2009 11:39 am   
 
change #VAR rolls (+1) to #VAR rolls @rolls+1
_________________
Taz :)
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon May 18, 2009 9:18 pm   
 
#add rolls 1

For part 2, you can do it one of two ways:

1)check the use default box for each variable and then put whatever value (0?) in each variable's default value textbox

2)in the atconnect alias, insert the appropriate code to set the variables to their starting values (rolls = 0, highestroll = 75, whatever)
_________________
EDIT: I didn't like my old signature
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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