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
knight35966
Beginner


Joined: 28 Feb 2007
Posts: 11
Location: Alabama

PostPosted: Thu Apr 05, 2007 9:10 am   

backstab killing
 
I've wen't through the forum search but nothing quit solves my problem. Well here goes. I want to backstab mob then flee. Then if my hp > xxx then return to that room and backstab flee again.

Here is what my mud displays.

<554H 235M 252V 2071882X 04:43:45 100S> n
Inner Sanctum of Light
backstab pries

? ? ? ? ?
? ? ? ? ?
? ? @ ? ?
? . . ? ?
? ? . ? ?

[ s ]
The corpse of an elven Lady of Light is lying here.
Leajana Sedai is here, meditating on the wisdom of the ancients.
......Leajana Sedai, High Priestess glows with a bright light!

<558H 235M 251V 2071882X 04:43:50 100S> Leajana Sedai, High Priestess makes a strange sound as you place a sharp edged dagger in his back! [190]
flee

<558H 235M 251V 2071787X 59%D 04:43:50 100S>
Leajana Sedai, High Priestess pounds you hard. [9 HP]
Leajana Sedai, High Priestess pounds you hard. [7 HP]
Leajana Sedai, High Priestess pounds you hard. [8 HP]
You miss Leajana Sedai, High Priestess with your pierce. [0 HP]
You miss Leajana Sedai, High Priestess with your pierce. [0 HP]
You pierce Leajana Sedai, High Priestess extremely hard. [18 HP]
You slash Leajana Sedai, High Priestess very hard. [14 HP]

<536H 235M 252V 2071771X 63%D 04:43:52 100S>
Leajana Sedai, High Priestess pounds you very hard. [12 HP]
Leajana Sedai, High Priestess pounds you hard. [9 HP]
Leajana Sedai, High Priestess pounds you hard. [8 HP]
You pierce Leajana Sedai, High Priestess extremely hard. [17 HP]
You pierce Leajana Sedai, High Priestess extremely hard. [18 HP]
You pierce Leajana Sedai, High Priestess extremely hard. [18 HP]
You slash Leajana Sedai, High Priestess extremely hard. [15 HP]

<509H 235M 252V 2071736X 70%D 04:43:53 100S> Leajana Sedai, High Priestess misses you with his pound. [0 HP]
Leajana Sedai, High Priestess misses you with his pound. [0 HP]
Leajana Sedai, High Priestess misses you with his pound. [0 HP]
You pierce Leajana Sedai, High Priestess extremely hard. [18 HP]
You pierce Leajana Sedai, High Priestess very hard. [14 HP]
You pierce Leajana Sedai, High Priestess extremely hard. [17 HP]
You slash Leajana Sedai, High Priestess hard. [10 HP]
Northern End of The Hallway

? ? ? ? ?
? ? . ? ?
? . @ ? ?
? ? . ? ?
? . . ? ?

[ n s w ]
You flee head over heels.
scan

<511H 235M 251V 2072826X 04:43:55 100S> North : Leajana Sedai, High Priestess
Far south : an elven warder

My problem is when I flee it doesn't tell me which direction i went. This is the trig I am using so far.

#CLASS {backstab-flee}
#VAR backstab {Priestess}
#TRIGGER {*%s(%w) avoids your backstab and you nearly cut your own finger!} {
#if {%1!="quickly"} {
#additem backstab %1
flee
}
}
#TRIGGER {*%s(%w) quickly avoids your backstab and you nearly cut your own finger!} {
#additem backstab %1
flee
}
#TRIGGER {*%s(%w) makes a strange sound as you place} {
#additem backstab %1
flee
}
#TRIGGER {You receive %d experience points.} {#DELNITEM backstab 1}
#TRIGGER {You flee head over heels.} {scan}
#CLASS 0

Basicly I need a trig that will check my hp and moves{<509H 235M 252V 2071736X } where if hp < 300H it doesn't trig and same with moves < 100V. Then I also need to find a way to move in the direction that the mob is in from where I scan.

<511H 235M 251V 2072826X 04:43:55 100S> North : Leajana Sedai, High Priestess
Far south : an elven warder

What I was thinking was that i could make a trigger that would trigger on (North : Leajana Sedai, High Priestess) and move me in her direction. But one problem I see with doing this is if there is multiple mobs of the same name. in the room with her or in different directions. So I would have to have it only go after one of the mobs.

I saw that in some other trigs people had made on here they were finding there location by room description but my mud has mazes where that wouldn't work. Any help would be greatly appreciated and sorry this is such a long question.
Reply with quote
knight35966
Beginner


Joined: 28 Feb 2007
Posts: 11
Location: Alabama

PostPosted: Mon Apr 09, 2007 11:42 am   
 
Well I guess I've sat and thought about it and I have decided to go with scan trig. I'm already putting the mobs name in my bstab var so I just need to figure out how to take the text from where I scan and trig on that. The problem is there is some wierd spacing going on between the {direction : mob name}. Any help would be greatly appreciated.
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