• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Enemy Units Don't attack with the Transport Ships 02

Level 12
Joined
Aug 3, 2021
Messages
455
Hello everybody. Its Pekisa7. I thinkerd with Local unit zep in jass but it dosen't work. It wants GetTriggeredUnit() . I tried testing the map to see will they attack with transport ships in normal difficulty . It all the same they get stuck on a mountain some enemy players don't even load the transport ships. I also Did what you told me with debuging zeppelins it also dosen't work. So Id like to keep my hard difficulty on my map. What I am trying to achive is all the enemy players except King Gregorys forces to attack the purple players base trough the transport ships and when the purple players units are in the city to attack them. Can you guys help me I will be gratefull. Best regards form Pekisa7. Btw I am using patch 1.31.1.
 
Last edited:
I've attached an example map. The map was created in patch 1.31.1.
I recommend you read this post when possible. It will greatly help you in developing the triggers for your map.
Thanks friend. I will test it. Than I will let you know if it works.

I've attached an example map. The map was created in patch 1.31.1.
I recommend you read this post when possible. It will greatly help you in developing the triggers for your map.
Hey O_Vazio. I tested the map with the triggers you gave me and everything was going well the triggers gave me cordinates for units to enter the zeppelins or human transport ships in my case. The enemy units gathered all around their castles the abillty that was in the debug was activated some of the units eneterd transport ships but exited the next minute. Then when some in game time passed and they started attacking and i got these cordinates of the mountain (6864.000, - 21968.000), (6608.000, - 21968.000), (6256.000, - 21968.000). The teal, red and gray enemy units still didn't use thir transport ships and got stuck in the city . Maybe something is wrong with Ai? Also I changed target player to player 4 in triggers you sent me i copied an put on m map. So how can I fix this? Best regards form Pekisa7. Is this ok :
  • Unload Human Transport Ships
    • Events
      • Player - Player 4 (Purple) types a chat message containing -unload as An exact match
    • Conditions
    • Actions
      • For each (Integer Integer_LoopIndex) from 1 to (Number of players), do (Actions)
        • Loop - Actions
          • Set Player_TargetPlayer = Player 4 (Purple)
          • Set Point_TriggerPoint = (Player_TargetPlayer start location)
          • Set Player_TriggerPlayerArray1[Integer_LoopIndex] = (Player(Integer_LoopIndex))
          • Set Player_TriggerPlayerArray2[Integer_LoopIndex] = (Owner of Unit_TransportShipArray[Integer_LoopIndex])
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Life of Unit_TransportShipArray[Integer_LoopIndex]) Greater than 0.00
              • (Number of units in Group_TransportedUnitsArray[Integer_LoopIndex]) Greater than 0
              • Player_TriggerPlayerArray1[Integer_LoopIndex] Equal to Player_TriggerPlayerArray2[Integer_LoopIndex]
            • Then - Actions
              • Unit - Order Unit_TransportShipArray[Integer_LoopIndex] to Unload All At Point_TriggerPoint
              • Unit Group - Remove all units from Group_TransportedUnitsArray[Integer_LoopIndex]
            • Else - Actions
          • Custom script: set udg_Player_TargetPlayer = null
          • Custom script: call RemoveLocation(udg_Point_TriggerPoint)
          • Custom script: set udg_Player_TriggerPlayerArray1[udg_Integer_LoopIndex] = null
          • Custom script: set udg_Player_TriggerPlayerArray2[udg_Integer_LoopIndex] = null
 

Attachments

Last edited:
Back
Top