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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
softballs
Newbie


Joined: 15 Sep 2015
Posts: 9

PostPosted: Thu Sep 03, 2020 1:18 pm   

Multiline capture and LUA code
 
Hi,

I want a trigger that captures the next 6 lines which I can do with the #COND and LoopParams=6

But if I wanted to parse those 6 lines (after they are all captured) with LUA code how would I achieve that?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Thu Sep 03, 2020 8:19 pm   
 
#LUA {lua stuff}

OR

Have separate trigger(s) in the child window where the script language is set to lua.
_________________
Discord: Shalimarwildcat
Reply with quote
softballs
Newbie


Joined: 15 Sep 2015
Posts: 9

PostPosted: Sat Sep 05, 2020 8:02 pm   
 
shalimar wrote:
#LUA {lua stuff}

OR

Have separate trigger(s) in the child window where the script language is set to lua.


My trigger has one trigger state which does:
#ADDITEM captcha_rows %line

Can I instead of that use LUA and add it to a lua variable? How would I access %line with lua code?

I would like to do table.insert(lua_table, %line) but that does not seem to work
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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