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


Joined: 26 Jan 2004
Posts: 21
Location: Norway

PostPosted: Thu Feb 26, 2004 1:59 am   

Gagging nextline
 
example output:

You aim at human with your left front hoof, but he blocks the attack
with his shield.

#trig You aim at * with your *, but * blocks the attack
#gag
#cond with * shield.
#gag

Would this work?

And if so would this work
#trig You aim at * with your *, but
#gag
#cond shield.
#gag

I could also ofcourse make 2 triggers to handle that particular output....
but sometimes the output is different so it looks like this
You aim at human with your sword, but he blocks the attack with his shield.

So well...using Shield. as a gag trigger would suck majorly as it would gag every time i say shield.


Lench
Reply with quote
Lench
Beginner


Joined: 26 Jan 2004
Posts: 21
Location: Norway

PostPosted: Thu Feb 26, 2004 2:10 am   
 
Was just thinking...what if you got the first

#trigger <text> firing

then the #condition didnt happen....
would that trigger not work the next time then?

Since its waiting for the condition....
Reply with quote
DeReP
Adept


Joined: 14 Jun 2003
Posts: 222
Location: Chile

PostPosted: Thu Feb 26, 2004 2:19 am   
 
Are you sure those are 2 seperate lines? sometimes the mud sends one line that is split into 2 but its actually only one.
The trigger would wait for the condition, yes.

#TRIG {blocks the attack} {#GAG}
#TRIG {with * shield} {#GAG}
Reply with quote
Lench
Beginner


Joined: 26 Jan 2004
Posts: 21
Location: Norway

PostPosted: Thu Feb 26, 2004 2:33 am   
 
yes its two separate lines im afraid, the mud does its own word wrapping....

If it wasnt, it would be fairly simple :)

Its no easy way to cover all the possible outputs since the name of the attacker, his weapon etc will all be different lengths.


But i just found out a way to sort the condition


#cond {with * shield.} {#gag} {within|param=1}
Reply with quote
Lench
Beginner


Joined: 26 Jan 2004
Posts: 21
Location: Norway

PostPosted: Thu Feb 26, 2004 2:47 am   
 
This is my attempt at it anyways....

Wanted to edit it in, but couldnt, so if anyone see any errors or similar let me know :)


;you aim at red-eyed fat male elf with your sword, but he parries.
#trig You aim at * with *, but * parries.


;You aim at human with your left front hoof, but he blocks the attack
;with his shield.
#trig {* aim at * with your *, but * blocks} {#gag}
#cond {shield.} {#gag} {within|param=1}


;You hit the left leg of the red-haired willowy female elf with your left
;hand, but the red-haired willowy female elf's armour absorbs all the damage.

;You hit the torso of the red-haired willowy female elf with your left hand,
;but the red-haired willowy female elf's armour absorbs all the damage.

;You hit the right leg of Griffin with your left hand, but Griffin's armour
;absorbs all the damage.

;You hit the torso of the wide-mouthed skinny-legged male goblin with your
;left hand, but the wide-mouthed skinny-legged male goblin's armour absorbs
;all the damage.

;You hit the left arm of the brown-skinned stinking male goblin with
;your left
;hand, but the brown-skinned stinking male goblin's armour absorbs all
;the
;damage.

#trig {You hit the * of * with your} {#gag}
#cond {armour absorbs all} {#gag} {within|param=1}



;The black nasty wild male chimpanzee aims at you with his left claw, but you
;parry.
;The cross eyed mean male goblin aims at you with his dagger, but you parry.
#trig {* aims at you with} {#gag}
#cond {parry.} {#gag} {within|param=1}


;;; YOU ABSORB
;The cross eyed dirty male goblin hits your left arm with his dagger, but your
;armour absorbs the damage.
;The black nasty wild male chimpanzee hits your right arm with his teeth, but
;your armour absorbs the damage.

#trig {* hits your * with *} {#gag}
#cond {absorbs the damage.} {#gag} {within|param=1}
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