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
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Fri Jan 16, 2009 10:38 pm   

How do you pull param from oninput trigger in LUA?
 
I have an oninput trigger but the LUA script in it won't work because I am not sure how to pull the value into it.

I tried local arg = zs.param(1) but that doesn't work. When I put print(zs.param(1)) it prints 0. It works fine for regular triggers but it won't work in the oninput trigger.

Any ideas? I'm trying to get a lot done and keep running into simple issues that aren't explained anywhere.
Reply with quote
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Fri Jan 16, 2009 11:30 pm   
 
Good god. Never mind. It was another case of LUA just stopped working AAGAIN. I closed CMUD and restarted and zs.param(1) worked. I really hope it doesn't do this after I write all of this LUA.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sat Jan 17, 2009 6:20 am   
 
It's weird that you're having so many problems with this - you might want to delete CMUD's lua.dll (or lua5.1.dll, I can't remember which is for CMUD) and rerunning the installer and see if that helps.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
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