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 ➜ Auto-casting spells

Auto-casting spells

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


Posted by Unregistered user   (72 posts)  Bio
Date Fri 12 Jan 2001 (UTC)
Message
Hello everyone,

I have never done anything like this before so, please be kind... I have played a game (gemstone 3) for 5 years now using the supplied frontend, The Wizard. Well, I have heard about the availability of other clients and found Mushclient. I have successfully created several triggers and after reading many of the help files I decided that one thing I want to do is auto cast as spells wear off. As a wizard, part of my importance to the group effort is in my ability to cast offensive and defensive spells on group members. I wish to cast only on my group members though, wouldn't really please my party members if i was to pump up the critters, know what I mean? I thought maybe of using a variable with my friends names, but I must admit I don't know what I am doing. Please help. Realize that my ignorance is far from blissful and to be taken by the hand and lead step by virtual step would be most helpful.

Thank you,

Kaz
Top

Posted by Unregistered user   (72 posts)  Bio
Date Reply #1 on Sat 13 Jan 2001 (UTC)
Message
okay, I found how useful Regular Expressions can be.... still plowing through all the Help files and whatnot.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #2 on Sat 13 Jan 2001 04:18 AM (UTC)
Message
You might find variables helpful. You can set them from the command line, or through the configuration screen. Here is a bit from the trigger help that describes them ...

If expand variables is on (checked) then a variable name in the format @name is expanded. To put a @ symbol itself in the trigger, use two @@.

Here is an example of such an trigger:

unlock @direction

For this trigger to work you would need a variables, "direction".

You can set variables by using the configuration dialog box, or through a scripting command (if scripting is enabled), like this:

/world.setvariable "direction", "north"


In your case you might set up a variable "friends", and then set up a trigger (or alias depending on what you are trying to do) that casts the spell on @friends.


- 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.


12,835 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.