魔兽地图编辑怎样让电脑一直出兵!

来源:百度知道 编辑:UC知道 时间:2024/09/19 16:36:39
这个看攻略都没说过,找不到希望知道的告诉一下 3Q

Q:如何像DotA一样让军营不断生出小兵?

  A:生小兵的设定可以分成产生小兵和命令小兵移动二部分

  产生小兵:
  Army Spawn
  Events
  Time - Every 30.00 seconds of game time
  Conditions
  Actions
  Unit Group - Pick every unit in (Units owned by Player 1 (Red) of type Ancient of War) and do (Actions)
  Loop - Actions
  If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  If - Conditions
  ((Picked unit) is alive) Equal to True
  Then - Actions
  Unit - Create 3 Huntress for Player 1 (Red) at (Position of (Picked unit)) facing Default building facing degrees
  Else - Actions
  Unit Group - Pick every unit in (Units owned by Player 1 (Red) of type Ancient of Lore) and do (Actions)
  Loop - Actions
  If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  If - Conditions
  ((Picked unit) is alive) Equal to True
  Then - Actions
  Unit - Create 1 Dryad for Player 1 (Red)