// FinalAlert2:CS Script file
// Name: 生存模式简易工具
// Written By: Spider Nebula
// Last Change: 2011
// Be careful when editing scripts, they may cause damage to maps if used improperly

//许可
Message("生存地图非人性化工具脚本0.9","by 蜘蛛星云");

AskContinue("确认新建了51-55路径点专门用于刷兵。");

SetSafeMode("FALSE","按确认键关闭地图编辑器安全模式。为了脚本的执行，这是必要的。");
Is("%SafeMode%","!=","0","%NoSet%");
Message("安全模式未关闭...程序自动终止。", "by 蜘蛛星云", "%NoSet%");
Cancel("%NoSet%");

AllowAdd("按确认键允许增加物件。执行这个脚本，有必要允许增加物件。");
Is("%AddAllowed%","=","0","%NoAdd%");
Message("允许增加物件未开启...程序自动终止。", "by 蜘蛛星云", "%NoAdd%");
Cancel("%NoAdd%");

//运行判定
UInputGetString("%WaveVariableName%","定义一个控制该波次的局部变量名称，注意本工具脚本会自动创建对应的一个局部变量，不要跟原有的重复。");

GetIniKey("%Once%","WaveVariableDecision","%WaveVariableName%");
Is("%WaveVariableName%","=", "1", "GE");
Message("错误2053 - 该局部变量名称已经使用。", "by 蜘蛛星云", "GE");
Cancel("GE");

UInputGetString("%WaveTriggersName%","4位大写字母。定义一个控制该波次的触发后缀，使他能够与原来的触发不重复，该项不要与跟原来定义的重复。");

GetIniKey("%Twice%","WaveTriggersDecision","%WaveTriggersName%");
Is("%WaveTriggersName%","=", "1", "GE");
Message("错误2404 - 该触发后缀已经使用。", "by 蜘蛛星云", "GE");
Cancel("GE");

//局部变量
//【结构】单次循环结构v1.0   By Pzy 2019.9.28
SetVariable("%WaveVariable%","0");

:Try0:
GetIniKey("%A%","VariableNames","%WaveVariable%");

Is("%A%","!=","","Used");
Add("%WaveVariable%","1","Used")
JumpTo("Try0","Used");

Message("局部变量注册 %WaveVariable%可用","找到一个...")
SetIniKey("VariableNames","%WaveVariable%","%WaveVariableName%");

//定义一个备忘表
SetIniKey("WaveVariableDecision","%WaveVariableName%","1");
SetIniKey("WaveTriggersDecision","%WaveTriggersName%","1");

// 用户赋值
UInputGetInteger("%WaveTime%","刷兵间隔时间。（0-999）","0","999");
UInputGetString("%1TNKID%","第1特遣部队ID，注意大小写。默认数量为10。");
UInputGetString("%2TNKID%","第2特遣部队ID，注意大小写。默认数量为10。");
UInputGetString("%3TNKID%","第3特遣部队ID，注意大小写。默认数量为10。");
UInputGetString("%4TNKID%","第4特遣部队ID，注意大小写。默认数量为10。");
UInputGetString("%5TNKID%","第5特遣部队ID，注意大小写。默认数量为10。");
UInputGetString("%6TNKID%","第6特遣部队ID，注意大小写。默认数量为10。");
UInputGetString("%7TNKID%","第7特遣部队ID，注意大小写。默认数量为10。");
UInputGetString("%8TNKID%","第8特遣部队ID，注意大小写。默认数量为10。");
UInputGetString("%9TNKID%","第9特遣部队ID，注意大小写。默认数量为10。");
UInputGetString("%10TNKID%","第10特遣部队ID，注意大小写。默认数量为10。");

//动作脚本
GetIniKey("%Third%","WaveScriptDecision","0");
Is("%Third%","!=", "1", "SEX");
SetIniKey("SCTATTCK","0","0,1","SEX");
SetIniKey("SCTATTCK","Name","ATTCK_ALL","SEX");
SetIniKey("ScriptTypes","0","SCTATTCK","SEX");
SetIniKey("WaveScriptDecision","0","1","SEX");

//特遣部队
SetIniKey("AT01%WaveTriggersName%","0","10,%1TNKID%");
SetIniKey("AT01%WaveTriggersName%","Name","%1TNKID%");
SetIniKey("AT01%WaveTriggersName%","Group","-1");
SetIniKey("AT02%WaveTriggersName%","0","10,%2TNKID%");
SetIniKey("AT02%WaveTriggersName%","Name","%2TNKID%");
SetIniKey("AT02%WaveTriggersName%","Group","-1");
SetIniKey("AT03%WaveTriggersName%","0","10,%3TNKID%");
SetIniKey("AT03%WaveTriggersName%","Name","%3TNKID%");
SetIniKey("AT03%WaveTriggersName%","Group","-1");
SetIniKey("AT04%WaveTriggersName%","0","10,%4TNKID%");
SetIniKey("AT04%WaveTriggersName%","Name","%4TNKID%");
SetIniKey("AT04%WaveTriggersName%","Group","-1");
SetIniKey("AT05%WaveTriggersName%","0","10,%5TNKID%");
SetIniKey("AT05%WaveTriggersName%","Name","%5TNKID%");
SetIniKey("AT05%WaveTriggersName%","Group","-1");
SetIniKey("AT06%WaveTriggersName%","0","10,%6TNKID%");
SetIniKey("AT06%WaveTriggersName%","Name","%6TNKID%");
SetIniKey("AT06%WaveTriggersName%","Group","-1");
SetIniKey("AT07%WaveTriggersName%","0","10,%7TNKID%");
SetIniKey("AT07%WaveTriggersName%","Name","%7TNKID%");
SetIniKey("AT07%WaveTriggersName%","Group","-1");
SetIniKey("AT08%WaveTriggersName%","0","10,%8TNKID%");
SetIniKey("AT08%WaveTriggersName%","Name","%8TNKID%");
SetIniKey("AT08%WaveTriggersName%","Group","-1");
SetIniKey("AT09%WaveTriggersName%","0","10,%9TNKID%");
SetIniKey("AT09%WaveTriggersName%","Name","%9TNKID%");
SetIniKey("AT09%WaveTriggersName%","Group","-1");
SetIniKey("AT10%WaveTriggersName%","0","10,%10TNKID%");
SetIniKey("AT10%WaveTriggersName%","Name","%10TNKID%");
SetIniKey("AT10%WaveTriggersName%","Group","-1");


//无限强大的查找10个可用序列号，作者PZY
SetVariable("%TaskForcesID%","0");
SetVariable("%Sum%","0");
:Try1:
GetIniKey("%A%","TaskForces","%TaskForcesID%");
Is("%A%","!=","","Used");
Add("%TaskForcesID%","1","Used")
JumpTo("Try1","Used");

Add("%Sum%","1")
Message("特遣部队注册 %TaskForcesID%可用","找到一个...")
Is("%Sum%","<","10","small");
Is("%Sum%",">=","10","big");
SetIniKey("TaskForces","%TaskForcesID%","AT0%Sum%%WaveTriggersName%","small");
SetIniKey("TaskForces","%TaskForcesID%","AT%Sum%%WaveTriggersName%","big");
Add("%TaskForcesID%","1")

Is("%Sum%","<","10","GoOn1");
JumpTo("Try1","GoOn1");

//作战小队
SetIniKey("TE01%WaveTriggersName%","Name","ZHUOZHANTEAM01-%WaveTriggersName%");
SetIniKey("TE01%WaveTriggersName%","House","<Player @ D>");
SetIniKey("TE01%WaveTriggersName%","TaskForce","AT01%WaveTriggersName%");
SetIniKey("TE01%WaveTriggersName%","Script","SCTATTCK");
SetIniKey("TE01%WaveTriggersName%","Max","5");
SetIniKey("TE01%WaveTriggersName%","Full","no");
SetIniKey("TE01%WaveTriggersName%","Group","-1");
SetIniKey("TE01%WaveTriggersName%","Whiner","no");
SetIniKey("TE01%WaveTriggersName%","Droppod","no");
SetIniKey("TE01%WaveTriggersName%","Suicide","no");
SetIniKey("TE01%WaveTriggersName%","Loadable","yes");
SetIniKey("TE01%WaveTriggersName%","Prebuild","no");
SetIniKey("TE01%WaveTriggersName%","Priority","5");
SetIniKey("TE01%WaveTriggersName%","Annoyance","no");
SetIniKey("TE01%WaveTriggersName%","IonImmune","no");
SetIniKey("TE01%WaveTriggersName%","Recruiter","yes");
SetIniKey("TE01%WaveTriggersName%","Reinforce","no");
SetIniKey("TE01%WaveTriggersName%","TechLevel","0");
SetIniKey("TE01%WaveTriggersName%","Aggressive","yes");
SetIniKey("TE01%WaveTriggersName%","Autocreate","no");
SetIniKey("TE01%WaveTriggersName%","GuardSlower","no");
SetIniKey("TE01%WaveTriggersName%","OnTransOnly","no");
SetIniKey("TE01%WaveTriggersName%","AvoidThreats","yes");
SetIniKey("TE01%WaveTriggersName%","LooseRecruit","no");
SetIniKey("TE01%WaveTriggersName%","VeteranLevel","1");
SetIniKey("TE01%WaveTriggersName%","IsBaseDefense","no");
SetIniKey("TE01%WaveTriggersName%","UseTransportOrigin","no");
SetIniKey("TE01%WaveTriggersName%","MindControlDecision","0");
SetIniKey("TE01%WaveTriggersName%","OnlyTargetHouseEnemy","no");
SetIniKey("TE01%WaveTriggersName%","TransportsReturnOnUnload","no");
SetIniKey("TE01%WaveTriggersName%","AreTeamMembersRecruitable","yes");
SetIniKey("TE01%WaveTriggersName%","Waypoint","A");

SetIniKey("TE02%WaveTriggersName%","Name","ZHUOZHANTEAM02-%WaveTriggersName%");
SetIniKey("TE02%WaveTriggersName%","House","<Player @ D>");
SetIniKey("TE02%WaveTriggersName%","TaskForce","AT02%WaveTriggersName%");
SetIniKey("TE02%WaveTriggersName%","Script","SCTATTCK");
SetIniKey("TE02%WaveTriggersName%","Max","5");
SetIniKey("TE02%WaveTriggersName%","Full","no");
SetIniKey("TE02%WaveTriggersName%","Group","-1");
SetIniKey("TE02%WaveTriggersName%","Whiner","no");
SetIniKey("TE02%WaveTriggersName%","Droppod","no");
SetIniKey("TE02%WaveTriggersName%","Suicide","no");
SetIniKey("TE02%WaveTriggersName%","Loadable","yes");
SetIniKey("TE02%WaveTriggersName%","Prebuild","no");
SetIniKey("TE02%WaveTriggersName%","Priority","5");
SetIniKey("TE02%WaveTriggersName%","Annoyance","no");
SetIniKey("TE02%WaveTriggersName%","IonImmune","no");
SetIniKey("TE02%WaveTriggersName%","Recruiter","yes");
SetIniKey("TE02%WaveTriggersName%","Reinforce","no");
SetIniKey("TE02%WaveTriggersName%","TechLevel","0");
SetIniKey("TE02%WaveTriggersName%","Aggressive","yes");
SetIniKey("TE02%WaveTriggersName%","Autocreate","no");
SetIniKey("TE02%WaveTriggersName%","GuardSlower","no");
SetIniKey("TE02%WaveTriggersName%","OnTransOnly","no");
SetIniKey("TE02%WaveTriggersName%","AvoidThreats","yes");
SetIniKey("TE02%WaveTriggersName%","LooseRecruit","no");
SetIniKey("TE02%WaveTriggersName%","VeteranLevel","1");
SetIniKey("TE02%WaveTriggersName%","IsBaseDefense","no");
SetIniKey("TE02%WaveTriggersName%","UseTransportOrigin","no");
SetIniKey("TE02%WaveTriggersName%","MindControlDecision","0");
SetIniKey("TE02%WaveTriggersName%","OnlyTargetHouseEnemy","no");
SetIniKey("TE02%WaveTriggersName%","TransportsReturnOnUnload","no");
SetIniKey("TE02%WaveTriggersName%","AreTeamMembersRecruitable","yes");
SetIniKey("TE02%WaveTriggersName%","Waypoint","A");

SetIniKey("TE03%WaveTriggersName%","Name","ZHUOZHANTEAM03-%WaveTriggersName%");
SetIniKey("TE03%WaveTriggersName%","House","<Player @ D>");
SetIniKey("TE03%WaveTriggersName%","TaskForce","AT03%WaveTriggersName%");
SetIniKey("TE03%WaveTriggersName%","Script","SCTATTCK");
SetIniKey("TE03%WaveTriggersName%","Max","5");
SetIniKey("TE03%WaveTriggersName%","Full","no");
SetIniKey("TE03%WaveTriggersName%","Group","-1");
SetIniKey("TE03%WaveTriggersName%","Whiner","no");
SetIniKey("TE03%WaveTriggersName%","Droppod","no");
SetIniKey("TE03%WaveTriggersName%","Suicide","no");
SetIniKey("TE03%WaveTriggersName%","Loadable","yes");
SetIniKey("TE03%WaveTriggersName%","Prebuild","no");
SetIniKey("TE03%WaveTriggersName%","Priority","5");
SetIniKey("TE03%WaveTriggersName%","Annoyance","no");
SetIniKey("TE03%WaveTriggersName%","IonImmune","no");
SetIniKey("TE03%WaveTriggersName%","Recruiter","yes");
SetIniKey("TE03%WaveTriggersName%","Reinforce","no");
SetIniKey("TE03%WaveTriggersName%","TechLevel","0");
SetIniKey("TE03%WaveTriggersName%","Aggressive","yes");
SetIniKey("TE03%WaveTriggersName%","Autocreate","no");
SetIniKey("TE03%WaveTriggersName%","GuardSlower","no");
SetIniKey("TE03%WaveTriggersName%","OnTransOnly","no");
SetIniKey("TE03%WaveTriggersName%","AvoidThreats","yes");
SetIniKey("TE03%WaveTriggersName%","LooseRecruit","no");
SetIniKey("TE03%WaveTriggersName%","VeteranLevel","1");
SetIniKey("TE03%WaveTriggersName%","IsBaseDefense","no");
SetIniKey("TE03%WaveTriggersName%","UseTransportOrigin","no");
SetIniKey("TE03%WaveTriggersName%","MindControlDecision","0");
SetIniKey("TE03%WaveTriggersName%","OnlyTargetHouseEnemy","no");
SetIniKey("TE03%WaveTriggersName%","TransportsReturnOnUnload","no");
SetIniKey("TE03%WaveTriggersName%","AreTeamMembersRecruitable","yes");
SetIniKey("TE03%WaveTriggersName%","Waypoint","A");

SetIniKey("TE04%WaveTriggersName%","Name","ZHUOZHANTEAM04-%WaveTriggersName%");
SetIniKey("TE04%WaveTriggersName%","House","<Player @ D>");
SetIniKey("TE04%WaveTriggersName%","TaskForce","AT04%WaveTriggersName%");
SetIniKey("TE04%WaveTriggersName%","Script","SCTATTCK");
SetIniKey("TE04%WaveTriggersName%","Max","5");
SetIniKey("TE04%WaveTriggersName%","Full","no");
SetIniKey("TE04%WaveTriggersName%","Group","-1");
SetIniKey("TE04%WaveTriggersName%","Whiner","no");
SetIniKey("TE04%WaveTriggersName%","Droppod","no");
SetIniKey("TE04%WaveTriggersName%","Suicide","no");
SetIniKey("TE04%WaveTriggersName%","Loadable","yes");
SetIniKey("TE04%WaveTriggersName%","Prebuild","no");
SetIniKey("TE04%WaveTriggersName%","Priority","5");
SetIniKey("TE04%WaveTriggersName%","Annoyance","no");
SetIniKey("TE04%WaveTriggersName%","IonImmune","no");
SetIniKey("TE04%WaveTriggersName%","Recruiter","yes");
SetIniKey("TE04%WaveTriggersName%","Reinforce","no");
SetIniKey("TE04%WaveTriggersName%","TechLevel","0");
SetIniKey("TE04%WaveTriggersName%","Aggressive","yes");
SetIniKey("TE04%WaveTriggersName%","Autocreate","no");
SetIniKey("TE04%WaveTriggersName%","GuardSlower","no");
SetIniKey("TE04%WaveTriggersName%","OnTransOnly","no");
SetIniKey("TE04%WaveTriggersName%","AvoidThreats","yes");
SetIniKey("TE04%WaveTriggersName%","LooseRecruit","no");
SetIniKey("TE04%WaveTriggersName%","VeteranLevel","1");
SetIniKey("TE04%WaveTriggersName%","IsBaseDefense","no");
SetIniKey("TE04%WaveTriggersName%","UseTransportOrigin","no");
SetIniKey("TE04%WaveTriggersName%","MindControlDecision","0");
SetIniKey("TE04%WaveTriggersName%","OnlyTargetHouseEnemy","no");
SetIniKey("TE04%WaveTriggersName%","TransportsReturnOnUnload","no");
SetIniKey("TE04%WaveTriggersName%","AreTeamMembersRecruitable","yes");
SetIniKey("TE04%WaveTriggersName%","Waypoint","A");

SetIniKey("TE05%WaveTriggersName%","Name","ZHUOZHANTEAM05-%WaveTriggersName%");
SetIniKey("TE05%WaveTriggersName%","House","<Player @ D>");
SetIniKey("TE05%WaveTriggersName%","TaskForce","AT05%WaveTriggersName%");
SetIniKey("TE05%WaveTriggersName%","Script","SCTATTCK");
SetIniKey("TE05%WaveTriggersName%","Max","5");
SetIniKey("TE05%WaveTriggersName%","Full","no");
SetIniKey("TE05%WaveTriggersName%","Group","-1");
SetIniKey("TE05%WaveTriggersName%","Whiner","no");
SetIniKey("TE05%WaveTriggersName%","Droppod","no");
SetIniKey("TE05%WaveTriggersName%","Suicide","no");
SetIniKey("TE05%WaveTriggersName%","Loadable","yes");
SetIniKey("TE05%WaveTriggersName%","Prebuild","no");
SetIniKey("TE05%WaveTriggersName%","Priority","5");
SetIniKey("TE05%WaveTriggersName%","Annoyance","no");
SetIniKey("TE05%WaveTriggersName%","IonImmune","no");
SetIniKey("TE05%WaveTriggersName%","Recruiter","yes");
SetIniKey("TE05%WaveTriggersName%","Reinforce","no");
SetIniKey("TE05%WaveTriggersName%","TechLevel","0");
SetIniKey("TE05%WaveTriggersName%","Aggressive","yes");
SetIniKey("TE05%WaveTriggersName%","Autocreate","no");
SetIniKey("TE05%WaveTriggersName%","GuardSlower","no");
SetIniKey("TE05%WaveTriggersName%","OnTransOnly","no");
SetIniKey("TE05%WaveTriggersName%","AvoidThreats","yes");
SetIniKey("TE05%WaveTriggersName%","LooseRecruit","no");
SetIniKey("TE05%WaveTriggersName%","VeteranLevel","1");
SetIniKey("TE05%WaveTriggersName%","IsBaseDefense","no");
SetIniKey("TE05%WaveTriggersName%","UseTransportOrigin","no");
SetIniKey("TE05%WaveTriggersName%","MindControlDecision","0");
SetIniKey("TE05%WaveTriggersName%","OnlyTargetHouseEnemy","no");
SetIniKey("TE05%WaveTriggersName%","TransportsReturnOnUnload","no");
SetIniKey("TE05%WaveTriggersName%","AreTeamMembersRecruitable","yes");
SetIniKey("TE05%WaveTriggersName%","Waypoint","A");

SetIniKey("TE06%WaveTriggersName%","Name","ZHUOZHANTEAM06-%WaveTriggersName%");
SetIniKey("TE06%WaveTriggersName%","House","<Player @ D>");
SetIniKey("TE06%WaveTriggersName%","TaskForce","AT06%WaveTriggersName%");
SetIniKey("TE06%WaveTriggersName%","Script","SCTATTCK");
SetIniKey("TE06%WaveTriggersName%","Max","5");
SetIniKey("TE06%WaveTriggersName%","Full","no");
SetIniKey("TE06%WaveTriggersName%","Group","-1");
SetIniKey("TE06%WaveTriggersName%","Whiner","no");
SetIniKey("TE06%WaveTriggersName%","Droppod","no");
SetIniKey("TE06%WaveTriggersName%","Suicide","no");
SetIniKey("TE06%WaveTriggersName%","Loadable","yes");
SetIniKey("TE06%WaveTriggersName%","Prebuild","no");
SetIniKey("TE06%WaveTriggersName%","Priority","5");
SetIniKey("TE06%WaveTriggersName%","Annoyance","no");
SetIniKey("TE06%WaveTriggersName%","IonImmune","no");
SetIniKey("TE06%WaveTriggersName%","Recruiter","yes");
SetIniKey("TE06%WaveTriggersName%","Reinforce","no");
SetIniKey("TE06%WaveTriggersName%","TechLevel","0");
SetIniKey("TE06%WaveTriggersName%","Aggressive","yes");
SetIniKey("TE06%WaveTriggersName%","Autocreate","no");
SetIniKey("TE06%WaveTriggersName%","GuardSlower","no");
SetIniKey("TE06%WaveTriggersName%","OnTransOnly","no");
SetIniKey("TE06%WaveTriggersName%","AvoidThreats","yes");
SetIniKey("TE06%WaveTriggersName%","LooseRecruit","no");
SetIniKey("TE06%WaveTriggersName%","VeteranLevel","1");
SetIniKey("TE06%WaveTriggersName%","IsBaseDefense","no");
SetIniKey("TE06%WaveTriggersName%","UseTransportOrigin","no");
SetIniKey("TE06%WaveTriggersName%","MindControlDecision","0");
SetIniKey("TE06%WaveTriggersName%","OnlyTargetHouseEnemy","no");
SetIniKey("TE06%WaveTriggersName%","TransportsReturnOnUnload","no");
SetIniKey("TE06%WaveTriggersName%","AreTeamMembersRecruitable","yes");
SetIniKey("TE06%WaveTriggersName%","Waypoint","A");

SetIniKey("TE07%WaveTriggersName%","Name","ZHUOZHANTEAM07-%WaveTriggersName%");
SetIniKey("TE07%WaveTriggersName%","House","<Player @ D>");
SetIniKey("TE07%WaveTriggersName%","TaskForce","AT07%WaveTriggersName%");
SetIniKey("TE07%WaveTriggersName%","Script","SCTATTCK");
SetIniKey("TE07%WaveTriggersName%","Max","5");
SetIniKey("TE07%WaveTriggersName%","Full","no");
SetIniKey("TE07%WaveTriggersName%","Group","-1");
SetIniKey("TE07%WaveTriggersName%","Whiner","no");
SetIniKey("TE07%WaveTriggersName%","Droppod","no");
SetIniKey("TE07%WaveTriggersName%","Suicide","no");
SetIniKey("TE07%WaveTriggersName%","Loadable","yes");
SetIniKey("TE07%WaveTriggersName%","Prebuild","no");
SetIniKey("TE07%WaveTriggersName%","Priority","5");
SetIniKey("TE07%WaveTriggersName%","Annoyance","no");
SetIniKey("TE07%WaveTriggersName%","IonImmune","no");
SetIniKey("TE07%WaveTriggersName%","Recruiter","yes");
SetIniKey("TE07%WaveTriggersName%","Reinforce","no");
SetIniKey("TE07%WaveTriggersName%","TechLevel","0");
SetIniKey("TE07%WaveTriggersName%","Aggressive","yes");
SetIniKey("TE07%WaveTriggersName%","Autocreate","no");
SetIniKey("TE07%WaveTriggersName%","GuardSlower","no");
SetIniKey("TE07%WaveTriggersName%","OnTransOnly","no");
SetIniKey("TE07%WaveTriggersName%","AvoidThreats","yes");
SetIniKey("TE07%WaveTriggersName%","LooseRecruit","no");
SetIniKey("TE07%WaveTriggersName%","VeteranLevel","1");
SetIniKey("TE07%WaveTriggersName%","IsBaseDefense","no");
SetIniKey("TE07%WaveTriggersName%","UseTransportOrigin","no");
SetIniKey("TE07%WaveTriggersName%","MindControlDecision","0");
SetIniKey("TE07%WaveTriggersName%","OnlyTargetHouseEnemy","no");
SetIniKey("TE07%WaveTriggersName%","TransportsReturnOnUnload","no");
SetIniKey("TE07%WaveTriggersName%","AreTeamMembersRecruitable","yes");
SetIniKey("TE07%WaveTriggersName%","Waypoint","A");

SetIniKey("TE08%WaveTriggersName%","Name","ZHUOZHANTEAM08-%WaveTriggersName%");
SetIniKey("TE08%WaveTriggersName%","House","<Player @ D>");
SetIniKey("TE08%WaveTriggersName%","TaskForce","AT08%WaveTriggersName%");
SetIniKey("TE08%WaveTriggersName%","Script","SCTATTCK");
SetIniKey("TE08%WaveTriggersName%","Max","5");
SetIniKey("TE08%WaveTriggersName%","Full","no");
SetIniKey("TE08%WaveTriggersName%","Group","-1");
SetIniKey("TE08%WaveTriggersName%","Whiner","no");
SetIniKey("TE08%WaveTriggersName%","Droppod","no");
SetIniKey("TE08%WaveTriggersName%","Suicide","no");
SetIniKey("TE08%WaveTriggersName%","Loadable","yes");
SetIniKey("TE08%WaveTriggersName%","Prebuild","no");
SetIniKey("TE08%WaveTriggersName%","Priority","5");
SetIniKey("TE08%WaveTriggersName%","Annoyance","no");
SetIniKey("TE08%WaveTriggersName%","IonImmune","no");
SetIniKey("TE08%WaveTriggersName%","Recruiter","yes");
SetIniKey("TE08%WaveTriggersName%","Reinforce","no");
SetIniKey("TE08%WaveTriggersName%","TechLevel","0");
SetIniKey("TE08%WaveTriggersName%","Aggressive","yes");
SetIniKey("TE08%WaveTriggersName%","Autocreate","no");
SetIniKey("TE08%WaveTriggersName%","GuardSlower","no");
SetIniKey("TE08%WaveTriggersName%","OnTransOnly","no");
SetIniKey("TE08%WaveTriggersName%","AvoidThreats","yes");
SetIniKey("TE08%WaveTriggersName%","LooseRecruit","no");
SetIniKey("TE08%WaveTriggersName%","VeteranLevel","1");
SetIniKey("TE08%WaveTriggersName%","IsBaseDefense","no");
SetIniKey("TE08%WaveTriggersName%","UseTransportOrigin","no");
SetIniKey("TE08%WaveTriggersName%","MindControlDecision","0");
SetIniKey("TE08%WaveTriggersName%","OnlyTargetHouseEnemy","no");
SetIniKey("TE08%WaveTriggersName%","TransportsReturnOnUnload","no");
SetIniKey("TE08%WaveTriggersName%","AreTeamMembersRecruitable","yes");
SetIniKey("TE08%WaveTriggersName%","Waypoint","A");

SetIniKey("TE09%WaveTriggersName%","Name","ZHUOZHANTEAM09-%WaveTriggersName%");
SetIniKey("TE09%WaveTriggersName%","House","<Player @ D>");
SetIniKey("TE09%WaveTriggersName%","TaskForce","AT09%WaveTriggersName%");
SetIniKey("TE09%WaveTriggersName%","Script","SCTATTCK");
SetIniKey("TE09%WaveTriggersName%","Max","5");
SetIniKey("TE09%WaveTriggersName%","Full","no");
SetIniKey("TE09%WaveTriggersName%","Group","-1");
SetIniKey("TE09%WaveTriggersName%","Whiner","no");
SetIniKey("TE09%WaveTriggersName%","Droppod","no");
SetIniKey("TE09%WaveTriggersName%","Suicide","no");
SetIniKey("TE09%WaveTriggersName%","Loadable","yes");
SetIniKey("TE09%WaveTriggersName%","Prebuild","no");
SetIniKey("TE09%WaveTriggersName%","Priority","5");
SetIniKey("TE09%WaveTriggersName%","Annoyance","no");
SetIniKey("TE09%WaveTriggersName%","IonImmune","no");
SetIniKey("TE09%WaveTriggersName%","Recruiter","yes");
SetIniKey("TE09%WaveTriggersName%","Reinforce","no");
SetIniKey("TE09%WaveTriggersName%","TechLevel","0");
SetIniKey("TE09%WaveTriggersName%","Aggressive","yes");
SetIniKey("TE09%WaveTriggersName%","Autocreate","no");
SetIniKey("TE09%WaveTriggersName%","GuardSlower","no");
SetIniKey("TE09%WaveTriggersName%","OnTransOnly","no");
SetIniKey("TE09%WaveTriggersName%","AvoidThreats","yes");
SetIniKey("TE09%WaveTriggersName%","LooseRecruit","no");
SetIniKey("TE09%WaveTriggersName%","VeteranLevel","1");
SetIniKey("TE09%WaveTriggersName%","IsBaseDefense","no");
SetIniKey("TE09%WaveTriggersName%","UseTransportOrigin","no");
SetIniKey("TE09%WaveTriggersName%","MindControlDecision","0");
SetIniKey("TE09%WaveTriggersName%","OnlyTargetHouseEnemy","no");
SetIniKey("TE09%WaveTriggersName%","TransportsReturnOnUnload","no");
SetIniKey("TE09%WaveTriggersName%","AreTeamMembersRecruitable","yes");
SetIniKey("TE09%WaveTriggersName%","Waypoint","A");

SetIniKey("TE10%WaveTriggersName%","Name","ZHUOZHANTEAM10-%WaveTriggersName%");
SetIniKey("TE10%WaveTriggersName%","House","<Player @ D>");
SetIniKey("TE10%WaveTriggersName%","TaskForce","AT10%WaveTriggersName%");
SetIniKey("TE10%WaveTriggersName%","Script","SCTATTCK");
SetIniKey("TE10%WaveTriggersName%","Max","5");
SetIniKey("TE10%WaveTriggersName%","Full","no");
SetIniKey("TE10%WaveTriggersName%","Group","-1");
SetIniKey("TE10%WaveTriggersName%","Whiner","no");
SetIniKey("TE10%WaveTriggersName%","Droppod","no");
SetIniKey("TE10%WaveTriggersName%","Suicide","no");
SetIniKey("TE10%WaveTriggersName%","Loadable","yes");
SetIniKey("TE10%WaveTriggersName%","Prebuild","no");
SetIniKey("TE10%WaveTriggersName%","Priority","5");
SetIniKey("TE10%WaveTriggersName%","Annoyance","no");
SetIniKey("TE10%WaveTriggersName%","IonImmune","no");
SetIniKey("TE10%WaveTriggersName%","Recruiter","yes");
SetIniKey("TE10%WaveTriggersName%","Reinforce","no");
SetIniKey("TE10%WaveTriggersName%","TechLevel","0");
SetIniKey("TE10%WaveTriggersName%","Aggressive","yes");
SetIniKey("TE10%WaveTriggersName%","Autocreate","no");
SetIniKey("TE10%WaveTriggersName%","GuardSlower","no");
SetIniKey("TE10%WaveTriggersName%","OnTransOnly","no");
SetIniKey("TE10%WaveTriggersName%","AvoidThreats","yes");
SetIniKey("TE10%WaveTriggersName%","LooseRecruit","no");
SetIniKey("TE10%WaveTriggersName%","VeteranLevel","1");
SetIniKey("TE10%WaveTriggersName%","IsBaseDefense","no");
SetIniKey("TE10%WaveTriggersName%","UseTransportOrigin","no");
SetIniKey("TE10%WaveTriggersName%","MindControlDecision","0");
SetIniKey("TE10%WaveTriggersName%","OnlyTargetHouseEnemy","no");
SetIniKey("TE10%WaveTriggersName%","TransportsReturnOnUnload","no");
SetIniKey("TE10%WaveTriggersName%","AreTeamMembersRecruitable","yes");
SetIniKey("TE10%WaveTriggersName%","Waypoint","A");

//无限强大的查找10个可用序列号，作者PZY
SetVariable("%TeamTypesID%","0");
SetVariable("%Sum%","0");
:Try2:
GetIniKey("%A%","TeamTypes","%TeamTypesID%");
Is("%A%","!=","","Used");
Add("%TeamTypesID%","1","Used")
JumpTo("Try2","Used");

Add("%Sum%","1")
Message("作战小队注册 %TeamTypesID%可用","找到一个...")
Is("%Sum%","<","10","small");
Is("%Sum%",">=","10","big");
SetIniKey("TeamTypes","%TeamTypesID%","TE0%Sum%%WaveTriggersName%","small");
SetIniKey("TeamTypes","%TeamTypesID%","TE%Sum%%WaveTriggersName%","big");
Add("%TeamTypesID%","1")

Is("%Sum%","<","10","GoOn2");
JumpTo("Try2","GoOn2");

// 触发
SetIniKey("Triggers","TR01%WaveTriggersName%","Neutral,<none>,ATTCK01-WAVE-%WaveTriggersName%,0,1,1,1,0");
SetIniKey("Triggers","TR02%WaveTriggersName%","Neutral,<none>,ATTCK02-WAVE-%WaveTriggersName%,1,1,1,1,0");
SetIniKey("Triggers","TR03%WaveTriggersName%","Neutral,<none>,ATTCK03-WAVE-%WaveTriggersName%,1,1,1,1,0");
SetIniKey("Triggers","TR04%WaveTriggersName%","Neutral,<none>,ATTCK04-WAVE-%WaveTriggersName%,1,1,1,1,0");
SetIniKey("Triggers","TR05%WaveTriggersName%","Neutral,<none>,ATTCK05-WAVE-%WaveTriggersName%,1,1,1,1,0");
SetIniKey("Triggers","TR06%WaveTriggersName%","Neutral,<none>,ATTCK06-WAVE-%WaveTriggersName%,1,1,1,1,0");
SetIniKey("Triggers","TR07%WaveTriggersName%","Neutral,<none>,ATTCK07-WAVE-%WaveTriggersName%,1,1,1,1,0");
SetIniKey("Triggers","TR08%WaveTriggersName%","Neutral,<none>,ATTCK08-WAVE-%WaveTriggersName%,1,1,1,1,0");
SetIniKey("Triggers","TR09%WaveTriggersName%","Neutral,<none>,ATTCK09-WAVE-%WaveTriggersName%,1,1,1,1,0");
SetIniKey("Triggers","TR10%WaveTriggersName%","Neutral,<none>,ATTCK10-WAVE-%WaveTriggersName%,1,1,1,1,0");

//标签
SetIniKey("Tags","TG01%WaveTriggersName%","0,ATTCK01-WAVE-%WaveTriggersName% 1,TR01%WaveTriggersName%");
SetIniKey("Tags","TG02%WaveTriggersName%","0,ATTCK02-WAVE-%WaveTriggersName% 1,TR02%WaveTriggersName%");
SetIniKey("Tags","TG03%WaveTriggersName%","0,ATTCK03-WAVE-%WaveTriggersName% 1,TR03%WaveTriggersName%");
SetIniKey("Tags","TG04%WaveTriggersName%","0,ATTCK04-WAVE-%WaveTriggersName% 1,TR04%WaveTriggersName%");
SetIniKey("Tags","TG05%WaveTriggersName%","0,ATTCK05-WAVE-%WaveTriggersName% 1,TR05%WaveTriggersName%");
SetIniKey("Tags","TG06%WaveTriggersName%","0,ATTCK06-WAVE-%WaveTriggersName% 1,TR06%WaveTriggersName%");
SetIniKey("Tags","TG07%WaveTriggersName%","0,ATTCK07-WAVE-%WaveTriggersName% 1,TR07%WaveTriggersName%");
SetIniKey("Tags","TG08%WaveTriggersName%","0,ATTCK08-WAVE-%WaveTriggersName% 1,TR08%WaveTriggersName%");
SetIniKey("Tags","TG09%WaveTriggersName%","0,ATTCK09-WAVE-%WaveTriggersName% 1,TR09%WaveTriggersName%");
SetIniKey("Tags","TG10%WaveTriggersName%","0,ATTCK10-WAVE-%WaveTriggersName% 1,TR10%WaveTriggersName%");

//触发条件
SetIniKey("Events","TR01%WaveTriggersName%","2,36,0,%WaveVariable%,13,0,%WaveTime%");
SetIniKey("Events","TR02%WaveTriggersName%","2,36,0,%WaveVariable%,13,0,%WaveTime%");
SetIniKey("Events","TR03%WaveTriggersName%","2,36,0,%WaveVariable%,13,0,%WaveTime%");
SetIniKey("Events","TR04%WaveTriggersName%","2,36,0,%WaveVariable%,13,0,%WaveTime%");
SetIniKey("Events","TR05%WaveTriggersName%","2,36,0,%WaveVariable%,13,0,%WaveTime%");
SetIniKey("Events","TR06%WaveTriggersName%","2,36,0,%WaveVariable%,13,0,%WaveTime%");
SetIniKey("Events","TR07%WaveTriggersName%","2,36,0,%WaveVariable%,13,0,%WaveTime%");
SetIniKey("Events","TR08%WaveTriggersName%","2,36,0,%WaveVariable%,13,0,%WaveTime%");
SetIniKey("Events","TR09%WaveTriggersName%","2,36,0,%WaveVariable%,13,0,%WaveTime%");
SetIniKey("Events","TR10%WaveTriggersName%","2,36,0,%WaveVariable%,13,0,%WaveTime%");

//触发结果
SetIniKey("Actions","TR01%WaveTriggersName%","6,107,1,TE01%WaveTriggersName%,0,0,0,0,AZ,107,1,TE01%WaveTriggersName%,0,0,0,0,BA,107,1,TE01%WaveTriggersName%,0,0,0,0,BB,107,1,TE01%WaveTriggersName%,0,0,0,0,BC,107,1,TE01%WaveTriggersName%,0,0,0,0,BD,53,2,TR02%WaveTriggersName%,0,0,0,0,A");
SetIniKey("Actions","TR02%WaveTriggersName%","6,107,1,TE02%WaveTriggersName%,0,0,0,0,AZ,107,1,TE02%WaveTriggersName%,0,0,0,0,BA,107,1,TE02%WaveTriggersName%,0,0,0,0,BB,107,1,TE02%WaveTriggersName%,0,0,0,0,BC,107,1,TE02%WaveTriggersName%,0,0,0,0,BD,53,2,TR03%WaveTriggersName%,0,0,0,0,A");
SetIniKey("Actions","TR03%WaveTriggersName%","6,107,1,TE03%WaveTriggersName%,0,0,0,0,AZ,107,1,TE03%WaveTriggersName%,0,0,0,0,BA,107,1,TE03%WaveTriggersName%,0,0,0,0,BB,107,1,TE03%WaveTriggersName%,0,0,0,0,BC,107,1,TE03%WaveTriggersName%,0,0,0,0,BD,53,2,TR04%WaveTriggersName%,0,0,0,0,A");
SetIniKey("Actions","TR04%WaveTriggersName%","6,107,1,TE04%WaveTriggersName%,0,0,0,0,AZ,107,1,TE04%WaveTriggersName%,0,0,0,0,BA,107,1,TE04%WaveTriggersName%,0,0,0,0,BB,107,1,TE04%WaveTriggersName%,0,0,0,0,BC,107,1,TE04%WaveTriggersName%,0,0,0,0,BD,53,2,TR05%WaveTriggersName%,0,0,0,0,A");
SetIniKey("Actions","TR05%WaveTriggersName%","6,107,1,TE05%WaveTriggersName%,0,0,0,0,AZ,107,1,TE05%WaveTriggersName%,0,0,0,0,BA,107,1,TE05%WaveTriggersName%,0,0,0,0,BB,107,1,TE05%WaveTriggersName%,0,0,0,0,BC,107,1,TE05%WaveTriggersName%,0,0,0,0,BD,53,2,TR06%WaveTriggersName%,0,0,0,0,A");
SetIniKey("Actions","TR06%WaveTriggersName%","6,107,1,TE06%WaveTriggersName%,0,0,0,0,AZ,107,1,TE06%WaveTriggersName%,0,0,0,0,BA,107,1,TE06%WaveTriggersName%,0,0,0,0,BB,107,1,TE06%WaveTriggersName%,0,0,0,0,BC,107,1,TE06%WaveTriggersName%,0,0,0,0,BD,53,2,TR07%WaveTriggersName%,0,0,0,0,A");
SetIniKey("Actions","TR07%WaveTriggersName%","6,107,1,TE07%WaveTriggersName%,0,0,0,0,AZ,107,1,TE07%WaveTriggersName%,0,0,0,0,BA,107,1,TE07%WaveTriggersName%,0,0,0,0,BB,107,1,TE07%WaveTriggersName%,0,0,0,0,BC,107,1,TE07%WaveTriggersName%,0,0,0,0,BD,53,2,TR08%WaveTriggersName%,0,0,0,0,A");
SetIniKey("Actions","TR08%WaveTriggersName%","6,107,1,TE08%WaveTriggersName%,0,0,0,0,AZ,107,1,TE08%WaveTriggersName%,0,0,0,0,BA,107,1,TE08%WaveTriggersName%,0,0,0,0,BB,107,1,TE08%WaveTriggersName%,0,0,0,0,BC,107,1,TE08%WaveTriggersName%,0,0,0,0,BD,53,2,TR09%WaveTriggersName%,0,0,0,0,A");
SetIniKey("Actions","TR09%WaveTriggersName%","6,107,1,TE09%WaveTriggersName%,0,0,0,0,AZ,107,1,TE09%WaveTriggersName%,0,0,0,0,BA,107,1,TE09%WaveTriggersName%,0,0,0,0,BB,107,1,TE09%WaveTriggersName%,0,0,0,0,BC,107,1,TE09%WaveTriggersName%,0,0,0,0,BD,53,2,TR10%WaveTriggersName%,0,0,0,0,A");
SetIniKey("Actions","TR10%WaveTriggersName%","5,107,1,TE10%WaveTriggersName%,0,0,0,0,AZ,107,1,TE10%WaveTriggersName%,0,0,0,0,BA,107,1,TE10%WaveTriggersName%,0,0,0,0,BB,107,1,TE10%WaveTriggersName%,0,0,0,0,BC,107,1,TE10%WaveTriggersName%,0,0,0,0,BD");

Message("脚本完成。接下来请进行非人性的调试…………感谢NB的PZY解析了所有函数……", "by 蜘蛛星云");

