Calixa2010-09-16 02:03:23
What is the best practice to highlight (pieces of) lines in a certain color. Right now I trigger the word and use "change color and style to" but multiple words on the same line don't get colored, there will only ever be one trigger that looks like it fires.
Here is an example of the trigger:
    custom_colour="9"
  enabled="y"
  match="bard"
  regexp="y"
  sequence="100"
  >
 Â
The purpose of this is for example when gathering bards you can walk a lot quicker since the word will stand out in the room description.
Here is an example of the trigger:
CODE
 Â
  enabled="y"
  match="bard"
  regexp="y"
  sequence="100"
  >
 Â
The purpose of this is for example when gathering bards you can walk a lot quicker since the word will stand out in the room description.
Unknown2010-09-16 02:14:23
With the regex option, there is an other option for matching multiple times per line. Try that one. (It's meant specifically for coloring things.)
Furien2010-09-26 17:04:11
CODE
 Â
  expand_variables="y"
  group="Astrology - Nativity"
  match="^  Aapek was in the sign of the (Antlers|Lion|Spider|Bumblebee)\\.$"
  regexp="y"
  send_to="12"
  sequence="100"
  >
 Â
  Antlers = true,
  Lion = true,
  Spider = true,
  Bumblebee = true,
  }
for w in string.gmatch ("%1", "%%a+") do
  if Sign then
    ColourNote("white", "red", "  Aapek was in the sign of the %1. ", "gold", "royalblue", "<< AAP = ANOREXIA >>")
    break
  end
end
 Â
Code a friend put together for me. It works fine, but I want to use it to substitute the default message (and thus have it display something more colourful).
I figured using 'omit from output' would help, but it doesn't. With omission on, neither messages display. With it off, both do. How can I make this override the default line appropriately?
Unknown2010-09-26 17:44:50
Send to 14, which is Script (after Omit).
Furien2010-09-26 17:54:43
Thank you!
Furien2010-09-28 04:02:17
Return of derp.
    enabled="y"
  expand_variables="y"
  group="Astrology - Nativity"
  match="^  Sidiak was in the sign of the (Volcano|Dolphin|Burning Censer|Skull)\\.$"
  omit_from_output="y"
  regexp="y"
  send_to="14"
  sequence="100"
  >
 ÂSign = {
  Burning_Censer = true,
  Volcano = true,
  Dolphin = true,
  Skull = true,
  }
for w in string.gmatch ("%1", "%%a+") do
  if Sign then
    ColourNote("white", "red", "  Sidiak was in the sign of the %1. ", "gold", "royalblue", "<< SID = STUPIDITY >>")
    break
  end
end
 Â
This, and any other trigger that captures someone's nativity being in 'Burning Censer' or 'Twin Crystals' won't spit out a colournote, but it'll capture the line and omit appropriately.
I figured out Burning_Censer fixed the send error, but I can't figure out why it just won't display appropriately?
CODE
 Â
  expand_variables="y"
  group="Astrology - Nativity"
  match="^  Sidiak was in the sign of the (Volcano|Dolphin|Burning Censer|Skull)\\.$"
  omit_from_output="y"
  regexp="y"
  send_to="14"
  sequence="100"
  >
 Â
  Burning_Censer = true,
  Volcano = true,
  Dolphin = true,
  Skull = true,
  }
for w in string.gmatch ("%1", "%%a+") do
  if Sign then
    ColourNote("white", "red", "  Sidiak was in the sign of the %1. ", "gold", "royalblue", "<< SID = STUPIDITY >>")
    break
  end
end
 Â
This, and any other trigger that captures someone's nativity being in 'Burning Censer' or 'Twin Crystals' won't spit out a colournote, but it'll capture the line and omit appropriately.
I figured out Burning_Censer fixed the send error, but I can't figure out why it just won't display appropriately?
Esano2010-09-28 08:29:16
At a glance, it's because you're using "%a" but there's a space. %a is letters.
rather than
I'm not sure why you're using the for loop, either - is there a reason it's not
Ohh ... and make your table initialization
CODE
if Sign
.
.
.
if Sign
.
.
.
if Sign
rather than
CODE
if Sign
I'm not sure why you're using the for loop, either - is there a reason it's not
CODE
  if Sign then
    ColourNote("white", "red", "  Sidiak was in the sign of the %1. ", "gold", "royalblue", "<< SID = STUPIDITY >>")
    break
  end
    ColourNote("white", "red", "  Sidiak was in the sign of the %1. ", "gold", "royalblue", "<< SID = STUPIDITY >>")
    break
  end
Ohh ... and make your table initialization
CODE
Sign = {
  = true,
  = true,
  = true,
  = true,
  }
  = true,
  = true,
  = true,
  = true,
  }
Unknown2010-09-28 11:36:22
You don't even need the table, since your trigger pattern restricts you to only the signs that are valid. Just omit that table, the for loop, and the if statement entirely!
Unknown2010-09-28 12:06:50
Okay. So before I go embark upon completely messing up and accidentally breaking Treant... I'll ask here. Then if it doesn't work and I screw something up, at least I tried to get help. Not your fault that I can't script lua.
I'd essentially like to know how to create timed triggers, for about a 1-2 minute delay. Why? Neos pointed something out to me yesterday; demesnes need to be dissolved at the end of combat. I am notorious for forgetting. So essentially I'd like to have something that would trigger about two minutes after I do what would routinely be the last skill I cast (or a few minutes after the last healspring I see, if I've moved out of my demesne), as just a note that pops up as "DEMESNE STILL UP" or something. I know how to highlight that once it's written, just don't know how to write it, because I fail. -.-
Even if you just direct me to some coding sites and call me an idiot, I don't care. Since Treant is no longer being updated I'd like to start working on my own system anyway. (probably take me a few decades but it's all good )
I'd essentially like to know how to create timed triggers, for about a 1-2 minute delay. Why? Neos pointed something out to me yesterday; demesnes need to be dissolved at the end of combat. I am notorious for forgetting. So essentially I'd like to have something that would trigger about two minutes after I do what would routinely be the last skill I cast (or a few minutes after the last healspring I see, if I've moved out of my demesne), as just a note that pops up as "DEMESNE STILL UP" or something. I know how to highlight that once it's written, just don't know how to write it, because I fail. -.-
Even if you just direct me to some coding sites and call me an idiot, I don't care. Since Treant is no longer being updated I'd like to start working on my own system anyway. (probably take me a few decades but it's all good )
Unknown2010-09-28 12:13:15
Just because something isn't being actively updated doesn't mean it's more broken than it was before or that it can't be easily maintained by a savvy user. If you don't understand Treant enough to update it a little here and there, you may have a lot of trouble coding your own system from scratch. Not that I would discourage anyone from trying, but keep it realistic.
As for your demesne question, you could set a recurring timer that you enable/disable as needed (through the dialog interface, you can make a timer easily enough) or have a trigger that does a single DoAfter function call for a one-time alert. It sounds like the latter might be what you want, but the former can be more flexible.
As for your demesne question, you could set a recurring timer that you enable/disable as needed (through the dialog interface, you can make a timer easily enough) or have a trigger that does a single DoAfter function call for a one-time alert. It sounds like the latter might be what you want, but the former can be more flexible.
Unknown2010-09-28 19:35:08
QUOTE (Zarquan @ Sep 28 2010, 09:13 AM) <{POST_SNAPBACK}>
Just because something isn't being actively updated doesn't mean it's more broken than it was before or that it can't be easily maintained by a savvy user. If you don't understand Treant enough to update it a little here and there, you may have a lot of trouble coding your own system from scratch. Not that I would discourage anyone from trying, but keep it realistic.
As for your demesne question, you could set a recurring timer that you enable/disable as needed (through the dialog interface, you can make a timer easily enough) or have a trigger that does a single DoAfter function call for a one-time alert. It sounds like the latter might be what you want, but the former can be more flexible.
As for your demesne question, you could set a recurring timer that you enable/disable as needed (through the dialog interface, you can make a timer easily enough) or have a trigger that does a single DoAfter function call for a one-time alert. It sounds like the latter might be what you want, but the former can be more flexible.
Hrm, yes. I realized that since I cannot even handle doing simple stuff in Mush that I'm going to switch to Vadi's eventually. I only switched to Mushclient for your system (which has served me surprisingly well considering my lack of skills), and since Neos has some sweet stuff going on for Mudlet I'm going to switch back. (Plus if I decide to put Ubuntu on my laptop finally it's an easier switch).
Thank you for your help though, I may look at coding it still in Mush, but more likely I will do it when I make the move to Mudlet.
Neos2010-09-28 19:38:56
QUOTE (Kayte @ Sep 28 2010, 03:35 PM) <{POST_SNAPBACK}>
Hrm, yes. I realized that since I cannot even handle doing simple stuff in Mush that I'm going to switch to Vadi's eventually. I only switched to Mushclient for your system (which has served me surprisingly well considering my lack of skills), and since Neos has some sweet stuff going on for Mudlet I'm going to switch back. (Plus if I decide to put Ubuntu on my laptop finally it's an easier switch).
Thank you for your help though, I may look at coding it still in Mush, but more likely I will do it when I make the move to Mudlet.
Thank you for your help though, I may look at coding it still in Mush, but more likely I will do it when I make the move to Mudlet.
I'm not the only one with cool stuff. And the other stuff is way better than mines.
Blinking tab chat
Information tabs
A cool healing system(which lacks psibalances on the custom prompt and color for my experience, but still cool)
Since you're switching (back), once I get this demesne tracker working how it should I'll send it to you.
More Awesome Stuff.
vorld2010-10-04 16:45:41
My Mushclient hates me. It has errors in saving plugins and the like
Unknown2010-10-04 18:44:29
You probably just need to create the missing directories for it to save your plugin state correctly.
Zhov2010-10-04 19:50:33
QUOTE (Calixa @ Sep 15 2010, 10:03 PM) <{POST_SNAPBACK}>
What is the best practice to highlight (pieces of) lines in a certain color. Right now I trigger the word and use "change color and style to" but multiple words on the same line don't get colored, there will only ever be one trigger that looks like it fires.
Here is an example of the trigger:
    custom_colour="9"
  enabled="y"
  match="bard"
  regexp="y"
  sequence="100"
  >
 Â
The purpose of this is for example when gathering bards you can walk a lot quicker since the word will stand out in the room description.
Here is an example of the trigger:
CODE
 Â
  enabled="y"
  match="bard"
  regexp="y"
  sequence="100"
  >
 Â
The purpose of this is for example when gathering bards you can walk a lot quicker since the word will stand out in the room description.
I know I'm late (in my defense, I started Lusternia after this post!) but here's a tip, unrelated to the question (Which Zarquan answered). If you surround a word with \\b, then it will keep it from matching in the middle of a larger word.
For example: \\b(bard|scholar)\\b
Then, if you use the ? quantifier (? matches zero or one of the previous) to add an 's' after, it will match bards or bard.
End result: \\b(bard|scholar)s?\\b
Matches: bard, bards, scholar, scholars
Doesn't match: bardic, bardoon, scholarly
vorld2010-10-05 18:29:45
QUOTE (Zarquan @ Oct 4 2010, 01:44 PM) <{POST_SNAPBACK}>
You probably just need to create the missing directories for it to save your plugin state correctly.
How does one do that?
Unknown2010-10-05 20:03:36
When it says "Couldn't write plugins/state.xml" (or whatever it says), you need to make the directory structure from that error message under your MUSHclient target directory. So, if you're using Treant from C:\\Treant and it's set to your default plugins directory, you need to create C:\\Treant\\state. (Just an example. I have no clue what you're actually using for your setup.)
vorld2010-10-05 23:48:51
I'm using ethelon's system. I have it in the default place. I hate Vista OS. I also have Treant too but not using it heh. So confused
Unknown2010-10-06 01:45:31
Ah. Perhaps your problem is simply one of user account control then. Try running MUSHclient as administrator (right-click the shortcut and choose 'run as administrator' or edit the properties to always run it as administrator).
Unknown2010-10-06 03:13:22
So, I booted up my computer today after wrestling with some problems last night, and I log in, and Ilaveuse's world's wrapping is all screwy. My alt's world is fine, but upon logging into him in Ila's world, the wrapping is still screwy. Also, the wrapping is fine in Nexus, which leads me to believe that it is a problem with the world. But, to my knowledge, nothing changed, and I certainly didn't tinker with anything. Ila's world is the only one having the problem. Does anybody know why this might be and how to fix it?
EDIT: Never mind, got it. Somehow the box next to the 'Wrap at column X' option in the world details got unchecked, but I have *no* clue how.
EDIT: Never mind, got it. Somehow the box next to the 'Wrap at column X' option in the world details got unchecked, but I have *no* clue how.