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

Gammon Forum

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

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Tips and tricks
. . -> [Subject]  Different actions for different characters in the same trigger?
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Different actions for different characters in the same trigger?

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


Posted by Rjak   Romania  (42 posts)  [Biography] 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.
[Go to top] top

Posted by Poromenos   Greece  (1,037 posts)  [Biography] 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!
[Go to top] top

Posted by Rjak   Romania  (42 posts)  [Biography] 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.
[Go to top] top

Posted by Poromenos   Greece  (1,037 posts)  [Biography] 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!
[Go to top] top

Posted by Rjak   Romania  (42 posts)  [Biography] bio
Date Reply #4 on Wed 25 May 2005 06:33 AM (UTC)
Message
I'll try, thank you.
[Go to top] top

Posted by Rjak   Romania  (42 posts)  [Biography] 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.
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] 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.
[Go to top] top

Posted by Poromenos   Greece  (1,037 posts)  [Biography] 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!
[Go to top] top

Posted by Rjak   Romania  (42 posts)  [Biography] 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.
[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.


7,086 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

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

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]