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.

USA Global Moderator #0
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.
Australia Forum Administrator #1
StopProcessingTriggers

StopEvaluatingTriggers
Australia Forum Administrator #2
This should do it, you might want to check it looks OK:

https://github.com/nickgammon/mushclient/commit/4a71204
Australia Forum Administrator #3
I'm not sure about this line:


 if (m_iStopTriggerEvaluation == eKeepEvaluatingTriggers)


Maybe it should be:



 if (m_iStopTriggerEvaluation != eStopEvaluatingTriggersInAllPlugins)
USA Global Moderator #4
I agree that that line should be changed.
If the last negative plugin sets eStopEvaluatingTriggers but not eStopEvaluatingTriggersInAllPlugins then main will get skipped.
Amended on Tue 10 Mar 2015 10:27 PM by Fiendish
Australia Forum Administrator #5
OK, fixed that.