|
THENEWGUY Newbie
Joined: 02 Mar 2008 Posts: 1
|
Posted: 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. |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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. |
|
|
|
|
|