Search found 125 matches

by Jules
Mon Jan 24, 2011 11:01 pm
Forum: General Forum
Topic: Mudlet-2.0 release candidates [latest: Mudlet 2.0 final]
Replies: 190
Views: 107234

Re: 2.0 snapshots

I have a quick, unrelated question about the 2.0 snapshot. Concerning the IRC client baked in, is there a way to change my name, instead of being known as Mudlet8675309? This could be an IRC-specific question (to which I know next to nothing about).
by Jules
Fri Jan 21, 2011 8:05 pm
Forum: Help Forum
Topic: [I Need Help] Using Events with Functions Found in Tables
Replies: 5
Views: 1613

Re: [I Need Help] Using Events with Functions Found in Table

Well damn, that's no fun! Thanks a ton, Heiko and Vadi. I'll just distinguish functions with a prefix, so not a big deal!
by Jules
Thu Jan 20, 2011 3:28 pm
Forum: Help Forum
Topic: [I Need Help] Using Events with Functions Found in Tables
Replies: 5
Views: 1613

Re: [I Need Help] Using Events with Functions Found in Table

Okay, now this isn't working properly... I added an event onPrompt to my dragonfly:cureAffliction() function, so I don't have to call it directly on the prompt. When I open up the Errors screen, I get the (amazingly unhelpful) error of: [ERROR:] object:<event handler function> function:<cureAfflicti...
by Jules
Sun Jan 16, 2011 6:08 pm
Forum: Help Forum
Topic: [I Need Help] Using Events with Functions Found in Tables
Replies: 5
Views: 1613

Re: Using Events with Functions Found in Tables

Nevermind, I figured it out for myself. It should, in fact, be called fireTurret, and not aethercraft:fireTurret!
by Jules
Sun Jan 16, 2011 6:07 pm
Forum: Help Forum
Topic: [I Need Help] Using Events with Functions Found in Tables
Replies: 5
Views: 1613

[I Need Help] Using Events with Functions Found in Tables

If I'm going to be using an Event, say... "onAetherBalance" on a function called aethercraft:fireTurret(), would I name the Script aethercraft:fireTurret() or fireTurret()?
by Jules
Tue Jan 11, 2011 11:35 pm
Forum: Help Forum
Topic: How do I specify a variable?
Replies: 5
Views: 1337

Re: How do I specify a variable?

It's just by the way Lua works and is designed. All wildcards are found using the Perl RegExp engine, with which there's a ton of documentation about. It's a bit more robust than Zugg's implimentation of wildcards, in that it can handle more things, faster. When you learn the secrets of discerning R...
by Jules
Tue Jan 11, 2011 11:35 pm
Forum: Howtos, FAQs and Tips & Tricks
Topic: How do I specify a variable?
Replies: 5
Views: 2446

Re: How do I specify a variable?

It's just by the way Lua works and is designed. All wildcards are found using the Perl RegExp engine, with which there's a ton of documentation about. It's a bit more robust than Zugg's implimentation of wildcards, in that it can handle more things, faster. When you learn the secrets of discerning R...
by Jules
Tue Jan 11, 2011 5:27 pm
Forum: Howtos, FAQs and Tips & Tricks
Topic: How do I specify a variable?
Replies: 5
Views: 2446

Re: How do I specify a variable?

This sort of thing is pretty easy. I'm guessing your example is a trigger, so I would make a new trigger to look like: (\w+) says\: "Iceshield." From there, you make a variable from the regex wildcard by doing: local person = matches[2] (Notice that I used local. If you're only going to be using a v...
by Jules
Tue Jan 11, 2011 5:27 pm
Forum: Help Forum
Topic: How do I specify a variable?
Replies: 5
Views: 1337

Re: How do I specify a variable?

This sort of thing is pretty easy. I'm guessing your example is a trigger, so I would make a new trigger to look like: (\w+) says\: "Iceshield." From there, you make a variable from the regex wildcard by doing: local person = matches[2] (Notice that I used local. If you're only going to be using a v...
by Jules
Sat Dec 18, 2010 5:21 pm
Forum: Help Forum
Topic: Curing
Replies: 8
Views: 2057

Re: Curing

Another option that you have in keeping afflictions ordered is to use the phpTable() function. By default, Lua does not keep the order in key/value tables, unless the key is a number. Therefor, you can cut down on the number of table you have by storing the cure balances in order, along with the aff...