comment
{
  getunit
  {
	curunit=0;
  }
  tmpstrindex=1;
  dialogue
  {
	talk="！？，我在“%s”遭遇突发状况~~!";
	talkid=0;
  }
}

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

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

comment
{
  GameSystemMode="B101",1;
  function
  {
	func_call="PlaySceneBGM()";
  }
}

comment
{
  getunit
  {
	id=0;
  }
  unitctrl
  {
	setpt=630,30,-2100;
	gotopt=700,30,900;
	moving=1;
	swing=1;
  }
  camera
  {
	lookpt=0,100,0,1;
	roll=0.2;
	yaw=-0.1,0,0.001;
	distance=-400;
	swing=1;
  }
}

comment
{
  getunit
  {
	id=1;
  }
  unitctrl
  {
	setpt=1552,30,1936;
	lookdir=100,0,0;
	setNPC="B1100 0100",1;
  }
}

comment
{
  getunit
  {
	id=3;
  }
  unitctrl
  {
	setpt=-160,30,-400;
	lookdir=10,0,0;
  }
}

comment
{
  getunit
  {
	id=4;
  }
  unitctrl
  {
	setpt=-430,30,900;
	lookdir=100,0,0;
  }
}

comment
{
  getunit
  {
	id=6;
  }
  unitctrl
  {
	setpt=1656,30,1936;
	lookdir=-10,0,0;
  }
}

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

comment
{
  getunit
  {
	id=0;
  }
  unitctrl
  {
	WaitActionDone=1;
  }
}

comment
{
  getunit
  {
	id=4;
  }
  dialogue
  {
	talk="有小偷~！
我的东西被盗了~~~~";
	lifetime=3;
	dlgtype="Abrupt";
	screen_perpt=0.2,0.3;
  }
  wait=1;
}

comment
{
  getunit
  {
	id=0;
  }
  unitctrl
  {
	lookdir=-100,0,0;
	setST=0x200000,2;
  }
}

comment
{
  getunit
  {
	id=1;
  }
  unitctrl
  {
	lookdir=-100,0,0;
	setST=0x20000,3;
  }
}

comment
{
  getunit
  {
	id=5;
  }
  dialogue
  {
	talk="我们的美术品失窃了~~~~";
	lifetime=3;
	dlgtype="Abrupt";
	screen_perpt=0.1,0.5;
  }
  wait=2;
}

comment
{
  getunit
  {
	id=0;
  }
  unitctrl
  {
	lookdir=-100,0,0;
	setST=0x400000,3;
  }
}

comment
{
  getunit
  {
	id=3;
  }
  dialogue
  {
	talk="快抓盗贼啊~~~~！";
	lifetime=3;
	dlgtype="Abrupt";
	screen_perpt=0.2,0.8;
  }
  wait=3;
}

comment
{
  getunit
  {
	id=2;
  }
  unitctrl
  {
	setpt=-3599,678,794;
	gotopt=-2000,30,800;
  }
  camera
  {
	lookpt=0,100,0,1;
	yaw="",1.57,0.01;
	swing=1;
  }
}

comment
{
  getunit
  {
	id=5;
  }
  unitctrl
  {
	setpt=-2000,30,-200;
	gotopt=-2000,30,2855;
	swing=1;
	setST=0x1000,1000;
  }
}

comment
{
  getunit
  {
	id=2;
  }
  unitctrl
  {
	gotopt=-2000,30,3000;
	lookdir=0,0,-100;
  }
  camera
  {
	lookpt=0,100,0,1;
	yaw="",3.14,0.01;
	swing=1;
  }
}

comment
{
  getunit
  {
	id=0;
  }
  unitctrl
  {
	lookdir=0,0,100;
  }
}

comment
{
  WaitActionDone=-1;
}

comment
{
  getunit
  {
	id=5;
  }
  dialogue
  {
	talk="站住~~~~！";
	lifetime=3;
	dlgtype="!";
  }
}

comment
{
  getunit
  {
	id=2;
  }
  unitctrl
  {
	gotopt=675,30,3000;
	lookdir=-10,0,0;
	swing=1;
  }
  camera
  {
	lookpt=0,100,0,1;
	yaw="",4.7,0.01;
	swing=1;
  }
  wait=0.5;
}

comment
{
  getunit
  {
	id=1;
  }
  unitctrl
  {
    setpt=-1356,30,4457;
	gotopt=400,30,3050;
	lookpt=675,30,3000;
	setST=0x1000,1000;
	swing=1;
  }
}

comment
{
  getunit
  {
	id=5;
  }
  unitctrl
  {
	gotopt=400,30,2950;
  }
}

comment
{
  dialogue
  {
	talk="不许跑~~~~！";
	lifetime=3;
	dlgtype="!";
  }
}

comment
{
  getunit
  {
	id=2;
  }
  unitctrl
  {
	gotopt=800,30,900;
	swing=1;
  }
  wait=0.5;
}

comment
{
  getunit
  {
	id=1;
  }
  unitctrl
  {
	gotopt=500,30,-500;
	swing=1;
  }
}

comment
{
  getunit
  {
	id=5;
  }
  unitctrl
  {
	gotopt=600,30,-500;
	swing=1;
  }
}

comment
{
  getunit
  {
	id=2;
  }
  WaitActionDone=1;
}

comment
{
  unitctrl
  {
	gotopt=600,30,-600;
	swing=1;
  }
}

comment
{
  getunit
  {
	id=0;
  }
  camera
  {
	lookpt=0,100,0,1;
	swing=1;
  }
  unitctrl
  {
	lookdir=0,0,-10;
  }
}

comment
{
  getunit
  {
	id=0;
  }
  dialogue
  {
	talk="… …";
	conditional="不多管闲事",
				"帮着一起抓贼";
	cond_goto="","ZHUA";
	dlgtype="Think";
  }
}

comment
{
  dialogue
  {
	talk="不管我什么事……";
	lifetime=3;
	dlgtype="Think";
  }
  unitctrl
  {
	gotopt=675,30,3000;
	swing=1;
	moving=1;
	setST=0x2000,100;
  }
  wait=5;
}

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_ZHUA://———————————————————————————————————

comment
{
  getunit
  {
	id=0;
  }
  dialogue
  {
  }
}

comment
{
  getunit
  {
	id=2;
  }
  unitctrl
  {
	gotopt=300,30,-7400;
	swing=1;
  }
}

comment
{
  msglist
  {
	strings="胜利条件：打倒盗贼";
	color=0xffffffff,0xffffffff,0xffff0000,0xffff0000;
	outlinecolor=0x770000ff;
	waittime=5;
	soundID=7;
	type=1;
	fontID=2;
  }
  GameSystemMode="B101",0;
  return;
}

#BOOKMARK_LOSE://———————————————————————————————————
comment
{
  msglist
  {
	strings="任务失败：我方战斗失利";
	soundID=0;
	color=0xffffffff,0xffffffff,0xffff0000,0xffff0000;
	outlinecolor=0x770000ff;
	waittime=5;
	type=5;
	fontID=2;
	screen_perpt=0.5,0.7;
	posoffset=-0.5,-0.5;
  }
  wait=7;
  GameSystemMode="B1",1;
}

comment
{
  goto="EXIT";
}

#BOOKMARK_LOSE1://———————————————————————————————————
comment
{
  getunit
  {
	id=5;
  }
  dialogue
  {
	talk="可恶，让她跑了。";
	lifetime=3;
  }
}

comment
{
  msglist
  {
	strings="任务失败：盗贼逃脱";
	soundID=0;
	color=0xffffffff,0xffffffff,0xffff0000,0xffff0000;
	outlinecolor=0x770000ff;
	waittime=5;
	type=5;
	fontID=2;
	screen_perpt=0.5,0.7;
	posoffset=-0.5,-0.5;
  }
  GameSystemMode="B1",1;
  wait=7;
}

comment
{
  goto="EXIT";
}

#BOOKMARK_EXIT://———————————————————————————————————
comment
{
  getunit
  {
	id=2; //属于剧情人物，由于剧情人物不能逃跑，所以等战斗结束后把这个属性补上。
  }
  unitctrl
  {
	setNPC="B1",1;
  }
}

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

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

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

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


#BOOKMARK_WIN://———————————————————————————————————
comment
{
  screen
  {
	mode=0;
	color=0;
	dstframe=0xff;
	speed=5;
  }
  bgcolor=0;
  GameSystemMode="B1",1;
}

comment
{
  getunit
  {
	id=5;
  }
  unitctrl
  {
	setpt=70,30,-4200;
	lookdir=10,0,0;
	setST=0;
  }
  GameSystemMode="B101",1;
}

comment
{
  getunit
  {
	id=0;
  }
  unitctrl
  {
	setpt=200,30,-4300;
	lookpt=70,30,-4200;
	setST=0;
  }
  camera
  {
	lookpt=0,100,0,1;
	yaw=-0.5,0.5,0.001;
	swing=1;
  }
}

comment
{
  getunit
  {
	id=1;
  }
  unitctrl
  {
	setpt=200,30,-4100;
	lookpt=70,30,-4200;
	setST=0;
  }
  wait=1;
}

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

comment
{
  getunit
  {
	id=5;
  }
  unitctrl
  {
	motact="DATA\Character\MotionDrama\StandBoyGong.mot";
  }
  dialogue
  {
	talk="谢谢二位的抓贼协助！";
	lifetime=3;
  }
  wait=3;
}

comment
{
  dialogue
  {
	talk="二位可以来我们城主处领赏！";
	lifetime=3;
  }
  wait=3;
}

comment
{
  getunit
  {
	id=0;
  }
  dialogue
  {
	talk="不必了！我还有事呢。";
	lifetime=3;
  }
  wait=3;
}

comment
{
  getunit
  {
	id=5;
  }
  unitctrl
  {
	lookpt=200,30,-5000;
  }
}

comment
{
  getunit
  {
	id=0;
  }
  dialogue
  {
	talk="告辞！";
	lifetime=1;
  }
  unitctrl
  {
	gotopt=200,30,-5000;
	moving=1;
  }
}

comment
{
  getunit
  {
	id=1;
  }
  dialogue
  {
	talk="如果你需要的话，我也可以帮忙。";
	lifetime=3;
  }
  unitctrl
  {
	gotopt=267,30,-4932;
	lookpt=200,30,-5000;
	swing=1;
  }
  wait=3;
}

comment
{
  getunit
  {
	id=0;
  }
  unitctrl
  {
	lookpt=267,30,-4932;
  }
  dialogue
  {
	talk="好啊，我这正确人手呢。";
	lifetime=3;
  }
  wait=3;
}

comment
{
  getunit
  {
	id=1;
  }
  dialogue
  {
	talk="非常乐意效劳。";
	lifetime=3;
  }
  unitctrl
  {
	setNPC="B1100 0100",0;
  }
  wait=3;
}

comment
{
  getunit
  {
	id=0;
  }
  dialogue
  {
	talk="那我们一起结伴同行。";
	lifetime=3;
  }
  wait=3;
}

comment
{
  getunit
  {
	id=1;
  }
  unitctrl
  {
	gotopt=267,30,-7000;
	swing=1;
	moving=1;
  }
}

comment
{
  getunit
  {
	id=0;
  }
  unitctrl
  {
	gotopt=200,30,-7000;
	swing=1;
	moving=1;
  }
  wait=3;
}

comment
{
  goto="EXIT";
}
