About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 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
intoK
Apprentice


Joined: 18 Feb 2007
Posts: 190

PostPosted: Mon Jan 11, 2010 9:22 am   

[3.12 Lua] zs.cmd.temp() ignores second argument
 
fe. zs.cmd.temp("^agsdgasf","#OK","temp","verbatim") will create trigger but without #ok in script, on a rare occasion it will ignore second argument and create trigger in flags (verbatim) class
btw. would be nice to have access to id field from lua in both commands (to name triggers)
Reply with quote
Zugg
MASTER


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

PostPosted: Wed Jan 13, 2010 10:55 pm   
 
Confirmed.

For access to the ID field, you need to take the result from the zs.cmd and then assign the "name" property (as mentioned here)
For example, for a normal trigger:
Code:
trig = zs.cmd.trigger("^agsdgasf","#OK")
trig.name = "MyName"
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