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


Joined: 21 Mar 2003
Posts: 19
Location: USA

PostPosted: Sat Apr 05, 2003 11:52 pm   

Triggers
 
Ok, I'm trying to make a trigger that will automatically wield my axe after I've been disarmed. The text in the game would be something like this:
"A Knight has disarmed you."
or
"A Dirty Thief has disarmed you."

I want it to trigger on "has disarmed you." but I can't get it to work. What am I doing wrong?

#TRIGGER {has disarmed you.} {WIELD AXE}
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Apr 06, 2003 2:32 am   
 
quote:

Ok, I'm trying to make a trigger that will automatically wield my axe after I've been disarmed. The text in the game would be something like this:
"A Knight has disarmed you."
or
"A Dirty Thief has disarmed you."

I want it to trigger on "has disarmed you." but I can't get it to work. What am I doing wrong?

#TRIGGER {has disarmed you.} {WIELD AXE}



Is this trigger enabled? What about options, is it set as prompt or newline? Any other options set? Is the little pistol icon in the lower right of your ZMud screen have a red X over it? Is the line you're triggering on really end at the period, or is there some whitespace (spaces) at the end of it?

Nothing in your post indicates a syntax problem of any sort, unless you made a typo.

li'l shmoe of Dragon's Gate MUD
Reply with quote
Dielantha
Beginner


Joined: 29 Nov 2002
Posts: 12
Location: USA

PostPosted: Sun Apr 06, 2003 3:11 am   
 
From my experience most MUDs when disarming a player the weapon goes to the floor in the room and not to your inventory. Your syntax looks fine so far, but I would redo the trigger to "get axe" first then wield axe So perhaps try this:

#TRIGGER {has disarmed you.} {GET AXE;WIELD AXE}


Dielantha Darshiva, Lord of the Silver Dragon - Darkmists MUD
Reply with quote
morgair
Beginner


Joined: 10 Nov 2000
Posts: 24
Location: USA

PostPosted: Sun Apr 06, 2003 6:01 am   
 
you may have it set to newline or prompt trigger i would try using a simple wildcard

#TR {%* has disarmed you.} {wield axe}

Morgair, Master of the Obvious
Reply with quote
Bradach
Beginner


Joined: 21 Mar 2003
Posts: 19
Location: USA

PostPosted: Sun Apr 06, 2003 10:56 pm   
 
Triggers are enabled, Prompt and Newline are off, and, when disarmed, the weapon is placed in your inventory, not on the floor. I'm pretty sure I already checked for blank spaces at the end, but I'll look again anyway. Thanks for your help, at least I'm not the only one who doesn't understand why it ain't work'n, lol. One thought I had was possibly using the '$' operator to force it to look at the end of the line, but while I see mention of it in help, I don't see any good explaination of it's use. Any thoughts?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Apr 07, 2003 1:24 am   
 
Turn Newline back on.

These two options control when the trigger is checked. If they are both off, then it never gets checked. Therefore, it will never fire.

LightBulb
Advanced Member
Reply with quote
Bradach
Beginner


Joined: 21 Mar 2003
Posts: 19
Location: USA

PostPosted: Mon Apr 07, 2003 5:19 am   
 
Thank you! That did it! I feel like an idoit, lol.
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