Just wondering what other people think regarding writing scripts for Achaea:
Is it better to have 1 parser scanning received lines of text for all of the potential trigger lines out there for Achaea, or to split it up into multiple parsers so that each parser is only looking for a number of those lines? At the moment I have multiple parsers: 1 for eating afflictions, 1 for sip afflictions, 1 for applying afflictions, 1 for smoking afflictions, and one that checks for miscellaneous stuff such as prone/transfixed etc. Not sure if it's the best way to go in the long run however.
0
Comments
→My Mudlet Scripts
I guess as an example from the HTML5 basic sipper source code:
→My Mudlet Scripts
$(document).on("onMsgRecv.autoHerb", autoHerb.parse);
Then in the parse function it checks the function against a number of if/elseif statements matching messages to see what that message is. I'm not sure if that counts as a single trigger matching anything as you mentioned or what, as I've basically been learning HTML5 on the fly.
Svof
Mudlet Discord join up
Svof
Mudlet Discord join up
Svof
Mudlet Discord join up