Unknown2011-11-02 00:12:53
Nicholo:
Mudlet keeps crashing when I open the map. Anyone ever have this sort of problem or have any idea how to fix or remedy this situation?
I used to, first make sure you have the newest version of Mudlet. Secondly...you might have to uninstall and reinstall the mapper. That's what worked for me.
Estellise2011-11-09 03:48:41
Okay I bet this is going to be obvious and I will hate myself later, but how can I get the spacing right in this code?
send("fleshform " .. sethands .. target)
right now it sends fleshform crushrat instead of fleshform crush rat. :(
send("fleshform " .. sethands .. target)
right now it sends fleshform crushrat instead of fleshform crush rat. :(
Anisu2011-11-09 04:09:02
Estellise:
Okay I bet this is going to be obvious and I will hate myself later, but how can I get the spacing right in this code?
send("fleshform " .. sethands .. target)
right now it sends fleshform crushrat instead of fleshform crush rat. :(
send("fleshform " .. sethands .. " " .. target)
Unknown2011-11-10 16:38:59
Xyas:
I used to, first make sure you have the newest version of Mudlet. Secondly...you might have to uninstall and reinstall the mapper. That's what worked for me.
Actually I just tried updating my mapper and it's crashing a ton too. Where can I find the newest version of mudlet? Thanks!
Anisu2011-11-10 18:50:22
Unknown2011-11-19 23:45:43
Really bad at coding, etc.
Trigger: ^You reject the friendship of (\\w+)\\.$
Script:
if matches = target
send("enemy " .. matches)
end
Yeah, no idea how that works. Is it even right?
Trigger: ^You reject the friendship of (\\w+)\\.$
Script:
if matches = target
send("enemy " .. matches)
end
Yeah, no idea how that works. Is it even right?
Anisu2011-11-20 00:14:27
Nicholo:
Really bad at coding, etc.
Trigger: ^You reject the friendship of (\\w+)\\.$
Script:
if matches = target
send("enemy " .. matches)
end
Yeah, no idea how that works. Is it even right?
just fixing syntax errors it would be
Trigger: ^You reject the friendship of (\\w+)\\.$
Script:
if matches == target
send("enemy " .. matches)
end
However I would make it
if string.lower(matches) == string.lower(target) then
send("enemy " .. matches)
end
Unknown2011-11-20 00:15:45
May I ask what two equals mean over one? And what string,lower is?
Anisu2011-11-20 00:23:41
Nicholo:
May I ask what two equals mean over one? And what string,lower is?
one equals is an assignment of a variable. eg A = "boo"
two equals is a comparison of two arguments (or condition).
Without string.lower you could get the condition where you target 'anisu' and so your trigger will fail to enemy me because the trigger returns 'Anisu'. It is just a technique so that no matter what capital letter combination you used in your targeting alias for anisu, the trigger will still fire when you reject anisu.
ps: I have been awake way to long if I'm not making sense it is best to wait for someone who is more rested
Unknown2011-11-20 00:26:24
I get it. Thank you very much. :wub: Much loves.
Unknown2011-11-22 20:25:26
I'm trying to make a multiline trigger out of songstatus:
You are currently on the 1st stanza of "First".
Without further performance, the song will end in 20 seconds.Without further performance, the song will end in 20 seconds.
I'm not sure how to go about that, but my thoughts are deleteLine it and make a shorter echo, something along the lines of:
Songname: #st Stanza, # Seconds
You are currently on the 1st stanza of "First".
Without further performance, the song will end in 20 seconds.Without further performance, the song will end in 20 seconds.
I'm not sure how to go about that, but my thoughts are deleteLine it and make a shorter echo, something along the lines of:
Songname: #st Stanza, # Seconds
Unknown2011-11-22 21:01:26
Well, I use songstat for a quite a lot, but here's what I can share:
That wants to be a a single trigger, both lines set as RegEx.
Check the multiline/AND trigger checkbox and set the delta to 1.
From here, your variables will be stored in:
Stanza: multimatches
Song name: multimatches
Time left: multimatches
Using this process, should you want to deleteLine() it becomes much easier.
Any problems, holler at me.
^You are currently on the (\\d+)(st|nd|rd|th) stanza of \\"(+)\\"\\.$
^Without further performance\\, the song will end in (\\d+) seconds\\.$
That wants to be a a single trigger, both lines set as RegEx.
Check the multiline/AND trigger checkbox and set the delta to 1.
From here, your variables will be stored in:
Stanza: multimatches
Song name: multimatches
Time left: multimatches
Using this process, should you want to deleteLine() it becomes much easier.
Any problems, holler at me.
Unknown2011-11-23 00:55:07
Thanks, Draylor, got it! Next thing:
From some of the combat logs I've seen, people highlight their target's names? How do you do that? I know it has something to do with select string, but it seems troublesome to have to change that all the time. Is it possible to make it highlight whatever it is you're targetting?
From some of the combat logs I've seen, people highlight their target's names? How do you do that? I know it has something to do with select string, but it seems troublesome to have to change that all the time. Is it possible to make it highlight whatever it is you're targetting?
Anisu2011-11-23 03:21:09
Nicholo:
Thanks, Draylor, got it! Next thing:
From some of the combat logs I've seen, people highlight their target's names? How do you do that? I know it has something to do with select string, but it seems troublesome to have to change that all the time. Is it possible to make it highlight whatever it is you're targetting?
combattarget=string.lower(matches)
if ctarlower ~= nil then
killTrigger(ctarlower)
end
ctarlower = tempTrigger(combattarget,] .. combattarget .. ])
if ctar ~= nil then
killTrigger(ctar)
end
ctar = tempTrigger(combattarget:title(), ] .. combattarget:title() .. ])
echo("Combat target is now " .. combattarget .. "\\n")
Vadi2011-11-23 03:56:44
In addition to Anisu's answer above, there's also the Mudlet wiki: http://wiki.mudlet.org/w/Manual:Scripting#How_to_highlight_my_current_target.3F
Unknown2011-11-23 05:58:27
------------------- v1598 -------------------
- - - - - - - - - - -- - - - - - - - - - (4794) (5472) (4338) (1075) (2011) (5076) (1491) (1205)
(1904) (933) (4752) (4286) (5035) (1320) (5605) (2528) (5673) (1901) (4831) (1405) (2480) (2567)
(2017) (4318) (5046) (1073) (180) (5251) (4776) (4133) (1772) (1949) (171) (960) (1277) (4769)
(4119) (2530) (173) (1027) (1497) (1361) (4937) (1114) (1386) (1133) (1468) (2497) (5297) (4178)
(1929) (187) (1423) (169) (976) (1678) (1601) (1764) (5483) (4775) (1138) (1107) (737) (4063) (4759)
(1960) (5601) (4781) (1890) (934) (1608) (5291) (1644) (1302) (1606) (1244) (885) (1221) (4313)
(985) (853) (955) (1002) (896) (2504) (1607) (881) (2491) (4806) (5475) (4034) (1240) (1360) (1674)
(5095) (840) (857) (2546) (5645) (202) (5032) (1165)
|
|
| | | |
-- - --- - --- - - - - - - - (4794) (5472) (4338) (1075) (2011) (5076) (1491) (1205)
(1904) (933) (4752) (4286) (5035) (1320) (5605) (2528) (5673) (1901) (4831) (1405) (2480) (2567)
(2017) (4318) (5046) (1073) (180) (5251) (4776) (4133) (1772) (1949) (171) (960) (1277) (4769)
(4119) (2530) (173) (1027) (1497) (1361) (4937) (1114) (1386) (1133) (1468) (2497) (5297) (4178)
(1929) (187) (1423) (169) (976) (1678) (1601) (1764) (5483) (4775) (1138) (1107) (737) (4063) (4759)
(1960) (5601) (4781) (1890) (934) (1608) (5291) (1644) (1302) (1606) (1244) (885) (1221) (4313)
(985) (853) (955) (1002) (896) (2504) (1607) (881) (2491) (4806) (5475) (4034) (1240) (1360) (1674)
(5095) (840) (857) (2546) (5645) (202) (5032) (1165)
| | | | |
|
-
| |
\\
-- - - -
/ | \\ /
|
/ | | \\
|
| / | | | / \\
------------------ 0:12:0 -------------------
WHAT DID THAT MAPPER UPDATE DO TO MY MAPPER?
- - - - - - - - - - -- - - - - - - - - - (4794) (5472) (4338) (1075) (2011) (5076) (1491) (1205)
(1904) (933) (4752) (4286) (5035) (1320) (5605) (2528) (5673) (1901) (4831) (1405) (2480) (2567)
(2017) (4318) (5046) (1073) (180) (5251) (4776) (4133) (1772) (1949) (171) (960) (1277) (4769)
(4119) (2530) (173) (1027) (1497) (1361) (4937) (1114) (1386) (1133) (1468) (2497) (5297) (4178)
(1929) (187) (1423) (169) (976) (1678) (1601) (1764) (5483) (4775) (1138) (1107) (737) (4063) (4759)
(1960) (5601) (4781) (1890) (934) (1608) (5291) (1644) (1302) (1606) (1244) (885) (1221) (4313)
(985) (853) (955) (1002) (896) (2504) (1607) (881) (2491) (4806) (5475) (4034) (1240) (1360) (1674)
(5095) (840) (857) (2546) (5645) (202) (5032) (1165)
|
|
| | | |
-- - --- - --- - - - - - - - (4794) (5472) (4338) (1075) (2011) (5076) (1491) (1205)
(1904) (933) (4752) (4286) (5035) (1320) (5605) (2528) (5673) (1901) (4831) (1405) (2480) (2567)
(2017) (4318) (5046) (1073) (180) (5251) (4776) (4133) (1772) (1949) (171) (960) (1277) (4769)
(4119) (2530) (173) (1027) (1497) (1361) (4937) (1114) (1386) (1133) (1468) (2497) (5297) (4178)
(1929) (187) (1423) (169) (976) (1678) (1601) (1764) (5483) (4775) (1138) (1107) (737) (4063) (4759)
(1960) (5601) (4781) (1890) (934) (1608) (5291) (1644) (1302) (1606) (1244) (885) (1221) (4313)
(985) (853) (955) (1002) (896) (2504) (1607) (881) (2491) (4806) (5475) (4034) (1240) (1360) (1674)
(5095) (840) (857) (2546) (5645) (202) (5032) (1165)
| | | | |
|
-
| |
\\
-- - - -
/ | \\ /
|
/ | | \\
| / | | | / \\
------------------ 0:12:0 -------------------
WHAT DID THAT MAPPER UPDATE DO TO MY MAPPER?
vorld2011-11-25 17:18:26
I got a lua syntax error
if You have scored a CRITICAL hit!
cecho(" 2x damage")
elseif You have scored a CRUSHING CRITICAL hit!
cecho(" 4x damage")
elseif You have scored an OBLITERATING CRITICAL hit
cecho(" 8x damage")
elseif You have scored an ANNIHILATINGLY POWERFUL CRITICAL hit!
cecho(" 16x damage")
elseif You have scored an WORLD-SHATTERING CRITICAL hit!
cecho(" 32x damage")
end
What is wrong with this?
if You have scored a CRITICAL hit!
cecho(" 2x damage")
elseif You have scored a CRUSHING CRITICAL hit!
cecho(" 4x damage")
elseif You have scored an OBLITERATING CRITICAL hit
cecho(" 8x damage")
elseif You have scored an ANNIHILATINGLY POWERFUL CRITICAL hit!
cecho(" 16x damage")
elseif You have scored an WORLD-SHATTERING CRITICAL hit!
cecho(" 32x damage")
end
What is wrong with this?
Unknown2011-11-25 18:14:06
You need to do something like: if matches == "You have scored a CRITICAL hit!" then ...
vorld2011-11-25 18:24:36
Zarquan:
You need to do something like: if matches == "You have scored a CRITICAL hit!" then ...
Like this?
if matches == "You have scored a CRITICAL hit!"
then cecho(" 2x damage")
elseif matches == "You have scored a CRUSHING CRITICAL hit!"
then cecho(" 4x damage")
elseif matches == "You have scored an OBLITERATING CRITICAL hit!"
then cecho(" 8x damage")
elseif matches == "You have scored an ANNIHILATINGLY POWERFUL CRITICAL hit!"
then cecho(" 16x damage")
elseif matches == "You have scored an WORLD-SHATTERING CRITICAL hit!"
then cecho(" 32x damage")
end
Unknown2011-11-25 18:58:06
Except for "an WORLD"... I'd say it should work.