Is this the 'best' way to package code?

Unofficial support for the creating and editing of metas.
bradacc
Posts: 128

Is this the 'best' way to package code?

Post #1 »

So I have a state to use Monroe to receive a stipend. My hope is that I can build more states using this one as a base for running my army through facility hub quests and beyond. What I am wondering is whether or not this would be the most compact/portable way to code it.

Here' s what I have:
In Default state I have a chat command that sets meta state Monroe
Monroe state has 3 lines;
1st line is condition 'always' with action Embedded Nav "Monroe.nav"
2nd line is condition chat: "Monroe gives you Stipend" with action All:{Chat Command: /f Done, Embedded Nav "empty.nav"
3nd line is condition chat: "Try back a little later adventurer." with action All:{Chat Command: /f Done, Embedded Nav "empty.nav"

Monroe.nav is 3 points (circular)
1st point is UseNPC: Monroe
2nd point is Pause: 5 seconds
3rd point is Chat command: /mt send msg s


First off big shout out to everyone in /vic vigeneral that helped me to get this going last night. I was able to have my main issue one chat command and watch in glee as 8 toons received stipends. Definitely put a big ass smile on my face. Secondly can I make this more portable? The first thing I see maybe using an "|" to combine the 2nd and 3rd Monroe state. As always thanks in advance for any and all replies!

User avatar
Roogon
Posts: 14

Post #2 »

Can you possible share the code you use for doing this?
Thanks ..
Roogon