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 ➜ Tips and tricks ➜ Auto-roll Trigger.

Auto-roll Trigger.

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


Posted by Shifty0   (2 posts)  Bio
Date Mon 11 Aug 2003 11:22 AM (UTC)
Message
I need some help with a Trigger.

Basically, I need an Auto-Stat roller for a D&D MUD. Every 'roll' you get a random number for each stat, such as Strength, Intelligence, ect., and I need a trigger that will keep rolling until I get two certain stats and then stop, which are:
str [22(100)] and con [21]

Each time you roll, you get a little thing something like: this, but with different 'rolled' stats:
Rolled: str [17(0)] int [6] wis [6] dex [9] con [11] cha [9]
Do you want to keep these stats? [Y/N]

So, basically, it'll keep rolling until I get str [22(100)] and con [21].. and the other numbers I don't really care about.

Any ideas?
Top

Posted by Kyrs   (6 posts)  Bio
Date Reply #1 on Mon 11 Aug 2003 12:26 PM (UTC)
Message
There's a few examples of stat rollers on the forum, try searching for stat roller. There's even a post with the same exact format that you posted a few subjects down. The link is http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=2515
Top

Posted by Shifty0   (2 posts)  Bio
Date Reply #2 on Tue 12 Aug 2003 02:20 AM (UTC)
Message
Okay, so I have the trigger, ^\s*Rolled:\s*str\s*[(\d+)\((\d+)\)]\s*int\s*[(\d+)]\s*wis\s*[(\d+)]\s*dex\s*[(\d+)]\s*con\s*[(\d+)]\s*cha\s*[(\d+)]$ .. Now how would I fix it to work?
I'm completely new to MUSHClient's triggers, so talk like you're talking to a monkey. ;)
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #3 on Thu 14 Aug 2003 08:19 AM (UTC)
Message
I'm sorry, but I don't have time myself to rewrite the auto roller trigger for every MUD out there. There are quite a few examples on the forum here, you would need to adapt one.

Variables are the exact prompt from the MUD, whether it is one line or more, and what you are trying to match on.

Do a search for "roller" and see what you find.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
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.


16,606 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.