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
Hawkwing
Newbie


Joined: 12 Oct 2002
Posts: 9
Location: Sweden

PostPosted: Sat Oct 12, 2002 3:57 pm   

Timer, trigger and alias problem...
 
Heya, here is the situation. I am standing in a room with lets say 8 mobs. I want to kill those mobs one at a time, with starting with hand to hand but when I hit under 700hp I want to draw (thats drawing my spear) but I want to sheath the spear after the fight. How do I do this?

my hit prompt looks like
{ Hit:1347 Endurance:721 }

also, I would like for something to start the battle after the character has reached full hit point capacity.

Thanx
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Oct 12, 2002 5:12 pm   
 
You were pretty sparing with the details, so treat this as an outline to develop your own script. These commands are all explained in detail in the zMUD helpfiles (click Help in zMUD), and are easily found by clicking on the Commands booklet on the Contents page.
#VAR target mob1
#VAR drawn 1
#TR {^~{ Hit:(%d) Endurance:%d} {#IF (%1 = 1347) {kill @target};#IF ((%1 < 700) AND (@drawn = 0) {#VAR drawn 1;draw} } {} {nocr|prompt}
#TR {mob1 is dead} {#VAR target mob2;kill @target}
#TR {mob2 is dead} {#VAR target mob3;kill @target}
.
.
.
#TR {mob7 is dead} {#VAR target mob8;kill @target}
#TR {mob8 is dead} {#VAR target mob1;#VAR drawn 0;sheath spear}



LightBulb
Senior Member
Reply with quote
Hawkwing
Newbie


Joined: 12 Oct 2002
Posts: 9
Location: Sweden

PostPosted: Sat Oct 12, 2002 5:54 pm   
 
Ohh, Ill try and give you more details, and I thank you for your help.

mob I wanna kill is called wild denizen, though wilnd is good enough.

kill trigger can go on:
Your last hit was the limit...

in order to draw a weapon I use the draw command, that draws the weapon.

sheath or she is the command for sheathing a weapon.

oh, and I was wondering if I can add a trigger for him to sleep when he hits below 300hp.

whats else can I say? what would be relevant to add on?

and I can use a trigger to get him to check hp each minute and when he hits max hp then I can make a trigger for him to use a group that will stand, and start kill wild.

Thanx again....
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Oct 12, 2002 9:53 pm   
 
You misunderstand, I didn't ask for more details. I suggested some commands (and gave examples) so you could do it yourself.

Sample thought process:
Hmm, all my mobs have the same name so I don't really need that @target thing... Sleeping would probably be the same as drawing weapon except with a different number...there's already a kill thing, i could just put stand right before the kill probably...i'll probably need to make some changes to the "dead" triggers since i'm only fighting one thing and find some other way to tell when to sheath the spear...

#VAR drawn 1
#TR {^~{ Hit:(%d) Endurance:%d} {#IF (%1 = 1347) {stand;kill wild};#IF ((%1 < 700) AND (@drawn = 0) {#VAR drawn 1;draw};#IF (%1 < 300) {sleep}} {} {nocr|prompt}
#TR {wild dog is dead} {kill wild}
#TR {you already killed them all} {#VAR drawn 0;sheath spear}
#ALA 00 {check hp}

Personally, I wouldn't recommend sleeping in the middle of a battle -- it tends to be a permanent sleep.

LightBulb
Senior Member
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