I'm currently trying to use the world.AddTrigger function to add a multiple-line trigger to the list, but I can't seem to find the correct linebreak character to do so. I've tried inserting the 'newline' escape into the string (which is /n) to no avail. Could someone point me in the right direction on how to do this? Thanks.
Creating a multi-line trigger using AddTrigger
Posted by ReinS on Tue 15 Dec 2009 01:05 AM — 4 posts, 22,301 views.
Well, newline is \n not /n for a start.
Can you paste the whole thing, rather than describing it? Maybe you made a typo in your explanation, or maybe the trigger itself is wrong.
Can you paste the whole thing, rather than describing it? Maybe you made a typo in your explanation, or maybe the trigger itself is wrong.
For advice on how to copy aliases, timers or triggers from within MUSHclient, and paste them into a forum message, please see Copying XML.
I would also generally use the GUI interface to add triggers. Using AddTrigger is generally only necessary in advanced cases, like where you make an alias that adds triggers for you.
And, as AddTrigger and AddTriggerEx leave out many of the options you can, and may, want to set for a trigger, I might recommend use of the ImportXML function instead. Works great for me!