<Effect name="Selectors 4 Players">
<Param name="Note" dispName="Important" varType="string">You need to create an army for every player and use the FIRST army created. The name of the countdown is: selector. When a player has been booted set the value of the following Quest Vars: "P1Booted", "P2Booted", "P3Booted" or "P4Booted" to 1</Param>
<Param name="SrcObject" dispName="Change in area" varType="unit">default</Param>
<Param name="SrcSelector" dispName="Selector" VarType="protounit">Folstag Flag Bearer</Param>
<Param name="Deploy" dispName="Deploy here" varType="area">0,0,0</Param>
<Param name="Change" dispName="Change into" VarType="protounit">Vortex Start Linked</Param>
<Param name="Message" dispName="Counter message" varType="stringid">Choose in</Param>
<Param name="Timer" dispName="Timer" varType="long">15</Param>
<Command>trUnitSelectClear();</Command>
<Command loop="" loopParm="SrcObject">trUnitSelect("%SrcObject%");</Command>
<Command>if(trQuestVarGet("lostrohahalolrandxDP1")==1)trUnitChangeInArea(1,1,"%SrcSelector%","%Change%",300);</Command>
<Command>if(trQuestVarGet("lostrohahalolrandxDP2")==1)trUnitChangeInArea(2,2,"%SrcSelector%","%Change%",300);</Command>
<Command>if(trQuestVarGet("lostrohahalolrandxDP3")==1)trUnitChangeInArea(3,3,"%SrcSelector%","%Change%",300);</Command>
<Command>if(trQuestVarGet("lostrohahalolrandxDP4")==1)trUnitChangeInArea(4,4,"%SrcSelector%","%Change%",300);</Command>
<Command>if(trQuestVarGet("P1Booted")==0){</Command>
<Command>if(trQuestVarGet("P2Booted")==0){</Command>
<Command>if(trQuestVarGet("P3Booted")==0){</Command>
<Command>if(trQuestVarGet("P4Booted")==0){</Command>
<Command>trQuestVarSetFromRand("lostrohahalolrandxD", 1, 4, true);</Command>
<Command>if(trQuestVarGet("lostrohahalolrandxD")==1){</Command>
<Command>if(trQuestVarGet("lostrohahalolrandxDP1")==0){</Command>
<Command><![CDATA[trCounterAddTime("selector", %Timer%, 0, "<color={playercolor(1)}>%Message%", -1);]]></Command>
<Command>trArmyDispatch("1,10", "%SrcSelector%", 1, Þploy%, 0, true);</Command>
<Command>trQuestVarSet("lostrohahalolrandxDP1", 1);</Command>
<Command>trQuestVarSet("lostrohahalolrandxDP2", 0);</Command>
<Command>trQuestVarSet("lostrohahalolrandxDP3", 0);</Command>
<Command>trQuestVarSet("lostrohahalolrandxDP4", 0);</Command>
<Command>}}</Command>
<Command>if(trQuestVarGet("lostrohahalolrandxD")==2){</Command>
<Command>if(trQuestVarGet("lostrohahalolrandxDP2")==0){</Command>
<Command><![CDATA[trCounterAddTime("selector", %Timer%, 0, "<color={playercolor(2)}>%Message%", -1);]]></Command>
<Command>trArmyDispatch("2,10", "%SrcSelector%", 1, Þploy%, 0, true);</Command>
<Command>trQuestVarSet("lostrohahalolrandxDP1", 0);</Command>
<Command>trQuestVarSet("lostrohahalolrandxDP2", 1);</Command>
<Command>trQuestVarSet("lostrohahalolrandxDP3", 0);</Command>
<Command>trQuestVarSet("lostrohahalolrandxDP4", 0);</Command>
<Command>}}</Command>
<Command>if(trQuestVarGet("lostrohahalolrandxD")==3){</Command>
<Command>if(trQuestVarGet("lostrohahalolrandxDP3")==0){</Command>
<Command><![CDATA[trCounterAddTime("selector", %Timer%, 0, "<color={playercolor(3)}>%Message%", -1);]]></Command>
<Command>trArmyDispatch("3,10", "%SrcSelector%", 1, Þploy%, 0, true);</Command>
<Command>trQuestVarSet("lostrohahalolrandxDP1", 0);</Command>
<Command>trQuestVarSet("lostrohahalolrandxDP2", 0);</Command>
<Command>trQuestVarSet("lostrohahalolrandxDP3", 1);</Command>
<Command>trQuestVarSet("lostrohahalolrandxDP4", 0);</Command>
<Command>}}</Command>
<Command>if(trQuestVarGet("lostrohahalolrandxD")==4){</Command>
<Command>if(trQuestVarGet("lostrohahalolrandxDP4")==0){</Command>
<Command><![CDATA[trCounterAddTime("selector", %Timer%, 0, "<color={playercolor(4)}>%Message%", -1);]]></Command>
<Command>trArmyDispatch("4,10", "%SrcSelector%", 1, Þploy%, 0, true);</Command>
<Command>trQuestVarSet("lostrohahalolrandxDP1", 0);</Command>
<Command>trQuestVarSet("lostrohahalolrandxDP2", 0);</Command>
<Command>trQuestVarSet("lostrohahalolrandxDP3", 0);</Command>