• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Using an ability to change units spawned

Status
Not open for further replies.
I am trying to use Obverse Incubation to modify spawns for a picked player. Here is the trigger, which doesn't work.

  • ZTier 1
    • Events
      • Timer - Every 2.0 seconds of Game Time
    • Local Variables
      • Point = No Point <Point>
    • Conditions
    • Actions
      • Variable - Set Unit Group = (Spawning Pool units in (Entire map) owned by player Any Player matching Excluded: Missile, Dead, with at most Any Amount)
      • Unit Group - Pick each unit in Unit Group and do (Actions)
        • Actions
          • Variable - Set Point = (Position of (Picked unit))
          • General - If (Conditions) then do (Actions) else do (Actions)
            • If
              • ZerglingUpgradeTime[(Picked player)] == 2.0
            • Then
              • General - Wait 1.0 Game Time seconds
              • Unit - Create (2 + ZerglingUpgrade[(Owner of (Triggering unit))]) Zergling for player (Owner of (Picked unit)) at Point using default facing (No Options)
            • Else
              • Unit - Create 2 Zergling for player (Owner of (Picked unit)) at Point using default facing (No Options)
 
Use Debug messages to tell if the trigger is actually going into that part.

Also, make sure that ZerglingUpgradeTime[(Picked player)] is actually equal to 2. Also, did you change that so it isn't Picked Player, but rather owner of picked unit?
 
Use Debug messages to tell if the trigger is actually going into that part.

Also, make sure that ZerglingUpgradeTime[(Picked player)] is actually equal to 2. Also, did you change that so it isn't Picked Player, but rather owner of picked unit?
Yes, i did. And i believe that if i ask the game to give me a specific array based on a player, it won't give me anything.
 
Status
Not open for further replies.
Back
Top