|
jdaraver2011 Newbie
Joined: 26 Dec 2014 Posts: 7
|
Posted: 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} |
|
|
|
Daern Sorcerer
Joined: 15 Apr 2011 Posts: 809
|
Posted: 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. |
|
|
|
jdaraver2011 Newbie
Joined: 26 Dec 2014 Posts: 7
|
Posted: Tue Dec 30, 2014 11:48 am |
Thank you!!! You rock it works like a charm!!!!
|
|
|
|
|
|