Currently the plugin sequence range goes from 0 to 10000, and all happen after the main world. Can we extend that to [-10000, 10000] and have negative sequences run before main world triggers? In the Aardwolf package a number of lines get omitted->StopProcessingTriggers(true)->simulated so the player never actually sees the original formatting, which can make writing world triggers difficult for those lines (a pattern that catches repeated info will fire twice instead of once) unless they get to catch only the reformatted ones.
negative plugin sequences that run before main world triggers
Posted by Fiendish on Sun 08 Mar 2015 05:35 PM — 6 posts, 21,636 views.
StopEvaluatingTriggers
This should do it, you might want to check it looks OK:
https://github.com/nickgammon/mushclient/commit/4a71204
https://github.com/nickgammon/mushclient/commit/4a71204
I'm not sure about this line:
Maybe it should be:
if (m_iStopTriggerEvaluation == eKeepEvaluatingTriggers)
Maybe it should be:
if (m_iStopTriggerEvaluation != eStopEvaluatingTriggersInAllPlugins)
I agree that that line should be changed.
If the last negative plugin sets eStopEvaluatingTriggers but not eStopEvaluatingTriggersInAllPlugins then main will get skipped.
If the last negative plugin sets eStopEvaluatingTriggers but not eStopEvaluatingTriggersInAllPlugins then main will get skipped.
OK, fixed that.