Vadi2011-04-05 21:23:39
Archive it as a .zip file
Lilia2011-04-05 21:33:19
Aha!
Note: If you don't have Anisu's name highlighter, you'll want to remove that line in the trigger. If you do, and you're on the Glom/Celest side, just change the org names.
Zynna2011-04-06 04:39:49
Awesome, thanks!
Vadi2011-04-06 15:58:08
Mudlet now has a wiki at wiki.mudlet.org, perhaps it would be good to organize scripts there for easier searchability than in a forum thread.
Unknown2011-04-06 22:24:38
Why does
Lua for k in pairs(gmcp.Room.Info.exits) do echo("battcap", k.." ") end
work from the commandline, but not from within a script? (without the lua at the start)
Lua for k in pairs(gmcp.Room.Info.exits) do echo("battcap", k.." ") end
work from the commandline, but not from within a script? (without the lua at the start)
Vadi2011-04-06 23:45:58
There are no differences between commandline and script - your problem must be elsewhere.
Acrune2011-04-08 03:05:14
I'd like to make buttons of some sort that I can change the label of with a trigger. I can't see any way to do that other than make a label, hide it, and make a new label. Any tips? 

Vadi2011-04-08 11:43:40
What do you mean by 'change'?
Xenthos2011-04-08 11:45:12
QUOTE (Vadi @ Apr 8 2011, 07:43 AM) <{POST_SNAPBACK}>
What do you mean by 'change'?
Make the text read something different depending on certain states. That's how I read it at least.
Vadi2011-04-08 14:48:41
You just re-do what you did to make it show before... ie if you used echo("mylabel", "stuff to say") then you do it with a different text - echo("mylabel", "stuff to say")
Kelly2011-04-08 20:39:02
Is there a function to change the font type in mini windows?
Vadi2011-04-08 21:21:33
No, because if you make scripts that make use of that and share them, other people aren't guaranteed to have those fonts (pain)
Kelly2011-04-08 22:35:41
Ah, okay. Thanks!
Also is there a way to capitalize all of the letters in a string? Like title() but for the whole word.
Also is there a way to capitalize all of the letters in a string? Like title() but for the whole word.
Lilia2011-04-08 22:49:20
string.upper()
Sylphas2011-04-09 01:58:51
Am I right to assume Mudlet's string:split() function takes a string as a delimiter, and won't accept a pattern?
Dysolis2011-04-09 07:21:43
How would I create a space with this alias? I had it before but it's been a while and I lost it during some configuration of mudlet. ^gst\\s+(\\w+)$ I am trying to get a direction in a gust syntax.
Sylphas2011-04-09 07:25:55
QUOTE (Dysolis @ Apr 9 2011, 03:21 AM) <{POST_SNAPBACK}>
How would I create a space with this alias? I had it before but it's been a while and I lost it during some configuration of mudlet. ^gst\\s+(\\w+)$ I am trying to get a direction in a gust syntax.
That should work as is.
^gst\\s+(\\w+)$
send("cast gust " ..
Alternately, ^gst(\\s+\\w+)$
send("cast gust '" ..
In the second, you just capture the space as part of the direction match so you don't have to concatenate one in.
Vadi2011-04-09 11:26:40
QUOTE (Sylphas @ Apr 8 2011, 09:58 PM) <{POST_SNAPBACK}>
Am I right to assume Mudlet's string:split() function takes a string as a delimiter, and won't accept a pattern?
Probably, if it doesn't work then it is so. The Lua wiki has quite a few of string split functions though, and some of them are bound to accept a pattern.
Calixa2011-04-12 18:16:19
Ignore me, solution to problem was found.
Anisu2011-04-12 19:29:42
QUOTE (Calixa @ Apr 12 2011, 08:16 PM) <{POST_SNAPBACK}>
Ignore me, solution to problem was found.
Hrm I actually forgot about that, now I really have to redo the IFF in to script functions so I can use that to automaticly patch in