|
Quit Wanderer
Joined: 19 Jul 2008 Posts: 59
|
Posted: Sun Jan 23, 2011 10:17 pm
Color |
Hi
How can I color "squid torn" in my script without making a new trigger, cus I got lots of mobs I like to color,
but find out, that it place a new trigger for every mob I try to color with #CW, but I don't know what else to use.
squid torn is only a part of the mobs name.
Code: |
<trigger name="trdesc" priority="8560" id="856">
<pattern>^~{roomchars~}$</pattern>
<value>#Gag
</value>
<trigger type="Manual">
<pattern>(*)</pattern>
<value>#if (%1 = "{/roomchars}") {
#state trdesc 0
numberofmob = %numitems(@roomchars)
#Gag
} {roomchars = %additem(%1,@roomchars)
#IF (%zonenum = 148) {
#IF (%pos("squid torn",%1)) {#CW "squid torn" White;killroomchars = %additem(squid,@killroomchars)}
}
}</value>
</trigger>
</trigger>
|
|
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Sun Jan 23, 2011 10:42 pm |
#CW can be used in two ways. "#CW white" when used within a trigger will color whatever text matched the trigger white. "#CW 'squid torn' white" will create a new trigger which will always color the phrase 'squid torn' white, whenever it appears in the future.
Other commands which can be used to color text are #COLOR and #PCOL. You can also use #SUB or #PSUB with %ansi(white) or with MXP colors. Exactly how you do it will depend on exactly what you want to do. |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|