Are you having trouble capturing the wildcard? If so, let's see the pattern.
Capturing it already? Is it safe to assume you're on mudlet?
There is a pretty easy way to do bold echos in mush, by setting a note style before the note. Not sure about mid-line though, I haven't tried that yet. Definitely not sure about mudlet.
I usually just change the colour of the word in the sentence, but bolding stuff sounds fun. I might try it myself.
You can bold an echo by using setBold(true) before your echo. It's nearly indistinguishable from regular text unless you highlight it or use a very large font size, though.
Comments
Capturing it already? Is it safe to assume you're on mudlet?
There is a pretty easy way to do bold echos in mush, by setting a note style before the note. Not sure about mid-line though, I haven't tried that yet. Definitely not sure about mudlet.
I usually just change the colour of the word in the sentence, but bolding stuff sounds fun. I might try it myself.
Currently available: Abs, Cnote, Keepalive, Lootpet, Mapmod
@Ahmet : Oh, what does selectCaptureGroup(2) do?
[ SnB PvP Guide | Link ]
if target == matches[2] then
direction = matches[3]:upper()
selectCaptureGroup (3) setBold (true) deselect ()
cecho("\n <GreenYellow> MOVED ::::::> [ >> " ..direction.. " << ]")
cecho("\n <GreenYellow> MOVED ::::::> [ >> " ..direction.. " << ]")
cecho("\n <GreenYellow> MOVED ::::::> [ >> " ..direction.. " << ]")
cecho("\n <GreenYellow> MOVED ::::::> [ >> " ..direction.. " << ]")
end
[ SnB PvP Guide | Link ]
^(\w+) leaves to the (\w+)\.$
Also, when you select the capture group, you may need to use matches[3] instead of just 3. I could be wrong on this one though.
Penwize has cowardly forfeited the challenge to mortal combat issued by Atalkez.
[ SnB PvP Guide | Link ]
selectCaptureGroup(direction)
setBold(true)
deselect()
no idea if you can do that or not
Penwize has cowardly forfeited the challenge to mortal combat issued by Atalkez.
setBold(true) works on echoes but not on specific variables, I think?
[ SnB PvP Guide | Link ]
[ SnB PvP Guide | Link ]
You can put it all on one line, like so, for easy reading:
Testing this, it works, and the text definitely bolds, though how easy it is to tell remains dependent on your font and font size.
[ SnB PvP Guide | Link ]