Search found 52 matches

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: 2152

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...
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: 3189

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: 3189

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 :)
by Lucky24
Thu Oct 21, 2010 11:49 am
Forum: Howtos, FAQs and Tips & Tricks
Topic: highlighting script
Replies: 2
Views: 2264

Re: highlighting script

Simplest way to do it would be to create a trigger that matches each text you want colored, check the "highlight" checkbox, and the "match all" (if you want to match multiple occurrences in one line). You can use the match type default of "substring" and simply type in ...
by Lucky24
Sat Oct 09, 2010 10:25 am
Forum: Help Forum
Topic: Script failure
Replies: 5
Views: 2037

Re: Script failure

Check out http://www.lua.org/pil/3.3.html for how the AND/OR/NOT operators work. BTW, your first line of code is always going to assign the first part to your local equilibrium variable, because balance.equilibrium is defined, and "<255,255,255>e" is a legitimate value. the AND statement j...
by Lucky24
Fri Oct 08, 2010 9:26 am
Forum: General Forum
Topic: Mapper now able to map non IRE MUDs
Replies: 48
Views: 21449

Re: Mapper now able to map non IRE MUDs

wooow. Pretty cool :D Yep, looks awesome, as long as there's a way to manually enter exit lengths as TEC doesn't have any way to uniquely identify rooms (some room descriptions are *identical*), so I think I'll just have to tell the mapper when to connect to an existing room and when to make space i...
by Lucky24
Thu Oct 07, 2010 9:28 am
Forum: General Forum
Topic: Mapper now able to map non IRE MUDs
Replies: 48
Views: 21449

Re: Mapper now able to map non IRE MUDs

TEC: The Eternal City It's a standard N,NE,E,SE,S,SW,W,NW,Down,Up world. I have all the triggers necessary to map things, including a script that does a "sizeup" on each room to get its size when I enter. I wasn't sure what 'v' was in k,v = pairs(GMCP.exits), but from your comments I thin...
by Lucky24
Wed Oct 06, 2010 12:18 pm
Forum: General Forum
Topic: Mapper now able to map non IRE MUDs
Replies: 48
Views: 21449

Re: Mapper now able to map non IRE MUDs

Wow, this looks great! I have one question/feature request: My mud (TEC) has room "sizes", aka, "a large plaza" can be 4x the size of a "narrow alley", and thus you have to walk 4 "narrow alleys" to make up the distance of one "large plaza". Is there...
by Lucky24
Sat Sep 25, 2010 8:48 am
Forum: Help Forum
Topic: table.save error.
Replies: 2
Views: 1409

Re: table.save error.

Just adding keywords for people searching for this: saveVars() remember() remember("") loadVars() P.S. I've noticed other stuff in 1.1 that doesn't correspond to the manual exactly, like db:fetch_database(""), which throws a "attempt to call method 'fetch_database' (a nil va...
by Lucky24
Fri Sep 17, 2010 10:58 am
Forum: Scripts & Packages
Topic: Custom Quick Queues
Replies: 6
Views: 5292

Re: Custom Quick Queues

I needed a way to insure no commands were overwritten, so I used a lot of the basic ideas from your sendQueue() function to write my own serialized queuing system. I haven't fully tested it yet, and I'd like to add a few more features, but right now it will accept any number of commands and pauses, ...