Different actions for different characters in the same trigger?

Posted by Rjak on Mon 23 May 2005 01:56 PM — 9 posts, 34,944 views.

Romania #0
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.
Greece #1
You could use scripting and GetInfo to get the world's name and act according to that, is that acceptable?
Romania #2
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.
Greece #3
Like this:

If GetInfo(2) = "Poromenos" Then
    Send "say I am Poromenos"
End If


Repeat for other world names.
Romania #4
I'll try, thank you.
Romania #5
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.
USA #6
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).
Amended on Thu 26 May 2005 05:46 AM by Flannel
Greece #7
Have you enabled "send to script"?
Romania #8
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.