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;
  wait=1; //重置人物位置时会有个落地动作，最好等一等。
}

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

comment
{
  getunit
  {
	id=1;
	team=0;
  }
  unitctrl
  {
	setWUST=0x1000,1;
  }
}

comment
{
  getunit
  {
	id=2;
	team=0;
  }
  unitctrl
  {
	setWUST=0x1000,1;
  }
}

comment
{
  getunit
  {
	team=0;
	NPC="B1";
  }
  unitctrl
  {
	setpt_vide="V02";
	setdir_vide="V02";
	setST=0x1000000,3;
  }
}

comment
{
  camera
  {
	lookpt_vide="V07";
	roll=0.4;
	yaw=1.7,1.3,0.0002;
	distance=-700;
	swing=1;
  }
}

comment
{
  getunit
  {
	id=0;
	team=1;
  }
  unitctrl
  {
	setpt_vide="V06";
	setdir_vide="V06";
  }
}

comment
{
  getunit
  {
	id=1;
	team=1;
  }
  unitctrl
  {
	setpt_vide="V05";
	setdir_vide="V05";
  }
}

comment
{
  getunit
  {
	id=2;
	team=1;
  }
  unitctrl
  {
	setpt_vide="V04";
	setdir_vide="V04";
  }
}

comment
{
  getunit
  {
	id=3;
	team=1;
  }
  unitctrl
  {
	setpt_vide="V03";
	setdir_vide="V03";
  }
}

comment
{
  getunit
  {
	id=7;
	team=1;
  }
  unitctrl
  {
	setpt_vide="V07";
	setdir_vide="V07";
  }
}

comment
{
  screen
  {
	dstframe=0;
	speed=10;
  }
  wait=3;
}

comment
{
  getunit
  {
	id=7;
	team=1;
  }
  unitctrl
  {
	gotopt_vide="V08";
	moving=1;
  }
}

comment
{
  unitctrl
  {
	motact="DATA\Character\Motion\KickBoyL.mot";
  }
}

comment
{
  WaitActionKey=0x7fff;
}

comment
{
  getunit
  {
	team=0;
	NPC="B1";
  }
  unitctrl
  {
	motact="DATA\Character\Motion\KO00Girl.mot";
	motkey=0,40;
	motloop=40,40;
  }
  sound
  {	
	file="DATA\Character\Effect\GShock.wav";
  }
}

comment
{
  getunit
  {
	id=7;
	team=1;
  }
  wait=2;
}

comment
{
  getunit
  {
	team=0;
	NPC="B1";
	SelResult=1;
  }
  unitctrl
  {
	gotopt=10,30,0,1;
	moving=1;
  }
}

comment
{
  unitctrl
  {
	motact="DATA\Character\Motion\PickBoy.mot";
  }
}

comment
{
  WaitActionKey=0x7fff;
}

comment
{
  unitctrl
  {
	setTarget=0;
	motact="DATA\Character\MotionDrama\KangZou_A.mot";
	gotopt_vide="V09";
	moving=1;
	swing=1;
  }
  sound
  {	
	file=".\Ban.wav";
  }
  wait=2;
}

comment
{
  getunit
  {
	id=0;
	team=1;
  }
  unitctrl
  {
	gotopt_vide="V09";
	moving=1;
	swing=1;
  }
}

comment
{
  getunit
  {
	id=1;
	team=1;
  }
  unitctrl
  {
	gotopt_vide="V09";
	moving=1;
	swing=1;
  }
}

comment
{
  getunit
  {
	id=2;
	team=1;
  }
  unitctrl
  {
	gotopt_vide="V09";
	moving=1;
	swing=1;
  }
}

comment
{
  getunit
  {
	id=3;
	team=1;
  }
  unitctrl
  {
	gotopt_vide="V09";
	moving=1;
	swing=1;
  }
}

comment
{
  wait=5;
}

comment
{
  getunit
  {
	id=0;
	team=1;
  }
  unitctrl
  {
	setpt_vide="V01";
	setdir_vide="V01";
	moving=0;
	setAIMode=1,3600;
  }
}
comment
{
  unitctrl
  {
	motact="DATA\Character\motion\StandSword03.mot";
	motkey=0,50;
	motloop=0,50;
	motpriority=3;
  }
}

comment
{
  getunit
  {
	id=1;
	team=1;
  }
  unitctrl
  {
	moving=0;
	setWUST=0x1000,1;
  }
}

comment
{
  getunit
  {
	id=2;
	team=1;
  }
  unitctrl
  {
	setpt_vide="V13";
	setdir_vide="V13";
	moving=0;
	setAIMode=1,30;
  }
}
comment
{
  getunit
  {
	id=3;
	team=1;
  }
  unitctrl
  {
	setpt_vide="V14";
	setdir_vide="V14";
	moving=0;
	setAIMode=1,30;
  }
}

comment
{
  getunit
  {
	id=4;
	team=1;
  }
  unitctrl
  {
	setWUST=0x1000,1;
  }
}
comment
{
  getunit
  {
	id=5;
	team=1;
  }
  unitctrl
  {
	setWUST=0x1000,1;
  }
}

comment
{
  getunit
  {
	id=6;
	team=1;
  }
  unitctrl
  {
	setWUST=0x1000,1;
  }
}
comment
{
  getunit
  {
	id=7;
	team=1;
  }
  unitctrl
  {
	setWUST=0x1000,1;
	setTarget=0,-1;
  }
}

comment
{
  getunit
  {
	id=8;
	team=1;
  }
  unitctrl
  {
	setWUST=0x1000,1;
  }
}
comment
{
  getunit
  {
	id=9;
	team=1;
  }
  unitctrl
  {
	setWUST=0x1000,1;
  }
}

//NPC
comment
{
  getunit
  {
	team=0;
	NPC="B1";
  }
  unitctrl
  {
	setpt_vide="V10";
	setdir_vide="V10";
	moving=0;
	setAIMode=1,3600;
  }
}
comment
{
  unitctrl
  {
	motact="DATA\Character\MotionDrama\BangGirl.mot";
	motkey=0,70;
	motloop=10,60;
  }
}
							//主人公登场
comment
{
  getunit
  {
	team=0;
	NPC="B10"; //选Leader
  }
  unitctrl
  {
	setWUST=0x1000,0;
	setpt_vide="V12";
	setdir_vide="V12";
  }
  camera
  {
	lookpt=0,100,0,1;
	yaw=1,0.5,0.001;
	swing=1;
  }
}

comment
{
  getunit
  {
	id=2;
	team=0;
  }
  unitctrl
  {
	setWUST=0x1000,0;
	setpt_vide="V11";
	setdir_vide="V11";
  }
}

comment
{
  getunit
  {
	id=1;
	team=0;
  }
  dialogue
  {
	talk="什么人在光天化日之下绑架人！？";
	lifetime=5;
	waittime=4;
  }
}

comment
{
  dialogue
  {
	talk="先救人再说！";
	lifetime=5;
	waittime=4;
  }
  unitctrl
  {
	lookdir=0,0,100;
  }
}

comment
{
  dialogue
  {
	talk="伤脑筋，事出突然，我没带上多少战友。";
	lifetime=5;
	waittime=4;
  }
  unitctrl
  {
	setST=0x100000,3;
  }
}

comment
{
  dialogue
  {
	talk="看来此战得以寡敌众了。";
	lifetime=5;
	waittime=4;
  }
  unitctrl
  {
	lookdir=0,0,-100;
  }
}

comment
{
  getunit
  {
	team=0;
	NPC="B1";
  }
  camera
  {
	lookpt=0,50,0,1;
	yaw=-0.2,0.3,0.001;
	roll=0.3;
	swing=1;
  }
  wait=2;
}

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="B1",1;
}

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

comment
{
  getunit
  {
	team=0;
	NPC="B10"; //选Leader
  }
  unitctrl
  {
	setpt_vide="V23";
	setdir_vide="V23";
	setST=0;
  }
  camera
  {
	lookpt_vide="V24";
	yaw=-0.5,0.3,0.0005;
	distance=-400;
	roll=0.3;
	swing=1;
  }
  GameSystemMode="B101",1;
}

comment
{
  getunit
  {
	team=0;
	NPC="B1"; //选NPC
  }
  unitctrl
  {
	setpt_vide="V22";
	setdir_vide="V22";
	setST=0;
	motact="";
  }
  wait=1;
}

comment
{
  screen
  {
	dstframe=0;
	speed=10;
  }
  wait=2;
  bgm
  {
	file="DATA\Music\delight.wav";
	play=2;
  }
}

comment
{
  getunit
  {
	team=0;
	NPC="B1"; //选NPC
  }
  dialogue
  {
	talk="谢谢您的相救！";
	waittime=4;
  }
  unitctrl
  {
	motact="DATA\Character\Motion\HappyGirl_atn.mot";
  }
}

comment
{
  getunit
  {
	team=0;
	NPC="B10"; //选Leader
  }
  dialogue
  {
	talk="那些人为什么用这么大阵仗来抓你？";
	waittime=4;
  }
}

comment
{
  getunit
  {
	team=0;
	NPC="B1"; //选NPC
  }
  dialogue
  {
	talk="我是东南一个富商的千金小姐。";
	waittime=4;
  }
}

comment
{
  dialogue
  {
	talk="“Bill庄园”就是我爸爸名下的别墅之一。";
	waittime=4;
  }
}

comment
{
  dialogue
  {
	talk="因为我的梦想喜好，一直从事的是偶像艺人事业。";
	waittime=4;
  }
}

comment
{
  dialogue
  {
	talk="有了一点名气，就被坏人盯上了…";
	waittime=4;
  }
}

comment
{
  dialogue
  {
	talk="他们想绑架我，从我爸爸那儿勒索一笔高昂的赎金。";
	waittime=4;
  }
}

comment
{
  dialogue
  {
	talk="幸好遇到了那么厉害的你，以寡敌众，解救了我。";
	waittime=4;
  }
}

comment
{
  getunit
  {
	team=0;
	NPC="B10"; //选Leader
  }
  dialogue
  {
	talk="这些恶劣的家伙，知道他们是什么来路吗？";
	waittime=4;
  }
}

comment
{
  getunit
  {
	team=0;
	NPC="B1"; //选NPC
  }
  dialogue
  {
	talk="从他们的谈话中听到了一点点，他们似乎是北方军的人。";
	waittime=4;
  }
}

comment
{
  getunit
  {
	team=0;
	NPC="B10"; //选Leader
  }
  dialogue
  {
	talk="这个部队，可是我的老对手。";
	waittime=4;
  }
}

comment
{
  getunit
  {
	team=0;
	NPC="B1"; //选NPC
  }
  dialogue
  {
	talk="为了回报你的搭救，我这里两颗比较贵重的魔法石送给你。";
	waittime=4;
  }
}

comment
{
  unitctrl
  {
	motact="DATA\Character\MotionDrama\GiveGirl.mot";
  }
}

comment
{
  getunit
  {
	team=0;
	NPC="B10"; //选Leader
  }
  msglist
  {
	strings="得到了两颗“复生”魔法石。";
	color=0xffffffff,0xffffffff,0xff00ff00,0xffffffff;
	outlinecolor=0x77ff00ff;
	waittime=5;
	type=1;
	fontID=2;
  }
  sound
  {
	file="DATA\World\Menu$2\buy.wav";
  }
  function
  {
	func_call="AddItemToTeam(复生,2)";
  }
  wait=4;
}

comment
{
  getunit
  {
	team=0;
	NPC="B1"; //选NPC
  }
  dialogue
  {
	talk="还有……";
	waittime=4;
	lifetime=4;
  }
}

comment
{
  getunit
  {
	team=0;
	NPC="B10"; //选Leader
  }
  unitctrl
  {
	setST=0x400000,2;
  }
  dialogue
  {
  }
  wait=3;
}

comment
{
  getunit
  {
	team=0;
	NPC="B1"; //选NPC
  }
  unitctrl
  {
	gotopt_vide="V25";
	moving=1;
	setST=0x80000,2;
  }
  dialogue
  {
  }
}

comment
{
  getunit
  {
	team=0;
	NPC="B10"; //选Leader
  }
  unitctrl
  {
	setST=0x1000000,2;
  }
}

comment
{
  getunit
  {
	team=0;
	NPC="B1"; //选NPC
	SelResult=1;
  }
}

comment
{
  unitctrl
  {
	setTarget=0,1;
	motact="DATA\Character\MotionDrama\Kiss_A.mot";
	motkey=0,100;
  }
}

comment
{
  WaitActionKey=0x7fff;
}

comment
{
  getunit
  {
	team=0;
	NPC="B10"; //选Leader
  }
  unitctrl
  {
	setST=0x100000,3;
  }
  camera
  {
	lookpt=0,100,0,1;
	yaw=0,-1,0.001;
	swing=1;
  }
}

comment
{
  getunit
  {
	team=0;
	NPC="B1"; //选NPC
  }
  unitctrl
  {
	gotopt_vide="V26";
	moving=2;
  }
}

comment
{
  getunit
  {
	team=0;
	NPC="B10"; //选Leader
  }
  unitctrl
  {
	motact="DATA\Character\MotionDrama\NaoBoy.mot";
  }
}

comment
{
  getunit
  {
	team=0;
	NPC="B1"; //选NPC
  }
  unitctrl
  {
	gotopt_vide="V26";
	swing=1;
  }
}

comment
{
  wait=5;
  nextStage=""; //默认+1
}

comment
{
  goto="EXIT";
}

#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_LOSE1://———————————————————————————————————
comment
{
  getunit
  {
	team=0;
	NPC="B1";
  }
  camera
  {
	lookpt=0,100,0,1;
	swing=1;
  }
}

comment
{
  msglist
  {
	strings="任务失败：没能保护好目标对象！";
	color=0xffffffff,0xffffffff,0xffff0000,0xffff0000;
	outlinecolor=0x770000ff;
	waittime=5;
	soundID=10;
	type=1;
	fontID=2;
  }
  menu
  {
	popmenu="战斗结束";
	swing=0;
  }
  GameSystemMode="B101",1;
  wait=4;
}

comment
{
  load="DATA\Scripter\NowLoading.hpp","GAMEOVER";
}

#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;
}

#BOOKMARK_POP1://———————————————————————————————————士卒登场
comment
{
  getunit
  {
	id=4;
	team=1;
  }
  unitctrl
  {
	setpt_vide="V16";
	setdir_vide="V16";
	moving=0;
	setAIMode=1,20;
	setWUST=0x1000,0;
  }
}
comment
{
  getunit
  {
	id=5;
	team=1;
  }
  unitctrl
  {
	setpt_vide="V17";
	setdir_vide="V17";
	moving=0;
	setAIMode=1,20;
	setWUST=0x1000,0;
  }
}

comment
{
  return;
}

#BOOKMARK_POP2://———————————————————————————————————白骑士登场
comment
{
  getunit
  {
	id=6;
	team=1;
  }
  unitctrl
  {
	setpt_vide="V18";
	setdir_vide="V18";
	moving=0;
	setAIMode=1,20;
	setWUST=0x1000,0;
  }
}
comment
{
  getunit
  {
	id=7;
	team=1;
  }
  unitctrl
  {
	setpt_vide="V19";
	setdir_vide="V19";
	moving=0;
	setAIMode=1,20;
	setWUST=0x1000,0;
  }
}

comment
{
  return;
}

#BOOKMARK_POP3://———————————————————————————————————武侠登场
comment
{
  getunit
  {
	id=8;
	team=1;
  }
  unitctrl
  {
	setpt_vide="V20";
	setdir_vide="V20";
	moving=0;
	setAIMode=1,20;
	setWUST=0x1000,0;
  }
}
comment
{
  getunit
  {
	id=9;
	team=1;
  }
  unitctrl
  {
	setpt_vide="V21";
	setdir_vide="V21";
	moving=0;
	setAIMode=1,20;
	setWUST=0x1000,0;
  }
}

comment
{
  return;
}

#BOOKMARK_POP4://———————————————————————————————————BOSS登场
comment
{
  getunit
  {
	id=0;
	team=1;
  }
  unitctrl
  {
	motloop=-1,-1;
	motpriority=-1;
  }
}

comment
{
  getunit
  {
	id=1;
	team=1;
  }
  unitctrl
  {
	setpt_vide="V15";
	setdir_vide="V15";
	moving=0;
	setAIMode=1,20;
	setWUST=0x1000,0;
  }
}

comment
{
  return;
}