I've got scripts that a lot of people use and build on, so I'm trying to keep things relatively general and compartmentalized. Well, now I've got a large script for doing mapping in Lusternia and it has triggers to gag certain lines and then redisplay them with my own colors and prepended/appended text, such as adding a room's vnum after you scry a person's location.
This is pretty slick by itself, but when I combine it with my name highlighting script, the names are no longer highlighted because the mapper trigger gags the line and displays it without the changes to the styles.
I'll try to post the basic gist of what I'm doing without filling up pages and pages with the whole script. If anyone has any suggestions for a way around this, please let me know. Thanks.
This is pretty slick by itself, but when I combine it with my name highlighting script, the names are no longer highlighted because the mapper trigger gags the line and displays it without the changes to the styles.
I'll try to post the basic gist of what I'm doing without filling up pages and pages with the whole script. If anyone has any suggestions for a way around this, please let me know. Thanks.
<triggers>
<trigger
enabled="y"
match="^You make out the scent of [A-Z][a-z]+ coming from (.+?)$"
name="mapper_locate_scent__"
omit_from_log="y"
omit_from_output="y"
regexp="y"
script="mapper_locate_local"
sequence="10000"
>
</trigger>
</triggers>function mapper_locate_local(name, line, wildcards, styles)
for _,v in ipairs(styles) do
ColourTell(RGBColourToName(v.textcolour), RGBColourToName(v.backcolour), v.text)
end
-- Snipped code to append the room's vnum after the triggered line
Note("")
end<triggers>
<trigger
custom_colour="8"
enabled="y"
expand_variables="y"
keep_evaluating="y"
make_underline="y"
match="\b(@!player_names)\b"
name="color_players__"
regexp="y"
repeat="y"
sequence="10000"
>
</trigger>
</triggers>