Increasing a variable and sending the new variable to the mud.

Posted by Dev on Mon 14 Aug 2006 06:35 PM — 2 posts, 12,838 views.

#0
My trigger is this:
^You raise a level\!\! Your gain is\: (.*?)\/(.*?) hp\, (.*?)\/(.*?) m\, (.*?)\/(.*?) mv (.*?)\/(.*?) prac\.$

I have another trigger that checks my level when I do the title command and saves it as the variable @level. I want it to increase the @level variable when I level, and then send "Level @level: %1/%3/%5/%7" to the mud. So far I can get it to work if I just put it in the trigger, but I can't change the @level variable and I have no scripting experience to know how to handle the variables sent to the function.
Australia Forum Administrator #1
There is a discussion about using variables on this page:

http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=6030