Wirlun2011-06-26 10:04:14
In a tempTimer, I want to echo a string that's set when the timer is created. The line below takes matches when the timer fires:
tempTimer( 60.0, .." has ended)\\n")]])
What's the right way to make it take matches as it was when the timer was created instead?
tempTimer( 60.0, .." has ended)\\n")]])
What's the right way to make it take matches as it was when the timer was created instead?
Vadi2011-06-26 11:18:33
tempTimer( 60.0, ]..matches..])
Wirlun2011-06-26 14:50:07
Awesome, thanks. Double brackets confuse me but I think I can see what's going on now.
Laxinova2011-06-26 15:11:54
I want to do a key for mudlet so it cycles through hits like:
Example from an old client I used to use:
#set counter = counter + 1
#if (counter = 1) {kick $target$};
#if (counter = 2) {punch $target$};
#if (counter = 3) {headbutt $target$;#set counter 0}
how would I go about making a key so it cycles like that?
Example from an old client I used to use:
#set counter = counter + 1
#if (counter = 1) {kick $target$};
#if (counter = 2) {punch $target$};
#if (counter = 3) {headbutt $target$;#set counter 0}
how would I go about making a key so it cycles like that?
Lilia2011-06-26 17:41:36
Basically the same way.
counter = counter + 1
if counter == 1 then
send("kick " ..target)
elseif counter == 2 then
send("punch " ..target)
elseif counter == 3 then
send("headbutt " ..target)
counter = 0
end
counter = counter + 1
if counter == 1 then
send("kick " ..target)
elseif counter == 2 then
send("punch " ..target)
elseif counter == 3 then
send("headbutt " ..target)
counter = 0
end
Shedrin2011-06-27 03:17:33
Quick question (actually two):
I'm trying to make some triggers that will send an echo when my target, and only my target does something. For example:
However, the conditional isn't working correctly. The regex is matching correctly (if I add an echo(matches) at the top I get the expected response), but I'm not getting the cecho.
Secondly, I was trying to make a trigger to highlight my current target and found someone's solution through googling which was to add this code to my targetting alias:
However I'd like it to match multiple per line and be case insensitive. How to do that?
Thanks.
I'm trying to make some triggers that will send an echo when my target, and only my target does something. For example:
CODE
^(\\w+) eats a sparkleberry\\.$
CODE
deleteLine()
if matches == target then
    cecho("\\nTARGET HAS EATEN SPARKLEBERRY")
end
if matches == target then
    cecho("\\n
end
However, the conditional isn't working correctly. The regex is matching correctly (if I add an echo(matches) at the top I get the expected response), but I'm not getting the cecho.
Secondly, I was trying to make a trigger to highlight my current target and found someone's solution through googling which was to add this code to my targetting alias:
CODE
if id then killTrigger(id) end
id = tempTrigger(target, ] .. target .. ])
id = tempTrigger(target, ] .. target .. ])
However I'd like it to match multiple per line and be case insensitive. How to do that?
Thanks.
Ushaara2011-06-27 11:50:34
Try if matches == string.title(target) then... for your first problem. That will capitalise the first letter of your target which should then match correctly against a person's name.
Zalandrus2011-06-29 03:00:02
Yesterday, I installed a bunch of new packages for mudlet, all of them free ones from the link in this forum. I was playing around with them a bit, then I exited mudlet (and saved my profile). Today when I opened mudlet, all of the aliases, triggers, and scripts were gone (except for an m&m folder under triggers...not even under aliases or scripts). The packages screen still shows all the plugins I installed yesterday, but nothing else is there (or seems to be working). Help?
Vadi2011-06-29 03:02:44
What Mudlet version? is it the same with http://sourceforge.net/projects/mudlet/fil...st.exe/download ?
Zalandrus2011-06-29 03:04:57
Yes.
If it makes a difference, my computer crashed today, but not right after I was playing around with mudlet...and crashes have screwed with other programs before (e.g. making me lose all my google chrome prefs as well). Never seen it happen with mudlet though...
If it makes a difference, my computer crashed today, but not right after I was playing around with mudlet...and crashes have screwed with other programs before (e.g. making me lose all my google chrome prefs as well). Never seen it happen with mudlet though...
Unknown2011-06-29 03:26:52
Run a hard drive consistency and error checking test.
Unknown2011-06-29 12:33:17
Also - my laptop crashes occasionally as well/ my Mudlet stuff gets randomly wiped, so I end up rolling back the profile number to the last known good one. I save frequently!
Zalandrus2011-06-30 03:44:30
Sorry, what do you mean Kayte? You just save profiles under different names all the time and then open an older one when yours gets wiped?
Vadi2011-07-01 13:17:25
Mudlet saves histories of your profile - when you're connecting, you can select which snapshot to load.
Unknown2011-07-01 15:27:50
Yeah, what Vadi said. You just select one from the dropdown menu. They're dated and numbered though I'm not sure what the numbers mean... could be time of day.
Edit: Select it before connecting.
Edit: Select it before connecting.
Unknown2011-07-01 18:43:05
Vadi2011-07-02 01:12:54
Yep, soon
Jalain2011-07-03 07:14:05
Okay.. so I'm new to Mudlet and downloaded some plugins.. I imported them, but they don't seem to want to work. Could someone explain how you go from install to working script?
Unknown2011-07-03 09:47:04
We will need a bit more information before making any conclusive response here. What scripts exactly? How did you "import" them? What (if any) error message are you being given? (Click errors icon in the script editor window.)