• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[General] Units rescuable by all.

Status
Not open for further replies.
I'm trying to make these priests to be rescuable by player 1-5. They are neutral passive. I have no success for now.

  • Player Group - Add Player[1] to Allplayers
  • Player Group - Add Player[2] to Allplayers
  • Player Group - Add Player[3] to Allplayers
  • Player Group - Add Player[4] to Allplayers
  • Player Group - Add Player[5] to Allplayers
  • Set Priests = (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Priest))
  • Unit Group - Pick every unit in Priests and do (Actions)
    • Loop - Actions
      • Unit - Make (Picked unit) Rescuable by Allplayers
 
Level 16
Joined
Mar 27, 2011
Messages
1,349
This works for me:

  • Untitled Trigger 001
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 5, do (Actions)
        • Loop - Actions
          • Player Group - Add (Player((Integer A))) to PlayerGroup
      • Set Footmen = (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Footman))
      • Unit Group - Pick every unit in Footmen and do (Actions)
        • Loop - Actions
          • Unit - Make (Picked unit) Rescuable by PlayerGroup
      • Custom script: call DestroyGroup (udg_Footmen)
Maybe something is wrong with your Player[1]. What is this variable equal to? Why not just use the preset, Player 1 (Red)?

Edit: Attached the map
 

Attachments

  • rescue.w3x
    16.5 KB · Views: 78
Status
Not open for further replies.
Top