Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Alcander
Wanderer


Joined: 04 Aug 2001
Posts: 79
Location: USA

PostPosted: Mon Jan 29, 2007 1:39 am   

Trigger Help
 
I have the following trigger:

Code:

Pattern: &asker puts {a|an} &object in you.

Script:
inv @object
#WAIT 2000
#IF {@object = elven travel bag} {give bag to @asker}
give @object to @asker


It reports no error, but the #IF statement ignores the = elven travel bag and gives a bag to the @asker variable anyways.

Something Noobish I am doing here?

Alcander
Reply with quote
Alcander
Wanderer


Joined: 04 Aug 2001
Posts: 79
Location: USA

PostPosted: Mon Jan 29, 2007 2:02 am   
 
Ok, managed to figure out my idiot mistakes.

Thanks
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Mon Jan 29, 2007 2:16 am   
 
Also, try avoiding using #WAIT, it's evil.

Instead try

Script:
inv @object
#ALARM temp +2 {#IF (@object = elven travel bag) {give bag to @asker};give @object to @asker}
_________________
CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;)
Reply with quote
Alcander
Wanderer


Joined: 04 Aug 2001
Posts: 79
Location: USA

PostPosted: Mon Jan 29, 2007 2:24 am   
 
Thanks Guinn,

I have yet to learn my lesson of #WAIT
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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