|
Borbarad Newbie
Joined: 10 Feb 2005 Posts: 9
|
Posted: 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ß |
|
|
|
Borbarad Newbie
Joined: 10 Feb 2005 Posts: 9
|
Posted: 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ß |
|
|
|
|
|