[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  List of Triggers

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: List of Triggers
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please)
Maximum of 6000 characters. Text only please, no HTML.
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Fri 19 Jul 2002 08:05 AM (UTC)  quote  ]
Message
What about matching on:

HP:* EP:* *

This way the room name is the third wildcard, and then the script makes the decision the way it does already.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Exodus   (12 posts)  [Biography] bio
Date Fri 19 Jul 2002 03:14 AM (UTC)  quote  ]
Message
Hi there,

I'm tried to figure out a way of writing a script to trigger on a list of room names. The idea is to create a list of names on the script that will set a variable when it identifies each room as you move along.
For example,

Select Case (Room)
Case "A Dark hallway (n,s)"
RoomVar = "Dark halls"
Case "A lonely mountain path (n,s,e,w)"
RoomVar = "Mountain path"
Case "A fiery pit (u)"
RoomVar = "Fire pit"
end select
world.SetVariable "Roomname", "" & RoomVar & ""
when I see .. say "HP:* EP:* A Dark hallway (n,s)", where "HP:* EP:*" is my prompt.
It will set the variable "Roomname" to be "Dark halls"

Instead of having to separately setting a trigger for each room to change the variable accordingly, is there a way them from just one script? And to be able to continue adding rooms as I go along?

Sorry if this doesn't make sense,ii'll try to clarify it.
[Go to top] 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,450 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]