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
Thalir
Novice


Joined: 10 Aug 2002
Posts: 35
Location: USA

PostPosted: Mon May 16, 2005 5:53 pm   

trigger Echo how do i stop it.
 
Ok,
The character i play uses the "claw" command to attack a target.
If i typed claw shadow the MUD text would look like this.

claw shadow
You claw at the small shadow!
The attack is a decent slash to the head.
The small shadow is knocked back!
It stumbles and falls down!
[3 sec. delay]
You claw at the small shadow!
The attack is a good slash to the left leg.
[2 sec. delay]

now i've set up a trigger to keep clawing at the shadow until its dead.

#TRIGGER {You claw at * %1!}{#IF (@claw) {claw %1} {#VAR claw 1}

problem is i claw twice in 1 round Zmud is picking up the text and reading it as 2 commands thus executing the command again.
Which looks like this:

claw shadow
You claw at the small shadow!
claw shadow
The attack is a good slash to the left arm.
The small shadow is knocked back!
[3 sec. delay]
You claw at the small shadow!
claw shadow
The attack goes wild.
[2 sec. delay]

which is basicly sending 3 claw shadow commands to the server the one i typed to execute the attack and 2 others when its see's {you claw}


so my question is..
How do i trick Zmud into only clawing once per round and keep the ability to continuesly claw till my target is dead?

Any help on this would be appeciated.

Thank You,
Thalir
Reply with quote
DeReP
Adept


Joined: 14 Jun 2003
Posts: 222
Location: Chile

PostPosted: Mon May 16, 2005 6:37 pm   
 
How long is a round there, is it like this ?
ROUND 1
You claw at the small shadow!
claw shadow
The attack is a good slash to the left arm.
The small shadow is knocked back!

ROUND 2
You claw at the small shadow!
claw shadow
The attack goes wild.

?
Reply with quote
DeReP
Adept


Joined: 14 Jun 2003
Posts: 222
Location: Chile

PostPosted: Mon May 16, 2005 6:44 pm   
 
If that whole thing is one round, I guess conditions would be kinda useful.

#TRIGGER {You claw at * (%w)!} {}
#COND {You claw at * (%w)!} {claw %1}
This would trigger after the 2nd "You claw at the small shadow" was received.
Reply with quote
Thalir
Novice


Joined: 10 Aug 2002
Posts: 35
Location: USA

PostPosted: Mon May 16, 2005 7:06 pm   
 
A round for me will last 5 seconds before i can attack again with a 1 sec hidden delay, but that is subject to change at higher levels.

when i say round i mean i attack it, it attacks me.
5 seconds later i'm able to attack again starting what would be called the 2nd round. its only theoretical.

this is what i see as a "round."
claw shad
You claw at the small shadow
the attack is a good hit!
[3 sec. delay]
You claw at the small shadow
the attack is a good hit!
[2 sec. delay]


The small shadow claws at you!
The attack is a strong blow to the left leg.
Your heavy polished steel squire's mail absorbs about half of the damage!
Your thick scales absorbs a bit of the damage.
Your left leg takes 9 points of slash damage!


end round 1
begind round 2

I claw again
it claws again

end round 2

the shadow may only have a 2 second delay on its claws thus being able to attack twice in the 5 second delay i have.
not sure if that answers your question. hope it does, let me know if you need more information.

Thanks,
Thalir
Reply with quote
Thalir
Novice


Joined: 10 Aug 2002
Posts: 35
Location: USA

PostPosted: Mon May 16, 2005 7:54 pm   
 
wow that works like a charm

THANK YOU SO MUCH!!!!
Thalir
Reply with quote
DeReP
Adept


Joined: 14 Jun 2003
Posts: 222
Location: Chile

PostPosted: Mon May 16, 2005 7:59 pm   
 
:D
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon May 16, 2005 10:01 pm   
 
It won't work for clawing with just one hand. Probably better to trigger on the prompt, though of course even that won't work if you're filling up the in-game queue (the prompt only appears when the queue is empty).
_________________
EDIT: I didn't like my old signature
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon May 16, 2005 10:03 pm   
 
bah, those two duplicates can be removed. The boards spit out an emailer.php error at me.
_________________
EDIT: I didn't like my old signature
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