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


Joined: 10 Feb 2005
Posts: 9

PostPosted: Thu Jul 07, 2005 9:35 pm   

PICK Problem
 
#PICK {
p:Select an action:} {
Name(@newmob2.Name):%prompt( @newmob2.Name, "Name?")} {
Loads:#addkey {newmob2} {Loads} {%prompt( @newmob2.Loads, "Loads?")}}

This is what i have at the moment. The first #pick entry is dynamicly named and executes a %prompt.
The second #pick entry has a static name and adds a key to variable.

But what i want is an entry with a dynamic name which prompts the user
and puts it into the variable. So similar to the 2nd #pick entry just with a dynamic name. If i replace "Loads" with something like
"Loads(@newmob2.Loads)" then i get a syntax error. I cannot understand this. Any ideas?
Best Regards,
Marcel Honstraß
Reply with quote
Borbarad
Newbie


Joined: 10 Feb 2005
Posts: 9

PostPosted: Wed Jul 20, 2005 8:33 pm   
 
I have done some testing with it, but i still do not find a solution for my problem:

#Var test "hallo"
#Var newmob2 ""
#PICK {p:Select an action:} {o:1} {Saying(@test):say @test}
#PICK {p:Select an action:} {o:1} {Loads:#addkey {newmob2} {Loads} {"a nice sword"}}

First entry of Pick 1 is a dynamic name.
Why doesnt it work with Pick 2? Why can i not just replace
Loads with
Saying(@test)?
Any help would help.
Marcel Honstraß
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