Search found 13 matches

by davidk
Mon Dec 14, 2009 5:44 pm
Forum: Mudlet Development
Topic: script dependencies
Replies: 2
Views: 3920

script dependencies

Maybe I missed something, but I couldn't find a way to define which scripts in a package have to be executed in a given order. This would be necessary if a script depends on functions or other objects declared in another script. I would suggest a function dependsOn ("Group/Script") which c...
by davidk
Mon Dec 14, 2009 5:33 pm
Forum: Help Forum
Topic: executing a function that is a value in a table
Replies: 5
Views: 4652

Re: executing a function that is a value in a table

You would have to define the function axeHere before assigning it to another variable. Else the variable "axeHere" would be undefined (the nil value). I guess it only worked previously when you executed the given code twice so during the second run "axeHere" was the correct funct...
by davidk
Wed Dec 09, 2009 8:13 pm
Forum: Help Forum
Topic: Lua Callbacks
Replies: 10
Views: 11717

Lua Callbacks

Currently the functions which set callbacks like tempTimer, tempTrigger and similar take a string as callback function and compile it each time: tempTimer (0.3, [[ echo ("It is time") ]]) If you have a lot of timers running (for example in a speed walk script) this would be quite inefficie...