Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
doomfyre
Apprentice


Joined: 03 Jan 2002
Posts: 152
Location: USA

PostPosted: 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}
Reply with quote
Troubadour
GURU


Joined: 14 Oct 2000
Posts: 556
Location: USA

PostPosted: 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
Reply with quote
Kru
Beginner


Joined: 14 Nov 2001
Posts: 28

PostPosted: 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}
Reply with quote
doomfyre
Apprentice


Joined: 03 Jan 2002
Posts: 152
Location: USA

PostPosted: Sat Feb 09, 2002 12:04 pm   
 
Thanks very much for taking the time to reply guys.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net