作者dpple (dpple)
看板WarCraftChat
标题[ WE ] 请问中立怪物重生写法错误的问题...
时间Thu Jul 2 18:28:47 2009
虽然下面有WE聊天室
但须附原触发还是自己发了一篇@@
这是参考三国地图写的中立生物复活的东东
但却不能发挥效用
想请问各位高手是错在哪@@?
creeps01
事件
时间 - Elapsed game time is 0.00 seconds
状况
行动
部队群组 - Pick every unit in (Units in (Playable map area) matching
(((Owner of (Picked unit)) controller) 等於 敌对)) and do (Actions)
回一行动
Set Integer = (Integer + 1)
部队 - Set the custom value of (Picked unit) to Integer
部队群组 - Add (Picked unit) to Creeps_Group
Set Creeps_Type[Integer] = (Unit-type of (Picked unit))
Set Point_Creeps[Integer] = (Position of (Picked unit))
////游戏开始时将全地图的中立敌对生物编序、记录位置与类型,
并加入"中立生物群组"。
creeps02
事件
部队 - A unit 死亡
状况
((Dying unit) is in Creeps_Group) 等於 真
////当属於"中立生物群组"之部队死亡。
行动
Custom script: local integer N
Custom script: set N = GetUnitUserData(GetDyingUnit())
////将所需要的变数(死亡生物序号)记录。
部队群组 - Remove (Dying unit) from Creeps_Group
////移除生物於"中立生物群组"。
Custom script: call CreateNUnitsAtLoc( 1, udg_Creeps_Type[N],
Player(PLAYER_NEUTRAL_AGGRESSIVE), udg_Point_Creeps[N], bj_UNIT_FACING )
////创造一个先前类型之生物於先前位置(因为测试就不等待直接重生了)。
部队群组 - Add (Last created unit) to Creeps_Group
////将之加入"中立生物群组"
Custom script: call SetUnitUserData( GetLastCreatedUnit(), N )
////给与先前序号。
请各位帮个忙了
谢谢!!
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 122.116.201.214
1F:推 gonzdevour:matching owner of (matching unit) 07/02 21:14
2F:→ dpple:谢谢解答.. 一直把重点放在第二个触发 07/02 22:21
3F:→ dpple:而忽略了前面的小错误 刚刚测试的确就是它! 再次感谢.. 07/02 22:22
4F:嘘 lol78: 11/09 16:39
5F:嘘 lol78: 11/09 16:39
6F:嘘 lol78: 11/09 16:39