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 output for gains
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Wolfwoman
(13 posts) Bio
|
Date
| Sat 08 Jun 2002 08:02 PM (UTC) |
Message
| I'm trying to figure out how to make something trigger when a character raises a level. I'd like it to send the stat points to a channel specifically for gains.
The text is (the numbers are randmon, and change with each gain, obviously) "You raise a level! You gain 5 hit points and 7 mana!" and it would trigger (grats blah/blah) so it would read on the channel "You grats '5/7'"
The only thing is, I'm not sure how to input the veriables for the stat numbers so that it gives the correct stat number each time a level is gained.
The fact that the gain numbers are different has me confused as to how to write the trigger. | Top |
|
Posted by
| Vaejor
(120 posts) Bio
|
Date
| Reply #1 on Sat 08 Jun 2002 09:22 PM (UTC) |
Message
| Here's the most basic way to do it that I know of.
<trigger
enabled="y"
match="You raise a level! You gain * hit points and * mana!"
sequence="100"
>
<send>grats %1/%2</send>
</trigger>
The * in the trigger will capture any text(which in this case should only be the numbers) and save them to %1(for the first *) and %2(for the second *), etc. | 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.
11,834 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top