• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[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: 68
Status
Not open for further replies.
Top