MUSHclient/MirodarsSailingTriggers
From Discworld MUD Wiki
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE muclient> <!-- Saved on Wednesday, January 06, 2021, 1:21 PM --> <!-- MuClient version 5.06 --> <!-- Plugin "Sailing" generated by Plugin Wizard --> <muclient> <plugin name="MirodarsSailingTriggers" author="Mystic Mirodar" id="c6b8856460ee13f19d059608" language="Lua" purpose="Facilitate sailing on Discworld Mud" date_written="2021-01-06 13:20:45" requires="5.06" version="1.0" > </plugin> <!-- Get our standard constants --> <!-- include name="constants.lua" --> <!-- Triggers --> <triggers> <!-- Colour Triggers --> <!-- Monster --> <trigger custom_colour="7" enabled="y" group="Sailing" match="*tentacle snakes around*" sequence="100" > </trigger> <trigger custom_colour="15" enabled="y" group="Sailing" match="*tentacle wrapped around*" sequence="100" > </trigger> <!-- Serpent --> <trigger custom_colour="7" enabled="y" group="Sailing" match="*Run!" sequence="100" > </trigger> <trigger custom_colour="7" enabled="y" group="Sailing" match="*run!*" sequence="100" > </trigger> <trigger custom_colour="2" enabled="y" group="Sailing" match="*sea serpent*lunges*" sequence="100" > </trigger> <trigger custom_colour="2" enabled="y" group="Sailing" match="*sea serpent*reaches*" sequence="100" > </trigger> <trigger custom_colour="2" enabled="y" group="Sailing" match="*sea serpent*strikes*" sequence="100" > </trigger> <!-- Success and Failure messages for actions --> <trigger custom_colour="15" enabled="y" group="Sailing" match="You manage to shatter all the remaining sea ice on the hull." sequence="100" > </trigger> <trigger custom_colour="15" enabled="y" group="Sailing" match="Looking like it recognises the shipwright's hammer somehow, all of the remaining dire seaweed detaches from the hull and flees into the ocean." sequence="100" > </trigger> <trigger custom_colour="15" enabled="y" group="Sailing" match="*putting it out in a cloud of steam." sequence="100" > </trigger> <!-- General Hazards --> <trigger custom_colour="11" enabled="y" group="Sailing" match="*ice has formed*" sequence="100" > </trigger> <trigger custom_colour="11" enabled="y" group="Sailing" match="*slippery layer of ice." sequence="100" > </trigger> <trigger custom_colour="7" enabled="y" group="Sailing" match="The room catches on fire!" sequence="100" > </trigger> <trigger custom_colour="7" enabled="y" group="Sailing" match="* blaze*" sequence="100" > </trigger> <trigger custom_colour="7" enabled="y" group="Sailing" match="* conflagration*" sequence="100" > </trigger> <trigger custom_colour="7" enabled="y" group="Sailing" match="The ship plows through a field of floating dire seaweed, some of which glows green and latches onto the hull aggressively!" sequence="100" > </trigger> </triggers> <!-- Aliases --> <!-- Create aliases SailPrep and SailEnd for custom preparations. If these are not wanted then delete the 2 lines that contain these keywords below. --> <aliases> <alias match="SailOff" enabled="y" send_to="10" ignore_case="y" sequence="100" > <send> DisplaySailOff RemapOff SailEnd </send> </alias> <alias match="SailOn" enabled="y" send_to="10" ignore_case="y" sequence="100" > <send> DisplaySailOn SailingRemapOn SailPrep </send> </alias> <alias match="DisplaySailOff" enabled="y" send_to="2" ignore_case="y" sequence="100" > <send> Tidying up after sailing. </send> </alias> <alias match="DisplaySailOffDone" enabled="y" send_to="2" ignore_case="y" sequence="100" > <send> Finished tidying up after sailing. </send> </alias> <alias match="RemapOff" enabled="y" send_to="12" ignore_case="y" sequence="100" > <send> Accelerator ("numpad0", "stop") Accelerator ("numpad1", "southwest") Accelerator ("numpad2", "south") Accelerator ("numpad3", "southeast") Accelerator ("numpad4", "west") Accelerator ("numpad6", "east") Accelerator ("numpad7", "northwest") Accelerator ("numpad8", "north") Accelerator ("numpad9", "northeast") Accelerator ("divide", "inventory") Accelerator ("multiply", "score") Accelerator ("decimal", "tpa") </send> </alias> <alias match="Preparing to sail!" enabled="y" send_to="8" ignore_case="y" sequence="100" > <send> SailPrep </send> </alias> <alias match="DisplaySailOn" enabled="y" send_to="2" ignore_case="y" sequence="100" > <send> Preparing to sail! </send> </alias> <alias match="DisplaySailOnDone" enabled="y" send_to="2" ignore_case="y" sequence="100" > <send> Finished preparing to sail! </send> </alias> <alias match="SailingRemapOn" enabled="y" send_to="12" ignore_case="y" sequence="100" > <send> Accelerator ("decimal", "board") Accelerator ("numpad1", "port aft") Accelerator ("numpad2", "aft") Accelerator ("numpad3", "starboard aft") Accelerator ("numpad4", "port") Accelerator ("numpad6", "starboard") Accelerator ("numpad7", "port fore") Accelerator ("numpad8", "fore") Accelerator ("numpad9", "starboard fore") Accelerator ("divide", "turn wheel port") Accelerator ("multiply", "turn wheel starboard") Accelerator ("numpad0", "centre wheel") </send> </alias> </aliases> <!-- Script --> </muclient>