#include "../PScriptLib/AsHelper.as"
// 炽雪城
int Rule = 3;
int RoundTime = 20;
int PlayerSpawn = 146;
int PlayerSpawnDir = 50;
int PlayerWeapon = 32;
int PlayerWeapon2 = 1;
int PlayerHP = 2000;


int trg0 = 0;
int trg1 = 0;
int trg2 = 0;
int trg3 = 0;
int trg4 = 0;
int trg5 = 0;
int trg6 = 0;
int trg7 = 0;
int trg8 = 0;
int trg9 = 0;
int trg10 = 0;
int trg11 = 0;
int trg12 = 0;
int timer0 = 0;
int timer1 = 0;
int timer2 = 0;
int timer3 = 0;
int timer4 = 0;
int timer5 = 0;
int gameover = 0;
int gameover1 = 0;
int gameover2 = 0;
int gameover3 = 0;
int gameover4 = 0;
int gameover5 = 0;
int now = 0;
int damn =0;
int damn1 =0;
int damn2 =0;   
int timer50 = 0;
int trg50 = 0;

void OnStart()
{
	string voiceFolder = "UserData/Voice/sn04/";
	AsSoundCacheFolder(voiceFolder);
	AsSetChatVoiceFolder(voiceFolder);
	
AddNPC("npc04_02");
AddNPC("npc04_03");
AddNPC("npc04_04");
AddNPC("npc04_05");

}

void OnUpdate()
{

	
	int player = GetAnyChar("player");
	if (player < 0)
	{
		player = 0;
	}
	
	int c;
	int c2;
	int flag;
	int c3;
	int c4;
	int c5;
	int c6;
	int c7;
	int c8;
	int c9;
	int c10;
	int c11;
	int c12;
	int c13;
		//跳过剧情↓
	if(trg50 == 0&&now>timer50)
{
 Say(1,"提示：按下K键可以快速跳过剧情。");
 trg50=1;
 timer50=now+1; 
}
if(trg50 == 1&&now>timer50&&trg0<=4&&trg0==1)
{
c2 = GetChar("钓鱼佬.甲");
 if (AsIsKeyPressed(ImGuiKey_K))
 {
 timer50=now+1;
 trg50=99;
 StopPerform(1);
   StopPerform(2);
 StopPerform(3);
  StopPerform(4);
   StopPerform(5);
    StopPerform(6);
	 StopPerform(7);
	  StopPerform(8);
	   StopPerform(9);
	   PlayerPerform("block", 0);
			trg0 = 1;
			timer0 = now + 2;
 }
}
	if (trg0 == 0&&now>timer1)
	{
		c = GetChar("小何");
		c2 = GetChar("律香川");
		c3 = GetChar("孙玉伯");
		c4 = GetChar("冯浩");
		c5 = GetChar("路漫天");
		c6 = GetChar("易潜龙");	        
		c7 = GetChar("player");	

		if(c2>0)
		{
		    // 修改 攻击力基础值
    CharSetBaseAttrib(3, CharAttrib_Attack, 120);
	 // 修改 速度基础值
	CharSetBaseAttrib(3, CharAttrib_Speed, 150);
	// 修改 防御基础值
	CharSetBaseAttrib(3, CharAttrib_Defense, 20);
	SetDisplayName(player, "犬组小陈");
	
	PlayerPerform("say", "（只是高老大和律香川勾结在一起......我会不会也成为一枚棋子呢？）");
	PlayerPerform("pause", 7);
	PlayerPerform("say", "（所幸的是，他还以为我就是他雇来刺杀孙玉伯的杀手，殊不知自己才是猎物......）");
	PlayerPerform("pause", 7);
	PlayerPerform("say", "（路漫天......此人暗器功夫不下于律香川，就算我混入孙府当中，也没有机会暗杀他！）");
	PlayerPerform("pause", 2);
		AsPerform(c5, "say", "殊不知这时候是反击的绝佳机会！");
		Perform(c5, "pause", 87);
		Perform(c5, "faceto",c2);	
		
		AsPerform(c2, "say", "犬组小陈正好是鲁东世家的人，可以为此效力。");
		Perform(c2, "pause", 5);
		AsPerform(c2, "say", "我认为，这是个恢复孙府元气的大好机会。");
		Perform(c2, "pause", 9);
		AsPerform(c2, "say", "金人传来邀请，若我们能将鲁东的物资通过渤海运往辽东......任何条件都能答应。");
		Perform(c2, "pause", 5);
		AsPerform(c2, "say", "飞鹏帮的镖客已经在协助晋商走私军资......");
		Perform(c2, "pause", 18);
		AsPerform(c2, "say", "这么寒冷的天气，又不知要冻死多少人。");
		Perform(c2, "faceto",c3);
		Perform(c2, "pause", 4);
		
		AsPerform(c3, "say", "不错......");
		Perform(c3, "pause", 15);
		AsPerform(c3, "say", "可如今成钢、韩棠、老刀、孙剑都走了......想必万鹏王现在已经得意极了！");
		Perform(c3, "pause", 8);
		AsPerform(c3, "say", "我带着大家从塞北来到江南，便是不愿看着大家再次卷入战火。");
		Perform(c3, "pause", 16);
		AsPerform(c3, "say", "不可，目前朝廷气数未尽，我们不必造作。况且，金人甚至比杀良冒功的明军还要残暴，巴结他们不过是搬石砸脚。");
		Perform(c3, "pause", 39);
		AsPerform(c3, "say", "若是孙剑还在，定要将锦衣貂裘分与众人......只可惜孙剑走了，我们在朝廷中的朋友少了许多。");
		Perform(c3, "pause", 9);
		AsPerform(c3, "say", "原来江南也是有雪的。");
		Perform(c3, "faceto",c7);
		Say(1,"提示：按下K键可以快速跳过剧情。");
        trg0= 1;
        timer0 = now+60;//这里设置成60正好。		
        }
}
	if (trg0 == 1&&now>timer0)
	{
		c = GetChar("小何");
		c2 = GetChar("律香川");
		c3 = GetChar("孙玉伯");
		c4 = GetChar("冯浩");
		c5 = GetChar("路漫天");
		c6 = GetChar("易潜龙");	        
		c7 = GetChar("player");	

		if(c3>0)
		{
        AddNPC("npc04_01");

		ChangeBehavior(c, "idle");
		Perform(c5, "guard",300);
		Perform(c4, "guard",300);
		ChangeBehavior(c2, "idle");
		trg0= 2;
		timer0=now+1;
	
        }
}
		if (trg0 == 2&&now>timer0)
	{
		c = GetChar("小何");
		c2 = GetChar("律香川");
		c3 = GetChar("孙玉伯");
		c4 = GetChar("冯浩");
		c5 = GetChar("路漫天");
		c6 = GetChar("易潜龙");	        
		c7 = GetChar("player");	

		if(c3>0)
		{
		Perform(c2, "guard",300);
		AsPerform(c2, "say", "老伯，此人或许携带暗器，您不必冒险。");
		Perform(c2, "pause", 31);
		Perform(c2, "faceto",c);
		AsPerform(c2, "say", "何人？");
		
		AsPerform(c3, "say", "这个年轻人说的对！我确实老了。我也是时候该活动活动筋骨，学学你们年轻人的风范了！");
		Perform(c3, "pause", 6);
		Perform(c3, "aggress");
		AsPerform(c3, "say", "好，有志气！");
		Perform(c3, "pause", 8);
		AsPerform(c3, "say", "说得好，请问侠客尊姓大名？");
		Perform(c3, "pause", 19);
		Perform(c3, "faceto",c);
		
        AsPerform(c, "say", "我今天，就是来光明正大挑战你孙玉伯的！");
		Perform(c, "pause", 9);
		AsPerform(c, "say", "我姓何！");
		Perform(c, "pause", 16);
		Perform(c, "aggress");
		AsPerform(c, "say", "哈哈哈，我当孙玉伯是什么人物呢！想不到竟是个求田问舍的缩头乌龟，如今到了暮年连冒险的勇气都没有了！");
		Perform(c, "faceto",c3);
		Perform(c, "pause", 2);
		PlayerPerform("block", 0);
	PlayerPerform("say", "（小何？！挑战孙玉伯？！）");
	PlayerPerform("pause", 25);
		PlayerPerform("block", 1);
		PlayerPerform("guard", 30);
		trg0= 3;
		timer0=now+30;
        }
}
		if (trg0 == 3 && now>timer0)
{
		c = GetAnyChar("小何");
		c2 = GetAnyChar("律香川");
		c3 = GetChar("孙玉伯");
		c4 = GetChar("冯浩");
		c5 = GetChar("路漫天");
		c6 = GetChar("易潜龙");	        
		c7 = GetChar("player");	

		if(c>0)
		{
		Perform(c, "say", "我姓何......");
		Perform(c, "pause", 5);		
		ChangeBehavior(c, "kill",c3);
        ChangeBehavior(c3, "kill",c);
		Perform(c3, "pause", 1);
		Perform (c3, "use", 8);
		trg0= 4;
		timer0=now+5;
        }
}
		if (trg0 == 4 && now>timer0)
{
		c = GetAnyChar("小何");
		c2 = GetAnyChar("律香川");
		c3 = GetChar("孙玉伯");
		c4 = GetChar("冯浩");
		c5 = GetChar("路漫天");
		c6 = GetChar("易潜龙");	        
		c7 = GetChar("player");	

		if(!IsAlive(c))
		{		
        		
		ChangeBehavior(c3, "idle");		
		AsPerform(c3, "say", "香川，你去安排这件事。");
		Perform(c3, "pause", 9);
		AsPerform(c3, "say", "若撬不开他的嘴，那就放他回去吧，查一查幕后主使是谁。");
		Perform(c3, "pause", 12);
		AsPerform(c3, "say", "若你是老百姓，我会夸赞你天真无邪，只可惜你身在江湖，性格未免有些狂妄！");
		trg0= 5;
		trg10 = 1;
		timer0=now+22;
		timer4=now+15;
        }
}
if (trg10 == 1 && now>timer4)
{
c = GetAnyChar("小何");
{RemoveNPC(c);
trg10=2;}
}
		if (trg0 == 5 && now>timer0)
{
		c = GetAnyChar("小何");
		c2 = GetAnyChar("律香川");
		c3 = GetChar("孙玉伯");
		c4 = GetChar("冯浩");
		c5 = GetChar("路漫天");
		c6 = GetChar("易潜龙");	        
		c7 = GetChar("player");	

		if(c7>0)
		{
		RemoveNPC(c3);
		RemoveNPC(c6);
		RemoveNPC(c5);
		RemoveNPC(c4);
		RemoveNPC(c2);		
		AddNPC("npc04_07");
		AddNPC("npc04_08");
		AddNPC("npc04_09");
		AddNPC("npc04_10");
		trg0= 6;

		timer0=now+3;
        }
}
		if (trg0 == 6 && now>timer0)
{
		c = GetChar("小何");
		c2 = GetChar("律香川");
		c3 = GetChar("孙玉伯");
		c4 = GetChar("冯浩");
		c5 = GetChar("路漫天");
		c6 = GetChar("易潜龙");	        
		c7 = GetChar("player");	
		c8 = GetChar("鹰组高手.甲");	
        c9 = GetChar("鹰组高手.乙");
		c10 = GetChar("鹰组高手.丙");
		SetTarget(2, "waypoint", 143);
		if(c>0)
		{
		ChangeBehavior(c, "attacktarget", 2, 1);
		ChangeBehavior(c, "attacktarget", 2, 1);
		ChangeBehavior(c, "attacktarget", 2, 1);
        ChangeBehavior(c, "attacktarget", 2, 1);				
		ChangeBehavior(c, "attacktarget", 2, 1);
		Perform(c8, "faceto",c);
		Perform(c9, "faceto",c);
		Perform(c10, "faceto",c);
	PlayerPerform("say", "律香川安排我来追踪小何......或许......我可以替小何除掉他们。");
	PlayerPerform("pause", 5);
	PlayerPerform("say", "可恶，鹰组的斥候正在追踪小何，若此时令小何脱身，必定会使高老大暴露！");
	PlayerPerform("pause", 5);
		AsPerform(c, "say", "哈哈，我果然逃出来了！");
			CharSetBaseAttrib(6, CharAttrib_Speed, 100);
			CharSetBaseAttrib(6, CharAttrib_Attack, 450);
			CharSetBaseAttrib(6, CharAttrib_Defense, -15);
		trg0= 7;
		timer0=now+4;
        }
}
		if (trg0 == 7 && now>timer0)
{
		c = GetChar("小何");
		c2 = GetChar("律香川");
		c3 = GetChar("孙玉伯");
		c4 = GetChar("冯浩");
		c5 = GetChar("路漫天");
		c6 = GetChar("易潜龙");	        
		c7 = GetChar("player");	
		c8 = GetChar("鹰组高手.甲");	
        c9 = GetChar("鹰组高手.乙");
		c10 = GetChar("鹰组高手.丙");
		SetTarget(2, "waypoint", 143);
		if(c>0)
		{
		ChangeBehavior(c, "attacktarget", 2, 1);
		ChangeBehavior(c, "attacktarget", 2, 1);
		ChangeBehavior(c, "attacktarget", 2, 1);
        ChangeBehavior(c, "attacktarget", 2, 1);		
		ChangeBehavior(c, "attacktarget", 2, 1);
		trg0=7;
		timer0=now+6;
        }
}
		if (trg0 == 7 && trg4<1)
{
		c = GetChar("小何");
		c2 = GetChar("律香川");
		c3 = GetChar("孙玉伯");
		c4 = GetChar("冯浩");
		c5 = GetChar("路漫天");
		c6 = GetChar("易潜龙");	        
		c7 = GetChar("player");	
		c8 = GetChar("鹰组高手.甲");	
        c9 = GetChar("鹰组高手.乙");
		c10 = GetChar("鹰组高手.丙");
		SetTarget(1, "char", c7);
		SetTarget(3, "char", c8);
		SetTarget(4, "char", c9);
		SetTarget(5, "char", c10);
		SetTarget(9, "char", c);
		if (Distance(1, 9) < 300)
			{
        AsPerform(c, "say", "谁？可恶，我和你拼了！");
		Perform(c, "faceto",c7);	
		trg6= 1;
		timer5=now+5;
		trg7= 1;
		trg0 =8;
			}
}		
		if (trg6 == 1 && now>timer5)
{
		c = GetChar("小何");
		c2 = GetChar("律香川");
		c3 = GetChar("孙玉伯");
		c4 = GetChar("冯浩");
		c5 = GetChar("路漫天");
		c6 = GetChar("易潜龙");	        
		c7 = GetChar("player");	
		c8 = GetChar("鹰组高手.甲");	
        c9 = GetChar("鹰组高手.乙");
		c10 = GetChar("鹰组高手.丙");
		SetTarget(1, "char", player);
		SetTarget(3, "char", c8);
		SetTarget(4, "char", c9);
		SetTarget(5, "char", c10);
		SetTarget(10, "char", c);

gameover = -1;
}		

		if (trg1 == 0 && now>timer1)
{
		c = GetChar("小何");
		c2 = GetChar("律香川");
		c3 = GetChar("孙玉伯");
		c4 = GetChar("冯浩");
		c5 = GetChar("路漫天");
		c6 = GetChar("易潜龙");	        
		c7 = GetChar("player");	
		c8 = GetChar("鹰组高手.甲");	
        c9 = GetChar("鹰组高手.乙");
		c10 = GetChar("鹰组高手.丙");
		SetTarget(1, "char", player);
		SetTarget(3, "char", c8);
		SetTarget(4, "char", c9);
		SetTarget(5, "char", c10);
		if (Distance(3, 1) < 300&& c8>0)
			{
        ChangeBehavior(c8, "kill", c7);
        Perform(c8, "say", "谁？");
		Perform(c8, "pause", 1);
		Perform(c8, "faceto",c7);
		SetTeam(c8, 2);
	    Perform (c8, "use", 2);
		Perform (c8, "use", 1);
		Perform (c8, "use", 1);
		Perform (c8, "use", 2);
		PlayerPerform("say", "（轻点一下此人后肩，语气笑嘻）兄弟！");		
		trg1= 1;
		timer1=now+5;
	
			}
}			
if (damn == 1 && now>timer1)
{
		c = GetChar("小何");
		c2 = GetChar("律香川");
		c3 = GetChar("孙玉伯");
		c4 = GetChar("冯浩");
		c5 = GetChar("路漫天");
		c6 = GetChar("易潜龙");	        
		c7 = GetChar("player");	
		c8 = GetChar("鹰组高手.甲");	
        c9 = GetChar("鹰组高手.乙");
		c10 = GetChar("鹰组高手.丙");
		
		if (IsAlive(c8))
		{

}
}
		if (trg2 == 0 && now>timer1)
{
		c = GetChar("小何");
		c2 = GetChar("律香川");
		c3 = GetChar("孙玉伯");
		c4 = GetChar("冯浩");
		c5 = GetChar("路漫天");
		c6 = GetChar("易潜龙");	        
		c7 = GetChar("player");	
		c8 = GetChar("鹰组高手.甲");	
        c9 = GetChar("鹰组高手.乙");
		c10 = GetChar("鹰组高手.丙");
		SetTarget(1, "char", player);
		SetTarget(3, "char", c8);
		SetTarget(4, "char", c9);
		SetTarget(5, "char", c10);
		if (Distance(4, 1) < 300&& c9>0)
			{
        ChangeBehavior(c9, "kill", c7);
        Perform(c9, "say", "谁？");
		Perform(c9, "pause", 1);
		Perform(c9, "faceto",c7);
		SetTeam(c9, 2);
		Perform (c9, "use", 2);
		Perform (c9, "use", 1);
		Perform (c9, "use", 1);
		Perform (c9, "use", 2);
		PlayerPerform("say", "（轻点一下此人后肩，语气笑嘻）兄弟！");
		trg2= 1;
		timer1=now+5;
			}
}			
if (damn1 == 1 && now>timer1)
{
		c = GetChar("小何");
		c2 = GetChar("律香川");
		c3 = GetChar("孙玉伯");
		c4 = GetChar("冯浩");
		c5 = GetChar("路漫天");
		c6 = GetChar("易潜龙");	        
		c7 = GetChar("player");	
		c8 = GetChar("鹰组高手.甲");	
        c9 = GetChar("鹰组高手.乙");
		c10 = GetChar("鹰组高手.丙");
		
		if (IsAlive(c9))
		{

}
}
		if (trg3 == 0 && now>timer1)
{
		c = GetChar("小何");
		c2 = GetChar("律香川");
		c3 = GetChar("孙玉伯");
		c4 = GetChar("冯浩");
		c5 = GetChar("路漫天");
		c6 = GetChar("易潜龙");	        
		c7 = GetChar("player");	
		c8 = GetChar("鹰组高手.甲");	
        c9 = GetChar("鹰组高手.乙");
		c10 = GetChar("鹰组高手.丙");
		SetTarget(1, "char", player);
		SetTarget(3, "char", c8);
		SetTarget(4, "char", c9);
		SetTarget(5, "char", c10);
		if (Distance(5, 1) < 300&& c10>0)
			{

        Perform(c10, "guard",300);
        Perform(c10, "say", "谁？");
		Perform(c10, "pause", 1);
		Perform(c10, "faceto",c7);
		SetTeam(c10, 2);
		PlayerPerform("say", "（轻点一下此人后肩，语气笑嘻）兄弟！");
		trg3= 1;
		timer1=now+5;	
	    damn =1;	
			}
}			
if (damn == 1 && now>timer1)
{
		c = GetChar("小何");
		c2 = GetChar("律香川");
		c3 = GetChar("孙玉伯");
		c4 = GetChar("冯浩");
		c5 = GetChar("路漫天");
		c6 = GetChar("易潜龙");	        
		c7 = GetChar("player");	
		c8 = GetChar("鹰组高手.甲");	
        c9 = GetChar("鹰组高手.乙");
		c10 = GetChar("鹰组高手.丙");
		damn2 = 2;
		if (IsAlive(c10))
		{
PlayerPerform("say", "不好，被发现了！");
gameover = -1;
}
}

		if (trg4 == 0 && damn2 ==2)
{
		c = GetChar("小何");
		c2 = GetChar("律香川");
		c3 = GetChar("孙玉伯");
		c4 = GetChar("冯浩");
		c5 = GetChar("路漫天");
		c6 = GetChar("易潜龙");	        
		c7 = GetChar("player");	
		c8 = GetChar("鹰组高手.甲");	
        c9 = GetChar("鹰组高手.乙");
		c10 = GetChar("鹰组高手.丙");
		c11 = GetChar("虎组高手.甲");
		SetTarget(1, "char", player);
		SetTarget(3, "char", c8);
		SetTarget(4, "char", c9);
		SetTarget(5, "char", c10);
		if (!IsAlive(c8)&&!IsAlive(c9)&&!IsAlive(c10))
			{
		AddNPC("npc04_02");
		AddNPC("npc04_11");
		AddNPC("npc04_12");
		AddNPC("npc04_13");
		AddNPC("npc04_14");

		trg4 =1;timer2= now+1;
			}
}		
		if (trg4 == 1&&now>timer2)
{
		c = GetChar("小何");
		c2 = GetChar("律香川");
		c12 = GetChar("鹰组高手.丁");
		c4 = GetChar("冯浩");
		c5 = GetChar("路漫天");
		c6 = GetChar("易潜龙");	        
		c7 = GetChar("player");	
		c8 = GetChar("鹰组高手.甲");	
        c9 = GetChar("鹰组高手.乙");
		c10 = GetChar("鹰组高手.丙");
		c11 = GetChar("虎组高手.甲");
		SetTarget(1, "char", player);
		SetTarget(3, "char", c8);
		SetTarget(4, "char", c9);
		SetTarget(5, "char", c10);
		if (c7>0)
			{
			CharSetBaseAttrib(2, CharAttrib_Speed, 200);
			CharSetBaseAttrib(2, CharAttrib_Attack, 300);
			CharSetBaseAttrib(2, CharAttrib_Defense, 30);
			Perform(c12, "faceto",c);
			Perform(c4, "faceto",c);
			Perform(c11, "faceto",c);
						CharSetBaseAttrib(6, CharAttrib_Speed, 10);
			CharSetBaseAttrib(6, CharAttrib_Attack, -15);
			CharSetBaseAttrib(6, CharAttrib_Defense, -15);
			
			PlayerPerform("say", "不好，要为小何解围！");
			PlayerPerform("pause", 5);
						SetTeam(c7, 2);
						SetTeam(c2, 2);
			ChangeBehavior(c2, "follow",c);
			Perform(c2, "pause", 18);
			ChangeBehavior(c12, "follow",c);
Perform(c12, "pause", 9);
ChangeBehavior(c4, "follow",c);
Perform(c4, "pause", 9);
ChangeBehavior(c11, "follow",c);
Perform(c11, "pause", 9);
            ChangeBehavior(c5, "follow",c);
			AsPerform(c5, "say", "从哪来的新兵蛋子，刀都能挥错方向......是敌是友...！！！");
			Perform(c5, "pause", 7);
			AsPerform(c5, "say", "所以......你必须死！");
			Perform(c5, "pause", 7);
			AsPerform(c5, "say", "除了打草惊蛇，毫无作用！若是放你回去，定会牵连我们。");			
			Perform(c5, "pause", 8);
			AsPerform(c5, "say", "真想不到高寄萍竟然派出你这种蠢货来刺杀孙玉伯！");
			Perform(c5, "faceto",c);
		trg4 =2;timer2= now+18;
			}
}				
		if (trg4 == 2&&now>timer2)
{
		c = GetChar("小何");
		c2 = GetChar("律香川");
		c12 = GetChar("鹰组高手.丁");
		c4 = GetChar("冯浩");
		c5 = GetChar("路漫天");
		c6 = GetChar("易潜龙");	        
		c7 = GetChar("player");	
		c8 = GetChar("鹰组高手.甲");	
        c9 = GetChar("鹰组高手.乙");
		c10 = GetChar("鹰组高手.丙");
		c11 = GetChar("虎组高手.甲");
		SetTarget(1, "char", player);
		SetTarget(3, "char", c8);
		SetTarget(4, "char", c9);
		SetTarget(5, "char", c10);
		if (c7>0)
			{
ChangeBehavior(c12, "follow",c);
ChangeBehavior(c4, "follow",c);
ChangeBehavior(c5, "follow",c);
ChangeBehavior(c11, "follow",c);
		trg4 =3;timer2 = now+2;
			}
}	
		if (trg4 == 3&&now>timer2)
   {
		c = GetChar("小何");
		c2 = GetChar("律香川");
		c12 = GetChar("鹰组高手.丁");
		c4 = GetChar("冯浩");
		c5 = GetChar("路漫天");
		c6 = GetChar("易潜龙");	        
		c7 = GetChar("player");	
		c8 = GetChar("鹰组高手.甲");	
        c9 = GetChar("鹰组高手.乙");
		c10 = GetChar("鹰组高手.丙");
		c11 = GetChar("虎组高手.甲");
		SetTarget(1, "char", player);
		SetTarget(3, "char", c8);
		SetTarget(4, "char", c9);
		SetTarget(5, "char", c10);
		SetTarget(6, "char", c2);
		SetTarget(7, "char", c5);
		if (c7>0)
			{
ChangeBehavior(c2, "follow",c);
		    // 修改 攻击力基础值
    CharSetBaseAttrib(3, CharAttrib_Attack, 0);
	 // 修改 速度基础值
	CharSetBaseAttrib(3, CharAttrib_Speed, 0);
		trg4 =4;
			}
    }	
	


		if (trg4 == 3&&now>timer2)
   {
		c = GetChar("小何");
		c2 = GetChar("律香川");
		c12 = GetChar("鹰组高手.丁");
		c4 = GetChar("冯浩");
		c5 = GetChar("路漫天");
		c6 = GetChar("易潜龙");	        
		c7 = GetChar("player");	
		c8 = GetChar("鹰组高手.甲");	
        c9 = GetChar("鹰组高手.乙");
		c10 = GetChar("鹰组高手.丙");
		c11 = GetChar("虎组高手.甲");
		SetTarget(1, "char", player);
		SetTarget(3, "char", c8);
		SetTarget(4, "char", c9);
		SetTarget(5, "char", c10);
		SetTarget(6, "char", c2);
		SetTarget(7, "char", c5);
		if (c7>0)
			{
ChangeBehavior(c2, "follow",c);
		    // 修改 攻击力基础值
    CharSetBaseAttrib(3, CharAttrib_Attack, 0);
	 // 修改 速度基础值
	CharSetBaseAttrib(3, CharAttrib_Speed, 0);
		trg4 =4;
			}
    }	
	
		if (trg4 == 4&&now>timer2)
{
		c = GetChar("小何");
		c2 = GetChar("律香川");
		c12 = GetChar("鹰组高手.丁");
		c4 = GetChar("冯浩");
		c5 = GetChar("路漫天");
		c6 = GetChar("易潜龙");	        
		c7 = GetChar("player");	
		c8 = GetChar("鹰组高手.甲");	
        c9 = GetChar("鹰组高手.乙");
		c10 = GetChar("鹰组高手.丙");
		c11 = GetChar("虎组高手.甲");
		SetTarget(1, "char", player);
		SetTarget(3, "char", c8);
		SetTarget(4, "char", c9);
		SetTarget(5, "char", c10);
		SetTarget(6, "char", c2);
		SetTarget(7, "char", c5);
		if (Distance(6, 7) < 500)
			{
ChangeBehavior(c12, "follow",c2);
ChangeBehavior(c4, "follow",c5);
ChangeBehavior(c5, "follow",c2);
ChangeBehavior(c11, "follow",c2);
ChangeBehavior(c2, "follow",c);
			SetTeam(c2, 2);
			SetTeam(c4, 2);
			Perform(c5, "faceto",2);
	AsPerform(c5, "say", "冯浩竟然是你的人！");	
Perform(c5, "pause", 5);	
Perform(c4, "say", "......");			
Perform(c4, "pause", 3);
AsPerform(c2, "say", "舅父，你不该心急的。");
	PlayerPerform("say", "（路漫天已是必死之人，或许趁乱是个协助小何脱身的机会！）");
	PlayerPerform("pause", 10);


		trg4 =5;
			}
}			

		if (trg4 == 5&&now>timer2)
{
		c = GetChar("小何");
		c2 = GetChar("律香川");
		c12 = GetChar("鹰组高手.丁");
		c4 = GetChar("冯浩");
		c5 = GetChar("路漫天");
		c6 = GetChar("易潜龙");	        
		c7 = GetChar("player");	
		c8 = GetChar("鹰组高手.甲");	
        c9 = GetChar("鹰组高手.乙");
		c10 = GetChar("鹰组高手.丙");
		c11 = GetChar("虎组高手.甲");
		SetTarget(1, "char", player);
		SetTarget(3, "char", c8);
		SetTarget(4, "char", c9);
		SetTarget(5, "char", c10);
		SetTarget(6, "char", c2);
		SetTarget(7, "char", c5);
		if (!IsAlive(c5))
			{

PlayerPerform("say", "（可恶......路漫天一死，局面便获得控制，我和小何没有了脱身的机会！）");
gameover = 1;
		trg4 =6;
			}
					if (!IsAlive(c))
			{

PlayerPerform("say", "小何！");
gameover = 1;
		trg4 =6;
			}
}						
	now = GetGameTime();	
	
	if (gameover==0 && GetHP(player)==0)
	{
		gameover = -1;
		timer0 = now + 2; 
	}
	if ((gameover==1 || gameover==-1) && now>timer0)
	{
		GameOver(gameover);
		gameover = 2;
	}	
}