(New message)
Subject review (reverse sequence)
Posted by
Absolute Zero
(3 posts) bio
Date
Tue 28 Feb 2012 11:45 AM (UTC) [ quote
]
Message
Hate to ressurect this thread, But I can't figure out how to transfer this script into a similar scenario but for a timer.
I'd like to make a timer that every time it fires, sends a random input from a list, but this time each repetition of the timer should be able to do two inputs, for instance
option one:
ping
@me doing is=option one
option two:
ping
@me doing is=this is option two
option three:
ping
@me doing is=and this is option three
It should be similar to the previous in that those two inputs could be anything, and that more should be readily addable to the list... I look forward to your reply and would like to thank you for your previous help and hope you can help me again. top
Posted by
Nick Gammon
Australia (18,772 posts) bio
Forum Administrator
Date
Sun 06 Feb 2011 08:26 AM (UTC) [ quote
]
Message
For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML .
- Nick Gammon
www.gammon.com.au, www.mushclient.com top
Posted by
Absolute Zero
(3 posts) bio
Date
Sun 06 Feb 2011 08:23 AM (UTC) [ quote
]
Message
Ok and how do I implement this? I've been adding triggers through the in game trigger menu. top
Posted by
Nick Gammon
Australia (18,772 posts) bio
Forum Administrator
Date
Sat 05 Feb 2011 08:27 PM (UTC) [ quote
]
Message
The trigger would look like this:
<triggers>
<trigger
enabled="y"
match="* attacks you!"
send_to="12"
sequence="100"
>
<send>
local responses = {
"yell OH HELP",
"page fcpd %1 is killing me!",
"say Dead or alive you're coming with me",
-- more here
}
Send (responses [math.random (1, #responses)])
</send>
</trigger>
</triggers>
The alias will be similar.
- Nick Gammon
www.gammon.com.au, www.mushclient.com top
Posted by
Absolute Zero
(3 posts) bio
Date
Sat 05 Feb 2011 06:42 AM (UTC) [ quote
] Amended on Sat 05 Feb 2011 12:15 PM (UTC) by Absolute Zero
Message
Ok so I don't know how simple or complex this is but I would like to make a simple trigger and alias to do two different things
My trigger is to match '* attacks you!'
What I'd like it to do is output one of four different things at random:
1) yell OH HELP
2) page fcpd %1 is killing me!
3) say Dead or alive you're coming with me
and the alias is 'grief *'
I want it to attack %1 and also output one of three different things at random
1) yell DEAD OR ALIVE YOU'RE COMING WITH ME
2) -%1 You are being greifed please hold still
3) -%1 hey check out my new camera
I'd also like space to add extra ones as I think of them with an equal chance of any among them being used...
I don't know how to do this myself so thanks for any help you can give. 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.
1,307 views.
Reply to this subject
Start a new subject
  Refresh page
Go to topic:
(Choose topic)
Area Editor: Bug reports
Area Editor: General
Area Editor: News and updates
Area Editor: Suggestions
Area Editor: Tips and tricks
Dawn of Time: Administration
Dawn of Time: Configuration
Dawn of Time: Installing/compiling the server
Dawn of Time: New Dawn Muds Announcements
Dawn of Time: Playing
Dawn of Time: What is Dawn of Time (Dawn)?
Electronics: Microprocessors
Electronics: Operational Amplifiers
Forum: About
Forum: Announcements
Forum: Mailing other users
Forum: Problems
Forum: Registering
Forum: Searching
Forum: Subscribing
Forum: Suggestions
Forum: Test
Forum: Time zones / time display
Forum software: Administration
Forum software: Installation
MUDs: Announcements
MUDs: General
MUDs: MUD Design Concepts
MUSHclient: Announcements
MUSHclient: Beta testing
MUSHclient: Bug reports
MUSHclient: Development
MUSHclient: General
MUSHclient: Getting Started
MUSHclient: International
MUSHclient: Jscript
MUSHclient: Lua
MUSHclient: Miniwindows
MUSHclient: MXP and Pueblo
MUSHclient: Perlscript
MUSHclient: Plugins
MUSHclient: Python
MUSHclient: Suggestions
MUSHclient: Tips and tricks
MUSHclient: VBscript
MUSHclient: Wine
PennMUSH: Compiling the server
PennMUSH: Running the server
Programming: General
Programming: STL
Quilting: General
ROM: Compiling the server
ROM: Running the server
SMAUG: Commands
SMAUG: Compiling the server
SMAUG: Lua
SMAUG: Running the server
SMAUG: SMAUG coding
Search the forum
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )