|
takke Beginner
Joined: 11 Oct 2002 Posts: 29 Location: Sweden
|
Posted: Fri Nov 01, 2002 1:19 am
Ress problems |
Hi again
I don't know if it me that are being unclear with my
idea of an autoress trigger or is it me being dumb.
But I will post my problem again and maybe I can get it to work.
The things the trigger needs to do is:
1. Create a list of all the partymembers.
2. When one or more members of the party dies
the trigger will check if the dead person
is in the list. If so ress him and keeps on
ressing until all ghosts is ressed.
3. The trigger have to wait a few seconds before
starting so that the party will have time to leave
the room they are in. Don't know if it's better
to make an button I can press manually when the party
has left the room.
4. If dead person is the healer it should not trigger.
Here is an example on how it's looks on the mud when someone
dies:
You can hear Diabol's hoarse cry of terror as Fu cruelly
dismembers him into a pile of minced meat!
Diabol is DEAD, R.I.P.
This is syntax for succeccfully ress:
The Ghost of (%a) appears whole once more! |
|
|
|
Troubadour GURU
Joined: 14 Oct 2000 Posts: 556 Location: USA
|
Posted: Fri Nov 01, 2002 5:38 am |
1. Create a list of all party members:
Well, you didn't give any message examples, so I'll use some generic ones:
#TR {(%w) joins your party.} {#ADDITEM party %1}
#TR {(%w) joins %w's party.} {#ADDITEM party %1}
2. If a member dies, it will queue him for ressurection:
#TR {(%w) is DEAD, R.I.P.} {#IF %ismember(%1,@party) {#ADDITEM resslist %1}}
3. Once the party has left the room, implement the ressgrp alias. You did not give a message for ress failure. This would be very helpful. Without a failure message, it will cycle through the resslist, wait 2 seconds, then check to see if anyone is left on the resslist; if so, it recurs. A trigger looking for ress success removes the appropriate name from resslist.
#AL ressgrp {#FORALL @resslist {ress %i}; #ALARM +2 {#IF !%null(@resslist) {ressgrp}}}
#TR {The Ghost of (%a) appears whole once more!} {#DELITEM resslist %1}
4. No means of identifying the healer was provided, so that will have to be addressed later.
Troubadour
(Win 98, Pentium III, 550 MHz) |
|
|
|
takke Beginner
Joined: 11 Oct 2002 Posts: 29 Location: Sweden
|
Posted: Fri Nov 01, 2002 10:17 am |
Thank you very much for the solution. Now I will see if I can get it to work.
If anyone else reads about this trigger plz give me an alternative solution.
Allways good to have a backup plan :P |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|