|
Orkonkel Newbie
Joined: 18 May 2009 Posts: 1
|
Posted: 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? |
|
|
|
Taz GURU
Joined: 28 Sep 2000 Posts: 1395 Location: United Kingdom
|
Posted: Mon May 18, 2009 11:39 am |
change #VAR rolls (+1) to #VAR rolls @rolls+1
|
|
_________________ Taz :) |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
|
|