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.
Entire forum
➜ MUSHclient
➜ Tips and tricks
➜ Different actions for different characters in the same trigger?
Different actions for different characters in the same trigger?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Rjak
Romania (42 posts) Bio
|
Date
| Mon 23 May 2005 01:56 PM (UTC) |
Message
| I'm using a mud where I'm supposed to have 3 characters (kinda multi) logged in at the same time. I'm not cheating, or something, the mud was build in this way.
So each player is making a group, and the composition is usually a tanker, a caster and a healer or a ranged fighter.
OK, here is my problem:
Usually the tanker is the leader of the group, and for saving the time I decided to avoid switching between different screens and to make triggers / alliases for group tell.
Let's say my tanker is attacking a dummy. I made an alias for k * |-> gtell hit dummy | kill dummy
The trigger is "* gtells 'hit *' |-> assist %1
That was just a partial resolvation, coz I need each character to do a specific action. Tanker should melee, the caster should nuke and the ranged fighter should use the gun/bow. What I need is a trigger that should tell a specific team member to execute a specific action. Like telling the caster "sling 'magic missile' %2" and to ranger "aim %2 | shoot %2"
Of course, I could place all the commands in the same trigger, but I would lose a couple of battle turns. The ranged fighter will try to cast magic missile and the caster will try to aim and shoot the target.
Another solution is to have 3 different worlds, one for each character, but I'm sure is a way to solve that more easy.
I would apreaciate any help. Thank you. | Top |
|
Posted by
| Poromenos
Greece (1,037 posts) Bio
|
Date
| Reply #1 on Tue 24 May 2005 01:42 PM (UTC) |
Message
| You could use scripting and GetInfo to get the world's name and act according to that, is that acceptable? |
Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it! | Top |
|
Posted by
| Rjak
Romania (42 posts) Bio
|
Date
| Reply #2 on Tue 24 May 2005 02:00 PM (UTC) |
Message
| I'm not sure I understand what you mean. I'm kinda noob in scripting and such. I can make a basic trigger and/or alias... but that's all. | Top |
|
Posted by
| Poromenos
Greece (1,037 posts) Bio
|
Date
| Reply #3 on Tue 24 May 2005 09:42 PM (UTC) |
Message
| Like this:
If GetInfo(2) = "Poromenos" Then
Send "say I am Poromenos"
End If
Repeat for other world names. |
Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it! | Top |
|
Posted by
| Rjak
Romania (42 posts) Bio
|
Date
| Reply #4 on Wed 25 May 2005 06:33 AM (UTC) |
Message
| |
Posted by
| Rjak
Romania (42 posts) Bio
|
Date
| Reply #5 on Thu 26 May 2005 05:38 AM (UTC) |
Message
| Is not working, maybe I do something wrong. Anyway, I end making 3 words, ech with its own set of triggers/aliases. Is a huge work, but my weak scripting knowledge does not allow me to proceed otherwise. | Top |
|
Posted by
| Flannel
USA (1,230 posts) Bio
|
Date
| Reply #6 on Thu 26 May 2005 05:45 AM (UTC) Amended on Thu 26 May 2005 05:46 AM (UTC) by Flannel
|
Message
| What doesn't work about it?
If you have common aliases/triggers, you can put them in plugins to share between the worlds (potentially using some variables to distinguish between the worlds, for differences on the same actions).
However, you should be able to get it to work that way (the scripting). |
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | Top |
|
Posted by
| Poromenos
Greece (1,037 posts) Bio
|
Date
| Reply #7 on Thu 26 May 2005 10:52 AM (UTC) |
Message
| Have you enabled "send to script"? |
Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it! | Top |
|
Posted by
| Rjak
Romania (42 posts) Bio
|
Date
| Reply #8 on Thu 26 May 2005 12:16 PM (UTC) |
Message
| As soon I reach my appartment - I'm at work now - I'll copy/paste some of the aliases and triggers here. I apologise for the delay. | 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.
25,147 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top