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


Joined: 02 Mar 2008
Posts: 1

PostPosted: Sun Mar 02, 2008 9:03 pm   

problem with bless trigger
 
Ok so im almost there but i keep hitting the same wall. Here is what i got.

Remove Robe
You stop using 'a robe'
#TRIGGER {You stop using (*)} {c bless (%1);wear (%1)}

simple i know but here is the problem, the "a" before robe throws off the casting and it wont cast on the item. "a" can also be "an" or "the". ex: the firey dagger or an old robe. how do i get this to work. I was thinking input command but then it goes into a loop somehow and crashes zmud. Please HELP!!!

I want it to be i enter:

Remove Robe

and i get:

You stop using a robe
c bless robe
wear robe

thanks.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sun Mar 02, 2008 9:14 pm   
 
Why not just use an alias?

#alias remove {~remove %1;c bless %1;wear %1}

if you simply must use a trigger, try the pattern You remove '*(%w)' which will capture the last word of the item's name, which is usually the noun to use.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
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