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;
  bgm
  {
	file="DATA\Scene\m03_WMHT\bgm_sea.wav";
	play=2;
  }
}

comment
{
  getunit
  {
	id=0;
  }
  unitctrl
  {
	setpt=4100,120,-1500;
	gotopt=4100,120,30;
	moving=1;
	swing=1;
  }
  camera
  {
	lookpt=0,100,0,1;
	roll=0.2;
	yaw=-1.57,2,0.01;
	distance=-400;
	swing=1;
  }
}

comment
{
  getunit
  {
	id=2;
  }
  unitctrl
  {
	setpt=4320,120,30;
	lookdir=-100,0,0;
  }
}

comment
{
  getunit
  {
	id=3;
  }
  unitctrl
  {
	setpt=4187,120,194;
	lookpt=4320,120,30;
	setST=0x2000;
  }
}

comment
{
  anima3ds
  {
	file="DATA\Scene\Effect\ShaoKao.3DS";
	loop=0,0;
	pos=4220,90,30;
	dir=-10,0,0;
	swing=1;
  }
 }
 
 comment
{
  function
  {
	func_call="MadeThing(西瓜,4360,120,-50)";
  }
}

comment
{
  function
  {
	func_call="MadeThing(西瓜,4290,120,-40)";
  }
}

comment
{
  getunit
  {
	id=1;
  }
  unitctrl
  {
	setpt=3954,120,1446;
	gotopt=3954,120,-1387;
	moving=1;
	swing=1;
  }
}

comment
{
  getunit
  {
	id=4;
  }
  unitctrl
  {
	setpt=3284,120,545;
	lookdir=-100,0,0;
  }
}

comment
{
  getunit
  {
	id=5;
  }
  unitctrl
  {
	setpt=3006,120,-472;
	lookdir=-100,0,0;
  }
}

comment
{
  unitctrl
  {
	motact="DATA\Character\MotionDrama\SitGirl_is.mot";
	motloop=10,60;
  }
}

comment
{
  getunit
  {
	id=6;
  }
  unitctrl
  {
	setpt=4314,130,-425;
	lookdir=-100,0,0;
	
  }
}

comment
{
  unitctrl
  {
	motact="DATA\Character\MotionDrama\SitGirl_is.mot";
	motloop=10,60;
  }
}

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

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

comment
{
  getunit
  {
	id=2;
  }
  dialogue
  {
	talk="卖烧烤啦，好吃的烧烤啊~~~";
  }
  wait=1;
}

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

comment
{
  getunit
  {
	id=2;
  }
  dialogue
  {
	talk="这位客人要买烤肉吗？";
  }
  wait=3;
}

comment
{
  dialogue
  {
	talk="我们的烤肉价格为：70钱/每块";
  }
  wait=3;
}

comment
{
  dialogue
  {
	talk="这可是市面上很优惠的价格哦~~~~";
	lifetime=3;
  }
  wait=3;
}

comment
{
  getunit
  {
	id=0;
  }
  dialogue
  {
	talk="… …";
	conditional="买10块烤肉",
				"什么都不买";
	cond_goto="","NOBUY";
	lifetime=3;
  }
}

comment
{
  dialogue
  {
	talk="我要买10块烤肉，打包。";
	lifetime=3;
  }
  wait=3;
}

comment
{
  getunit
  {
	id=2;
  }
  dialogue
  {
	talk="一共是700块钱~！";
	lifetime=3;
  }
  wait=3;
}

comment
{
  getunit
  {
	id=0;
  }
}

comment
{
  happenGoto
  {
	money=700;
	goto="NOMONEY";
  }
}

comment
{
  msglist
  {
	strings="花了700块钱，买了10块烤肉。";
	color=0xffffffff,0xffffffff,0xff00ff00,0xff00ff00;
	outlinecolor=0x77ff0000;
	waittime=5;
	type=1;
	fontID=2;
  }
  sound
  {
	file="DATA\World\Menu$2\buy.wav";
  }
  function
  {
	func_call="AddItemToTeam(烤肉,10)";
  }
}

comment
{
  function
  {
	func_call="AddMoneyToTeam(-700)";
  }
}

comment
{
  getunit
  {
	id=2;
  }
  dialogue
  {
	talk="谢谢惠顾~！";
	lifetime=3;
  }
  unitctrl
  {
	setST=0x10000,2;
  }
  wait=3;
}

comment
{
  goto="GOEXIT";
}

#BOOKMARK_NOBUY://———————————————————————————————————
comment
{
  getunit
  {
	id=0;
  }
  dialogue
  {
	talk="不感兴趣……";
	lifetime=2;
  }
}

comment
{
  goto="GOEXIT";
}

#BOOKMARK_NOMONEY://———————————————————————————————————
comment
{
  getunit
  {
	id=0;
  }
  dialogue
  {
	talk="呀！我的钱好象不够啊~！";
	lifetime=3;
  }
  wait=2;
  unitctrl
  {
	setST=0x1000000,5;
  }
}

comment
{
  getunit
  {
	id=2;
  }
  unitctrl
  {
	setST=0x800000,5;
  }
  wait=3;
}

comment
{
  getunit
  {
	id=0;
  }
  dialogue
  {
	talk="抱歉！我不买了。";
	lifetime=3;
  }
  wait=1;
}

comment
{
  getunit
  {
	id=2;
  }
  unitctrl
  {
	setST=0x2000000,10;
  }
  wait=1;
}

comment
{
  goto="GOEXIT";
}

#BOOKMARK_GOEXIT://———————————————————————————————————

comment
{
  getunit
  {
	id=0;
  }
  unitctrl
  {
	gotopt=3954,120,1446;
	swing=1;
	moving=1;
  }
  wait=3;
  camera
  {
	lookpt=0,100,0,1;
	yaw="",1.57,0.01;
	swing=1;
  }
}

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