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
➜ Group spell triggers
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Erwin
(5 posts) Bio
|
| Date
| Mon 09 Apr 2001 04:19 AM (UTC) |
| Message
| Is it possible to make so my spellcaster bot would only
cast spells on the members of the group?
e.g:
char name: AAA
spell bot's name: BBB
the other person's name: CCC
so when CCC joins AAA's group, BBB would recognize CCC as the member of the group and would let it use spelltriggers, and would also remove it from the list AFTER CCC left the group?
Oh, another question too :D
Is it possible to make math calculations with MUSHClient?
e.g:
I want it so the client count how many kills ive got this exp run and resets it when i want too? would you need to script on that? Coz im not too familiar with scripts, lol!
Thx alot, sorry for the long post :P | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Mon 09 Apr 2001 04:54 AM (UTC) |
| Message
| Spellcaster bot
The exact method would depend on what the MUD sends when someone enters/leaves your group, which you haven't said.
However the basic idea would be to add a trigger when that person joins the group, and remove the trigger when the person leaves the group.
See the recent post about "Auto Walker" for examples of adding/deleting triggers.
So, you would make a trigger that matches on whatever it says when someone joins the group, and inside that trigger run a script, and the script adds a spellcasting trigger.
Maths
Yes, certainly you can do any calculations you like, inside a script. There are some examples in the "exampscript" files that come with MUSHclient, and also see the recent post in the forum about "Conditional events". This shows an example of only casting a spell if you have enough mana.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Erwin
(5 posts) Bio
|
| Date
| Reply #2 on Tue 10 Apr 2001 01:23 AM (UTC) |
| Message
| | How to find this exampscript in mushclient? | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #3 on Tue 10 Apr 2001 01:34 AM (UTC) |
| Message
| It depends on what scripting language you want. There are three files:
VBscript - exampscript.vbs
Jscript - exampscript.jvs
Perlscript - exampscript.pl
They are automatically installed as part of the MUSHclient install.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Felwar
(1 post) Bio
|
| Date
| Reply #4 on Tue 05 Nov 2002 10:53 AM (UTC) Amended on Tue 05 Nov 2002 10:55 AM (UTC) by Felwar
|
| Message
| you guys are script happy :-) hehe.
if you only want group memebers to use them you can do this to your trigger.
^* tells the group '*'
then you would just
cast '%2' %1
obviously you would need to extend 'heal' to cure light or whatever the heal is on your mud, and your could do it with 1 trigger only if you use a script.
would take a little more then that actually just giving you an idea..
only someone in your group is going to be able to trigger this.
if you need me to explain further I will.
thanks,
Felwar
| | 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.
17,256 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top