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 ➜ Multi-Line Auto Roller

Multi-Line Auto Roller

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


Pages: 1  2 

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #15 on Wed 26 Jan 2005 01:27 AM (UTC)
Message
You are already doing ColourNote, that displays it. You could use straight Note to save specifying colours.

- Nick Gammon

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

Posted by Verdammt   (4 posts)  Bio
Date Reply #16 on Tue 01 Feb 2005 12:06 PM (UTC)

Amended on Tue 01 Feb 2005 12:12 PM (UTC) by Verdammt

Message
no, what I meant was, what would I do to call up the total value?

Edit: bah, I still can't get it to fire... if you think you can give me a hand nick, I'd appreciate it a lot.

The IP and Port are dark-legacy.com//9898

and here's what I have as a trigger.

<triggers>
<trigger
enabled="y"
lines_to_match="7"
match="^\s*Strength:\s*(?P&lt;str&gt;\d+)\s*(?P&lt;avstr&gt;\d+)\n\s*Dexterity:\s*(?P&lt;dex&gt;\d+)\s*(?P&lt;avdex&gt;\d+)\nConstitution:\s*(?P&lt;con&gt;\d+)\s*(?P&lt;avcon&gt;\d+)\nIntelligence\:\s*(?P&lt;int&gt;\d+)\s*(?P&lt;avint&gt;\d+)\n\s*Wisdom\:\s*(?P&lt;wis&gt;\d+)\s*(?P&lt;avwis&gt;\d+)\n\s*Charisma\:\s*(?P&lt;cha&gt;\d+)\s*(?P&lt;avcha&gt;\d+)\n\s*Luck\:\s*(?P&lt;lck&gt;\d+)\s*(?P&lt;avlck&gt;\d+)"
multi_line="y"
regexp="y"
send_to="12"
sequence="100"
>
<send>

total = %&lt;str&gt; + %&lt;int&gt; + %&lt;dex&gt; + %&lt;con&gt; + %&lt;cha&gt; + %&lt;lck&gt;

if %&lt;str&gt; &lt; 13 or _
%&lt;int&gt; &lt; 15 or _
%&lt;wis&gt; &lt; 15 or _
%&lt;dex&gt; &lt; 15 or _
%&lt;con&gt; &lt; 15 or _
%&lt;cha&gt; &lt; 5 or _
%&lt;lck&gt; &lt; 10 and
total &lt; 107 then
ColourNote "white", "blue", "stats too low"
world.doafter 1, "N"
else
ColourNote "white", "red", "accepted stats"
world.doafter 1, "Y"
end if

</send>
</trigger>
</triggers>
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #17 on Sat 05 Feb 2005 11:08 PM (UTC)
Message
Can you paste an example of what it sends that you are trying to match on?

- Nick Gammon

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

Posted by Verdammt   (4 posts)  Bio
Date Reply #18 on Sun 13 Mar 2005 06:31 PM (UTC)
Message
I had already done so in a previous topic, but here it is again:

You may now roll for your character's stats.
You may roll as often as you like.


Strength: 10 (Average)
Dexterity: 22 (Extremely nimble)
Constitution: 11 (Average)
Intelligence: 16 (Very smart)
Wisdom: 11 (Average)
Charisma: 21 (Exquisite)
Luck: 11 (Average)

Keep? (Y/N)

Strength: 10 (Average)
Dexterity: 18 (Very nimble)
Constitution: 12 (Average)
Intelligence: 11 (Average)
Wisdom: 16 (Wise)
Charisma: 19 (Attractive)
Luck: 15 (Lucky)

Keep? (Y/N)

Strength: 13 (Hardy)
Dexterity: 19 (Very nimble)
Constitution: 10 (Average)
Intelligence: 12 (Average)
Wisdom: 12 (Average)
Charisma: 19 (Attractive)
Luck: 17 (Very lucky)

Keep? (Y/N)
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.


52,109 views.

This is page 2, subject is 2 pages long:  [Previous page]  1  2 

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.