Cannot interact with data obtained using the "as key" verb argument. Data is being stored inside the "alt" variable but I cannot seem to manipulate it in any way I can think of.
Numbered Steps to Reproduce Problem:
1) use the code below
2) run the verb
3) select one of your usernames
3) await your selected username to be printed to your skin's output.
Code Snippet (if applicable) to Reproduce Problem:
/client/verb/sendalts2()
var/alt = input(usr,"Alts","Alts",null) as key|null
usr << "[alt]"
Expected Results:
An input message should display a list of keys from the usr's key.txt in their BYOND folder. The selected key should then be output to the usr.
Actual Results:
The input list shows. However, when one is selected nothing happens. Also when checking alt's type using isnull, istext, ispath, isnum, isfile etc. No information was returned at all. So I'm assuming it's some weird datatype or something.
if(isnull(alt)) world << "null" does nothing, so there -is- data being stored in alt. I just can't interact with it in any way.
Does the problem occur:
Every time? Or how often? Everytime
In other games? Isolated in a test environment. Language defect/(feature?)
In other user accounts? yes
On other computers? yes
When does the problem NOT occur? Unknown
Workarounds: None that I am aware of.
Notes: I may just be misguided as to the value being returned by the input list. Or, this may have only be intended as a client-side thing. Regardless, any information would be appreciated.
http://www.byond.com/forum/?post=700728
http://www.byond.com/forum/?post=162647
Thanks
Try the following:
You'll notice that all you get is "In sendalts2" followed by "In query", selecting a key doesn't display "After input" or "After query", so it's simply hanging.