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;
  function
  {
	func_call="PlaySceneBGM()";
  }
}

comment
{
  getunit
  {
	id=0;
	team=0;
  }
  camera
  {
	lookpt=0,80,0,1;
	roll=0.4;
	yaw=-3,-2,0.001;
	distance=-500;
	swing=1;
  }
  unitctrl
  {
	setpt=-600,30,3100;
	lookdir=-1,0,0;
	swing=1;
	setST=0x1000,600;
  }
}

comment
{
  getunit
  {
	id=1;
	team=0;
  }
  unitctrl
  {
	setpt=-800,30,3000;
	lookdir=-1,0,0;
	swing=1;
	setST=0x1000,600;
	setHP=0;
	motact="DATA\Character\Motion\KO00Girl.mot";
	motkey=60,85;
  }
}

comment
{
  getunit
  {
	id=2;
	team=0;
  }
  unitctrl
  {
	setpt=-760,30,3180;
	lookdir=-1,0,0;
	swing=1;
	setST=0x1000,600;
  }
}

comment
{
  getunit
  {
	id=0;
	team=1;
  }
  unitctrl
  {
	setpt=-1100,30,3000;
	lookdir=1,0,0;
	swing=1;
	setST=0x1000,600;
  }
}


comment
{
  getunit
  {
	id=1;
	team=1;
  }
  unitctrl
  {
	setpt=-1100,30,3200;
	lookdir=1,0,0;
	swing=1;
	setST=0x1000,600;
  }
}

comment
{
  getunit
  {
	id=0;
	team=0;
	NPC="B10";
  }
  unitctrl
  {
	setpt=-3000,30,3100;
	lookdir=1,0,0;
	swing=1;
	setST=0x1000,600;
  }
}

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

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

comment
{
  getunit
  {
	id=0;
	team=0;
  }
  dialogue
  {
	talk="这里竟然会遭遇这么多不死族！？";
	lifetime=4;
	waittime=4;
  }
  unitctrl
  {
	setST=0x1000000,5;
  }
}

comment
{
  dialogue
  {
	talk="我们的一个同伴也战至力尽倒下了！";
	lifetime=4;
	waittime=4;
  }
  unitctrl
  {
	lookpt=-800,10,3000;
	swing=1;
  }
}

comment
{
  dialogue
  {
	talk="我先把她就起来吧。";
	lifetime=4;
	waittime=4;
  }
}

comment
{
  unitctrl
  {
	prepareMagic=2;
	shotpt=-800,10,3000;
	motact="DATA\Character\Motion\MagicWandGirl02_df.mot";
	setSP=100;
  }
  wait=3;
}

comment
{
  getunit
  {
	id=1;
	team=0;
  }
  unitctrl
  {
	gotopt=-400,10,3000;
	lookdir=-1,0,0;
  }
}

comment
{
  dialogue
  {
	talk="得救了，谢谢！";
	lifetime=4;
	waittime=4;
  }
}

comment
{
  dialogue
  {
	talk="但身体还是很虚弱。";
	lifetime=4;
	waittime=4;
  }
}

comment
{
  getunit
  {
	id=0;
	team=1;
  }
  unitctrl
  {
	gotopt=-800,10,3000;
  }
  camera
  {
	lookpt=0,80,0,1;
	swing=1;
  }
  sound
  {	
	file="DATA\Character\Effect\ZShock.wav";
  }
}

comment
{
  getunit
  {
	id=2;
	team=0;
  }
  unitctrl
  {
	lookpt=-800,10,3000;
	setST=0x200000,1;
	swing=1;
  }
}

comment
{
  getunit
  {
	id=1;
	team=0;
  }
  unitctrl
  {
	setST=0x1000000,3;
  }
}

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

comment
{
  getunit
  {
	id=0;
	team=0;
  }
  camera
  {
	lookpt=0,80,0,1;
	swing=1;
  }
  dialogue
  {
	talk="这个可恶的东西！！";
	dlgtype="!";
	lifetime=4;
	waittime=4;
  }
  unitctrl
  {
	prepareMagic=2;
	shotpt=0,0,0,1;
	motact="DATA\Character\Motion\MagicWandGirl02_df.mot";
	setSP=100;
  }
}

comment
{
  getunit
  {
	id=0;
	team=0;
	NPC="B10";
  }
  dialogue
  {
	talk="哦，厉害啊~~~~！";
	lifetime=4;
	waittime=4;
	dlgtype="!";
  }
  camera
  {
	lookpt=0,80,0,1;
	yaw=-3,-4,0.01;
	swing=1;
  }
}

comment
{
  dialogue
  {
	talk="你们用的魔法好厉害！！";
	lifetime=4;
	waittime=4;
  }
  unitctrl
  {
	gotopt=-1300,30,3100;
  }
}

comment
{
  dialogue
  {
	talk="不但能救人，还能消灭不死族。";
	lifetime=4;
	waittime=4;
  }
}

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

comment
{
  getunit
  {
	id=0;
	team=0;
  }
  dialogue
  {
	talk="现在没空多说，先把这里的不死族解决了再说。";
	lifetime=4;
	waittime=4;
  }
  camera
  {
	lookpt=0,80,0,1;
	swing=1;
  }
  unitctrl
  {
	lookpt=0,0,0,1;
	swing=1;
  }
}

comment
{
  getunit
  {
	id=0;
	team=0;
	NPC="B10";
  }
  dialogue
  {
	talk="行，没问题。";
	lifetime=4;
	waittime=4;
  }
  camera
  {
	lookpt=0,80,0,1;
	swing=1;
  }
}


comment
{
  getunit
  {
	team=0;
	id=1;
  }
  dialogue
  {
	talk="太好了，我们有援兵了。";
	lifetime=4;
	waittime=4;
  }
  camera
  {
	lookpt=0,80,0,1;
	swing=1;
  }
  unitctrl
  {
	setHP=100;
  }
}

comment
{
  getunit
  {
	team=0;
	id=2;
  }
  dialogue
  {
	talk="大家一起上～！";
	lifetime=4;
	waittime=4;
  }
  camera
  {
	lookpt=0,80,0,1;
	swing=1;
  }
  unitctrl
  {
	lookpt=0,0,0,1;
	swing=1;
  }
}

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

comment
{
  GameSystemMode="B101",0;
  wait=10;
}

comment
{
  return;
}

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

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

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

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

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

comment
{
  screen
  {
	mode=0;
	color=0;
	dstframe=0xff;
	speed=10;
  }
  GameSystemMode="B101",1;
}

comment
{
  getunit
  {
	team=0;
	NPC="B10"; //选Leader
  }
  unitctrl
  {
	setpt=-2000,30,-200;
	lookdir=100,0,0;
	setST=0;
  }
}

comment
{
  getunit
  {
	team=0;
	NPC="B1"; //选NPC
	id=0;
  }
  unitctrl
  {
	setpt=-1800,30,-200;
	lookdir=-100,0,0;
	setST=0;
  }
}

comment
{
  screen
  {
	dstframe=0;
	speed=10;
  }
  camera
  {
	lookpt=-1900,140,-200;
	yaw=-0.5,0.5,0.001;
	roll=0.4;
	distance=-400;
	swing=1;
  }
}

comment
{
  getunit
  {
	team=0;
	NPC="B1"; //选NPC
	id=0;
  }
  unitctrl
  {
	motact="DATA\Character\Motion\HappyGirl_maid.mot";
  }
  dialogue
  {
	talk="非常感谢你的援助。";
	lifetime=4;
	waittime=4;
  }
}

comment
{
  dialogue
  {
	talk="否则，我们今天恐怕九死一生。";
	lifetime=4;
	waittime=4;
  }
}

comment
{
  getunit
  {
	team=0;
	NPC="B10"; //选Leader
  }
  dialogue
  {
	talk="你们刚才用的魔法是、、、？";
	lifetime=4;
	waittime=4;
  }
}

comment
{
  getunit
  {
	team=0;
	NPC="B1"; //选NPC
	id=0;
  }
  dialogue
  {
	talk="那是一种高阶神圣系魔法：“复生”。";
	lifetime=4;
	waittime=4;
  }
}

comment
{
  dialogue
  {
	talk="对于我们来说是复活魔法，而对于不死族来说却是超度魔法。";
	lifetime=4;
	waittime=4;
  }
}

comment
{
  getunit
  {
	team=0;
	NPC="B10"; //选Leader
  }
  dialogue
  {
	talk="我们很需要你这样的魔法师，希望你能加入我们。";
	lifetime=4;
	waittime=4;
  }
}

comment
{
  getunit
  {
	team=0;
	NPC="B1"; //选NPC
	id=0;
  }
  dialogue
  {
	talk="嗯，好啊！
我们应该回报你的救援之情。";
	lifetime=4;
	waittime=4;
  }
}

comment
{
  getunit
  {
	team=0;
	id=0;
  }
  unitctrl
  {
	setNPC=0,2;
  }
}

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

comment
{
  getunit
  {
	team=0;
	id=2;
  }
  unitctrl
  {
	setNPC=0,2;
  }
}

comment
{
  getunit
  {
	team=0;
	NPC="B10"; //选Leader
  }
  dialogue
  {
	talk="啊~~，那太好了。";
	lifetime=4;
	waittime=4;
  }
  unitctrl
  {
	setST=0x8000000,3;
  }
}

comment
{
  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_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;
}