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


Joined: 26 Dec 2014
Posts: 7

PostPosted: Mon Dec 29, 2014 8:19 am   

Trying to make a experience to next level tracker in status window.
 
So i have the experience set from the score menu to populate in the status window. Is there a way to make a trigger to subtract what i gain from what i have already set in the status window? Any help or ideas would be greatly appreciated cause i know very little about coding!

#VAR EXP TNL: @expTNL

#Trigger {You need (%x) exp to reach your next level.} {#VAR expTNLSTATUS %1}
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Tue Dec 30, 2014 7:50 am   
 
Something along the lines of this:

Code:
#trigger {^You gain (%d) exp.$} {expTNLSTATUS = (@expTNLSTATUS - %1)}


You'd need to adjust the pattern to match the actual text from the mud. To reset it when you level, you could do something like this:

Code:
#trigger {^You gain a level!$} {expTNLSTATUS = 1000}


Again, pattern and values would need to be adjusted.
Reply with quote
jdaraver2011
Newbie


Joined: 26 Dec 2014
Posts: 7

PostPosted: Tue Dec 30, 2014 11:48 am   
 
Thank you!!! You rock it works like a charm!!!!
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