Search found 94 matches

by keneanung
Thu Dec 18, 2014 2:36 pm
Forum: Help Forum
Topic: Content of Scripts / Aliases / Triggers Vanishing
Replies: 2
Views: 817

Re: Content of Scripts / Aliases / Triggers Vanishing

This is a known problem with the alpha and beta build (for example here http://forums.mudlet.org/viewtopic.php? ... =10#p21774 or multiple comments after that). But the devs are working on it
by keneanung
Tue Aug 26, 2014 7:48 am
Forum: Help Forum
Topic: Profile Issues
Replies: 7
Views: 1693

Re: Profile Issues

Not for a while now, but I seldomly created new profiles in the meantime.
by keneanung
Tue May 06, 2014 2:33 pm
Forum: Help Forum
Topic: Help: An Off Issue
Replies: 7
Views: 1326

Re: Help: An Off Issue

It does answer... Read feteaera's and my answer again...

not matches[4] == "Scent equals (not matches[4]) == "Scent" which is false == "Scent"

ETA: and "~=" is usually the easier understood version of "not equal" anyways....
by keneanung
Tue May 06, 2014 2:15 pm
Forum: Help Forum
Topic: Help: An Off Issue
Replies: 7
Views: 1326

Re: Help: An Off Issue

Also remember "scent" and "Scent" are different things.
by keneanung
Tue May 06, 2014 2:05 pm
Forum: Help Forum
Topic: Help: An Off Issue
Replies: 7
Views: 1326

Re: Help: An Off Issue

the second version can be translated as

if (not matches[4]) == "Scent" then

which probably not what you want. Version 1 is the correct one, though you could write it as

if not (matches[4]=="Scent") then

as well.
by keneanung
Tue Mar 11, 2014 12:33 pm
Forum: Help Forum
Topic: Changing words?
Replies: 6
Views: 1130

Re: Changing words?

Ah. I missed that crit was actually a modifier... Yay for reading comprehension :P
by keneanung
Tue Mar 11, 2014 11:59 am
Forum: Help Forum
Topic: Load of modules vs rest of profile
Replies: 4
Views: 1212

Re: Load of modules vs rest of profile

Vadi wrote:What I do is have my modules raise an event when they are loaded, and make anything that uses them load off that event.
Question to this approach: What happens if the module that is used finishes loading, before the using part gets a chance to register the callback?
by keneanung
Tue Mar 11, 2014 11:56 am
Forum: Help Forum
Topic: Changing words?
Replies: 6
Views: 1130

Re: Changing words?

I'd do something like this: local pattern = rex.new("^(left|right)?(arm|leg|torso|head)(modbruised|bruised|crit|broken)$") local side, limb, aff = pattern:match(nextSmash[1]) local hitlimb = (side and (side .. " ") or "") .. limb --[[ Now the variables contain: aff - the affliction (modbruised, brui...
by keneanung
Mon Feb 17, 2014 7:43 pm
Forum: Scripts & Packages
Topic: Self Updating Package Script
Replies: 14
Views: 12237

Re: Self Updating Package Script

Upon further analysis of your code we have a quite similar approach, although mine seems to be a bit less hardcoded. I uploaded my current work in progress to github into https://github.com/keneanung/MudletPackageManager/tree/cleanup which contains some bugfixes but primarily localizing and creation...