Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Arde
Enchanter


Joined: 09 Sep 2007
Posts: 605

PostPosted: Fri Mar 06, 2009 9:04 pm   

[3.03a - 3.04a] zs.numparam
 
Add this alias to the untitled session

Code:

<alias name="test" language="Lua" id="1">
  <value>print(zs.numparam)</value>
  <arglist>$testParam</arglist>
</alias>


1) Type "test" (Enter). Output: 0
2) In the package editor right-click on the alias name in the tree, "Execute script", answer Ok or Cancel. Output: -1

Why?
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Fri Mar 06, 2009 9:59 pm   
 
Not sure, but probably because zs.param depends upon there being a runtime stack associated with the alias, and the Execute script in the package editor doesn't generate any. I'll add this to the bug list, but I think it's pretty minor since the script works in normal context.
Reply with quote
Arde
Enchanter


Joined: 09 Sep 2007
Posts: 605

PostPosted: Fri Mar 06, 2009 10:08 pm   
 
Zugg wrote:
I'll add this to the bug list, but I think it's pretty minor since the script works in normal context.

Yeah, I think I'm gonna test individual parameters for nil instead of using of zs.numparam.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Mar 09, 2009 5:16 pm   
 
I'll add this to the bug list since you really should be able to use zs.numparam and not need to kludge your scripts.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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