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
ecourt
Apprentice


Joined: 29 Dec 2000
Posts: 146
Location: USA

PostPosted: 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
Reply with quote
Fang Xianfu
GURU


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

PostPosted: 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.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
ecourt
Apprentice


Joined: 29 Dec 2000
Posts: 146
Location: USA

PostPosted: 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
Reply with quote
Fang Xianfu
GURU


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

PostPosted: 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.
_________________
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