• 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.

Spawn unit if conditions are right +++

Status
Not open for further replies.
Level 1
Joined
May 15, 2007
Messages
88
Hello, I have problems with this trigger here(It is activated at the end of a trigger by the: run trigger checking conditions-trigger)

  • GivebackUnits
    • Events
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players matching ((((Matching player) Current lumber) Greater than or equal to 50) and ((Number of living WannabeSmartie units owned by (Matching player)) Equal to 0))) and do (Unit - Create 1 WannabeSmartie for (Matching player) at (Random point in Region 1076 <gen>) facing Default building facing degrees)

But it wont work ;| Help would be appreciated.

(I tried with Picked player, but that did (nichten?) work either.
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
Player Group - Pick every player in (All players matching ((((Matching player) Current lumber) Greater than or equal to 50)
and ((Number of living WannabeSmartie units owned by (Matching player)) Equal to 0)))

and do (Unit - Create 1 WannabeSmartie for (picked player) at (Random point in Region 1076 <gen>) facing Default building facing degrees)

Notice that the first 2 "players" are matching players as they're "matching" a condition, while the actual action works with picked player, as the player (matching a condition) is picked. If that doesn't work either, the problem could lie in your actual trigger.
 
Status
Not open for further replies.
Top