Trigger variable to formula output

Posted by Troist22 on Fri 26 May 2017 06:52 AM — 2 posts, 12,865 views.

#0
Is it possible to take an input variable and get it to run an equation against it then deliver an output based on the equation result?

Example: When the MUD outputs the number 1

I want to input the number 101.

So i want to add 100 to the value.

I know to use * and %1 to get it to output 1 when 1 is inputted. I just need to figure out how to add 100 to it before it gets sent.
USA Global Moderator #1
Quote:
Is it possible to...

Given the right amount of knowledge and willpower, just about anything is possible. :)

Quote:
I just need to figure out how to add 100 to it before it gets sent.

Sure thing. First please copy/paste here your trigger for capturing the 1 and then we'll help modify it to add 100.

Template:copying
For advice on how to copy aliases, timers or triggers from within MUSHclient, and paste them into a forum message, please see Copying XML.