|
doomfyre Apprentice
Joined: 03 Jan 2002 Posts: 152 Location: USA
|
Posted: Sat Feb 09, 2002 6:48 am
Need help with what "should" be a simple trigger |
Hi, thanks for reading. What i want is a trigger that, upon entering a certain room, i will begin to fight the virgin that is there, "feed" until the first of the middle set of numbers in my prompt reaches 60, then "hiss virgin".
Heres my prompt, the 60/60 is the set of numbers in question. My "blood points".
<1312/1368 60/60 613/616>
i have the basic idea for the trigger down, just not how to get it to watch for the 60/60.
I guess the easiest way would be to trigger off the room name. The mob is always there, no matter what, and it doesnt matter if someone else is fighting it or not. The sole purpose of the virgin is to fill members of the vampire guild's blood points.
so, a basic foundation i suppose would be:
#trigger {A Room Covered with Blood} {kill virgin; feed} |
|
|
|
Troubadour GURU
Joined: 14 Oct 2000 Posts: 556 Location: USA
|
Posted: Sat Feb 09, 2002 8:02 am |
Use a variable to track when you are feeding and place it in your prompt trigger.
#trigger {A Room Covered with Blood} {#VAR isFeeding 1; kill virgin; feed}
#TR {~<%d/%d (%d)/(%d) %d/%d~>} {#IF @isFeeding {#IF (%1 < %2) {feed} {#VAR isFeeding 0}}} "" "prompt"
Troubadour |
|
|
|
Kru Beginner
Joined: 14 Nov 2001 Posts: 28
|
Posted: Sat Feb 09, 2002 8:10 am |
I don't know how your propmt shows up in relation to the room itself. However, I think its a good idea to have zmud keep track of the variables in your prompt at all times, so its ok to have a seperate trigger for it. I also do not know what the combat text looks like, do you see your prompt with every line of combat? I hope so... Here is my attempt:
#TR {^~<%d/%d &%dCurrent_Blood/&%dMax_Blood %d/%d~>}
#TR {A Room Covered with Blood} {kill virgin}
#TR {@Current_Blood<@Max_Blood} {feed}
#TR {@Current_Blood=@Max_Blood} {hiss virgin} |
|
|
|
doomfyre Apprentice
Joined: 03 Jan 2002 Posts: 152 Location: USA
|
Posted: Sat Feb 09, 2002 12:04 pm |
Thanks very much for taking the time to reply guys.
|
|
|
|
|
|