Search found 49 matches

by Lucky24
Mon Dec 20, 2010 4:18 am
Forum: Mudlet Development
Topic: [Bug] script compile errors not shown on load
Replies: 3
Views: 928

[Bug] script compile errors not shown on load

I'm having a hard time tracking down some compile errors, as they only seem to happen on first load, but mudlet doesn't show the little bug icon on first connect (as the profile hasn't been loaded I assume), and doesn't seem I think it has to do with some variables not being defined or some such, bu...
by Lucky24
Tue Nov 16, 2010 11:44 am
Forum: Help Forum
Topic: Starting a chat miniconsole
Replies: 5
Views: 1113

Re: Starting a chat miniconsole

so, global_width is not defined, or defined with a nil (nothing) value. search for "global_width", and see where the variable is being defined (or not being defined), which should happen before the Chat script where it is being used.
by Lucky24
Tue Nov 16, 2010 11:28 am
Forum: Help Forum
Topic: Nesting temptriggers
Replies: 5
Views: 1368

Re: Nesting temptriggers

My guess would be the multiple [[ ]] brackets and the carriage returns make the complier confused. When using tempTrigger() and tempTimer(), and I need to use more than one set of [[ ]], I either put all the lua in one line (with semicolons separating the statements), which works fine, or create a n...
by Lucky24
Mon Nov 15, 2010 2:40 pm
Forum: Help Forum
Topic: Basic trigger script
Replies: 4
Views: 938

Re: Basic trigger script

Also, I usually go for a "try to find the target string anywhere in matches[2]", with a string.find(matches[2],target). Putting it together would look like: string.find(string.lower(matches[2]),target) This returns true (actually the start and end position) if the target string can be found anywhere...
by Lucky24
Mon Nov 15, 2010 2:33 pm
Forum: Help Forum
Topic: house member miniconsole
Replies: 5
Views: 1011

Re: house member miniconsole

You can also always just scroll a miniconsole by hovering over it and using the mouse scroll wheel to scroll up and down if there's too many lines to display (works just like the main window)
by Lucky24
Sat Nov 13, 2010 12:19 am
Forum: Help Forum
Topic: LUA: Passing a local table to a function (for tempTriggers)
Replies: 3
Views: 1342

Re: LUA: Passing a local table to a function (for tempTriggers)

Just a followup on what I actually did to solve this problem for future reference: I decided *not* to use serialization because I don't want to pass all of the properties of the object forward in time to the tempTrigger; I want to actually pass the object, so that any state changes between when the ...
by Lucky24
Tue Nov 09, 2010 4:52 pm
Forum: Help Forum
Topic: LUA: Passing a local table to a function (for tempTriggers)
Replies: 3
Views: 1342

Re: LUA: Passing a local table to a function (for tempTriggers)

Ah, thank you. "Serialization" is the verb I needed to know :)

For reference, here's the wiki page for lua serialization:

Lua-Users Wiki Table Serialization
by Lucky24
Tue Nov 09, 2010 12:28 pm
Forum: Help Forum
Topic: LUA: Passing a local table to a function (for tempTriggers)
Replies: 3
Views: 1342

LUA: Passing a local table to a function (for tempTriggers)

I'm wondering if there is any way to pass a local table value into a trigger/timer, and have it come out on the other side able to use it. I want to be able to pass in the local "self" table, so I can use it within the temp trigger and or timer. So, someway to pass a local table value into the tempR...
by Lucky24
Fri Oct 29, 2010 3:18 am
Forum: Howtos, FAQs and Tips & Tricks
Topic: How to save variables to file
Replies: 5
Views: 2155

Re: How to save variables to file

Well I dunno what I did, but for some reason they aren't called automagically for me in pre6 anymore :(
by Lucky24
Thu Oct 21, 2010 11:54 am
Forum: Howtos, FAQs and Tips & Tricks
Topic: How to save variables to file
Replies: 5
Views: 2155

Re: How to save variables to file

they are called automatically in the new 2.0 pre6 version you can download. I haven't seen any major bugs while using it, I suggest you try it out :)