Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ trigger with counter - is that possibile?

trigger with counter - is that possibile?

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Rjak   Romania  (42 posts)  Bio
Date Mon 13 Oct 2003 07:44 PM (UTC)
Message
Ok, this is my problem. I own a shop in a mud. (Zone Runner)
I can manage that shop (manage frankk)
Each shop have an efficiency, who can oscilate from 0 to 200. You can increase this efficiency motivating the shopkeeper (motivate frankk). Each motivate draws 10 stamina from me, and increase the efficiency with 1 point... IF is successfull. If is not I get a message "you efforts done more worst than good" or something like that. If is sucessfull, I get no message.
Now here is my problem: if is possible, I'd like to make a trigger who can read the efficiency of my shopkeeper and make my character to motivate the shopkeeper the exact number of times. Let's say the efficiency is 155, i need to type 'motivate frankk' 45 times. I already have a trigger to collect money from the shopkeeper if the sum he owns is more than 100000... but that was simple to made. Now I'm in this deep, brown and smelly s**t and I need a bit of help.
Please?

Frankk gives you a brief financial report:
Frankk reports: Revenues so far this month: $ 570
Frankk reports: Taxes so far this month: $ 209
Frankk reports: Expenses so far this month: $ 14
Frankk reports: Cash on hand is: $ 100000
Frankk reports: Current buy factor is: $ 50
Frankk reports: Current sell factor is: $ 300
Frankk reports: Operating at efficiency: $ 200
Frankk reports: Monthly rent here is: $ 870

Thank you,
Rjak
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #1 on Sat 18 Oct 2003 10:24 PM (UTC)
Message
You could make a trigger that matches on something like:

Frankk reports: Operating at efficiency: $ *

Then in the trigger do something like this:

if %1 < 200 then
for i = %1 to 200
Send "motivate Frankk"
next
end if

You would need to send this to "script".

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Rjak   Romania  (42 posts)  Bio
Date Reply #2 on Wed 19 Nov 2003 11:52 AM (UTC)
Message
Thank you, Nick.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


12,483 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.