|
ecourt Apprentice
Joined: 29 Dec 2000 Posts: 146 Location: USA
|
Posted: Fri Jun 29, 2007 1:59 pm
variable assignment from trigger problems |
ok .. the line from the mud looks like this
Object 'a stone ring', Item type: OTHER
my trigger looks like this
Object '&stuff.Name' , Item type:
but stuff.name always comes up blank...
I know it's the ' character causing the problems, but I can't get around it.
thanks for the help |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Fri Jun 29, 2007 2:22 pm |
You could either quote the ' characters by putting ~ before them, making your pattern
Object ~'&stuff.Name~', Item type:
or you could use a wildcard and assign the variable yourself
#trig {Object ~'(*)~', Item type:} {stuff.Name = %1}
And for future reference, make sure you don't add spaces to your pattern where there aren't any in the text. |
|
|
|
ecourt Apprentice
Joined: 29 Dec 2000 Posts: 146 Location: USA
|
Posted: Fri Jun 29, 2007 2:25 pm |
the ~ was the character I couldn't remember, I kept trying \ ...
also, not sure what you mean by this..
And for future reference, make sure you don't add spaces to your pattern where there aren't any in the text.
Thanks |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Fri Jun 29, 2007 3:49 pm |
In the pattern you have in your post, you have a space inbetween the ' and the , but there isn't one in
Object 'a stone ring', Item type: OTHER
that's all. |
|
|
|
|
|