i have a trigger to look for *is near death* and omit it from output and send **** ND ND ND ND ND **** to output. it works fine, but the color stays blue, no matter what i set for custom color :(
custom colors not showing up triggering to send to output
Posted by Quam on Thu 04 Apr 2002 04:50 AM — 6 posts, 20,167 views.
By setting "omit from output" you are omitting the coloured line.
The "send to output" sends using the "note colour" - see the Scripts configuration tab for that. The simplest thing is just to change the note colour to what you want.
However if you want to keep the note colour the same, you could always run a small script that changes the note colour for the one line, like this:
You can also use notecolourRGB to set a foreground and background colour to whatever you want (eg. white on red).
The "send to output" sends using the "note colour" - see the Scripts configuration tab for that. The simplest thing is just to change the note colour to what you want.
However if you want to keep the note colour the same, you could always run a small script that changes the note colour for the one line, like this:
sub OnNearDeath (strName, strLine, aryWildcards)
dim oldcolour
oldcolour = world.notecolour ' remember colour
world.notecolour = 7 ' change to custom colour 7
world.note "**** ND ND ND ND ND ****"
world.notecolour = oldcolour ' put colour back
end sub
You can also use notecolourRGB to set a foreground and background colour to whatever you want (eg. white on red).
I have added the idea as suggestion #454 to do it the way you expected.
i dont want the original message on the screen. nor do i want to change the color of the original message. i have removed the original message by doing the omit from output and then i'm sending *** ND ND ND ND ND *** to output
Im trying to take out Orc is near death all together and just see *** ND ND ND ND ***
Im trying to take out Orc is near death all together and just see *** ND ND ND ND ***
and i dont like scripting :P
I understand what you are trying to do, I was just explaining why it didn't work. :)
If you don't want to script, just make two changes:
Now your message will appear in the correct colour, no scripting needed. :)
If you don't want to script, just make two changes:
- Open the world configuration (Alt+Enter)
- Select Scripting -> Scripts
- Change "note colour" to (say) "Custom 9"
- Now select Appearance -> Custom Colour
- Change the colour selected above (say, 9) to the colour you want
- Close the configuration screen
Now your message will appear in the correct colour, no scripting needed. :)