comment
{
  function
  {
	func_call="PopFightSelUnitMenu()";
  }
}

comment
{
  WorldRunMode="B10",0; //取消世界系统的控制
}

comment
{
 screen
 {
  mode=0;
  color=0;
  dstframe=0xff;
  speed=3;
 }
}

comment
{
 function
 {
  func_call="BeginFight()";
  threadLV=2;
 }
}

comment
{
  GameSystemMode="B101",1;
}

comment
{
  getunit
  {
	id=0;
	team=0;
  }
  unitctrl
  {
	setpt=160,30,-4600;
	lookdir=0,0,1000;
  }
  camera
  {
	lookpt=0,80,0,1;
	roll=0.4;
	yaw=-0.7,0.7,0.001;
	distance=-400;
	swing=1;
  }
}

comment
{
  getunit
  {
	id=0;
	team=1;
  }
  unitctrl
  {
	setpt=160,30,-3500;
	lookdir=0,0,-1000;
  }
}

comment
{
  getunit
  {
	id=1;
	team=1;
  }
  unitctrl
  {
	setpt=-15,30,-3200;
	lookdir=0,0,-1000;
  }
}

comment
{
  getunit
  {
	id=2;
	team=1;
  }
  unitctrl
  {
	setpt=330,30,-3200;
	lookdir=0,0,-1000;
  }
}

comment
{
  wait=1; //重置人物位置时会有个落地动作，最好等一等。
}

comment
{
 screen
 {
  dstframe=0;
  speed=10;
  swing=1;
 }
}

comment
{
  bgm
  {
	file="DATA\Music\Boss.wav";
	play=2;
  }
}

comment
{
  getunit
  {
	id=0;
	team=1;
  }
  unitctrl
  {
	gotopt=160,30,-4200;
	moving=1;
  }
}

comment
{
  getunit
  {
	id=0;
	team=1;
  }

  dialogue
  {
	talk="你们竟然敢袭击我的部下！";
  }
  wait=3;
}

comment
{
  dialogue
  {
	talk="还收留我军的叛徒!";
  }
  wait=3;
}

comment
{
  dialogue
  {
	talk="你好大的胆，我绝饶不了你!";
  }
  wait=3;
}

comment
{
  dialogue
  {
	talk="给我上~~~！";
	lifetime=4;
  }
  unitctrl
  {
	motact="DATA\Character\Motion\StuntSwordShuai.mot";
  }
}

comment
{
  getunit
  {
	id=1;
	team=1;
  }
  unitctrl
  {
	gotopt=-15,30,-4100;
	swing=1;
	setST=0x1000,10;
  }
}

comment
{
  getunit
  {
	id=2;
	team=1;
  }
  unitctrl
  {
	gotopt=330,30,-4100;
	swing=1;
	setST=0x1000,10;
  }
}

comment
{
  wait=1;
}

comment
{
  anima3ds
  {
	file="DATA\SysMenu\DiTM$2.3DS";
  }
}

comment
{
  GameSystemMode="B101",0;
  return;
}


#BOOKMARK_WIN://———————————————————————————————————
comment
{
  wait=5;
}

comment
{
  menu
  {
	popmenu="战斗结束";
	swing=0;
  }
  bgm
  {
	file="DATA\SysMenu\StageClear.wav";
	play=1;
  }
  GameSystemMode="B101",1;
}

comment
{
  getunit
  {
	id=0;
	team=0;
	NPC="B10";
	SelResult=1;
  }
}

comment
{
  getunit
  {
	id=1;
  }
}
comment
{
  happenGoto
  {
	IsNoFighting=1; //被打倒的跳过
	goto="";
  }
  camera
  {
	lookpt=0,80,0,1;
	swing=1;
  }
  dialogue
  {
	talk="饶了我吧，我愿意投降！";
  }
  unitctrl
  {
	setST=0;
	lookpt=0,0,0,1;
	times=12;
	swing=1;
  }
  function
  {
	func_call="ChangeTeam(0)";
  }
  wait=4;
}

comment
{
  getunit
  {
	id=2;
  }
}
comment
{
  happenGoto
  {
	IsNoFighting=1; //被打倒的跳过
	goto="";
  }
  camera
  {
	lookpt=0,80,0,1;
	swing=1;
  }
  dialogue
  {
	talk="我愿投降，请饶我一命！";
  }
  unitctrl
  {
	setST=0;
	lookpt=0,0,0,1;
	times=12;
	swing=1;
  }
  function
  {
	func_call="ChangeTeam(0)";
  }
  wait=4;
}

comment
{
  getunit
  {
	id=3;
  }
}
comment
{
  happenGoto
  {
	IsNoFighting=1; //被打倒的跳过
	goto="";
  }
  camera
  {
	lookpt=0,80,0,1;
	swing=1;
  }
  dialogue
  {
	talk="我愿意投诚！";
  }
  unitctrl
  {
	setST=0;
	lookpt=0,0,0,1;
	times=12;
	swing=1;
  }
  function
  {
	func_call="ChangeTeam(0)";
  }
  wait=4;
}

comment
{
  getunit
  {
	id=4;
  }
}
comment
{
  happenGoto
  {
	IsNoFighting=1; //被打倒的跳过
	goto="";
  }
  camera
  {
	lookpt=0,80,0,1;
	swing=1;
  }
  dialogue
  {
	talk="我同意归顺，从今往后不再为北军效力！";
  }
  unitctrl
  {
	setST=0;
	lookpt=0,0,0,1;
	times=12;
	swing=1;
  }
  function
  {
	func_call="ChangeTeam(0)";
  }
  wait=4;
}

comment
{
  getunit
  {
	id=5;
  }
}
comment
{
  happenGoto
  {
	IsNoFighting=1; //被打倒的跳过
	goto="";
  }
  camera
  {
	lookpt=0,80,0,1;
	swing=1;
  }
  dialogue
  {
	talk="我愿意归顺，不再效命于北军！";
  }
  unitctrl
  {
	setST=0;
	lookpt=0,0,0,1;
	times=12;
	swing=1;
  }
  function
  {
	func_call="ChangeTeam(0)";
  }
  wait=4;
}

comment
{
  getunit
  {
	id=0;
	team=0;
	NPC="B10";
  }
  camera
  {
	lookpt=0,80,0,1;
	swing=1;
  }
  dialogue
  {
	talk="很好，欢迎你们的投诚。";
	lifetime=4;
  }
  wait=4;
}

comment
{
  function
  {
	func_call="SetExitTime(100)";
  }
  GameSystemMode="B101",0;
  nextStage=""; //默认+1
  return;
}

#BOOKMARK_LOSE://———————————————————————————————————
comment
{
  wait=5;
}

comment
{
  msglist
  {
	strings="战斗失利~~~！";
	color=0xffffffff,0xffffffff,0xffff0000,0xffff0000;
	outlinecolor=0x770000ff;
	waittime=5;
	soundID=10;
	type=1;
	fontID=2;
  }
  menu
  {
	popmenu="战斗结束";
	swing=0;
  }
  GameSystemMode="B101",0;
  wait=4;
}

comment
{
  goto="EXIT";
}

#BOOKMARK_EXIT://———————————————————————————————————
comment
{
  screen
  {
	mode=0;
	color=0;
	dstframe=0xff;
	speed=5;
  }
  bgcolor=0;
}

comment
{
  function
  {
	func_call="StartWorldMap()";
	threadLV=2;
  } 
}

comment
{
  screen
  {
	dstframe=0;
	speed=15;
  }
}

comment
{
  function
  {
	func_call="PlaySceneBGM()";
  }
  return;
}
