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

[Trigger] Tigger Switch ON/OFF According to Food Supply?

Status
Not open for further replies.
Level 6
Joined
Apr 23, 2009
Messages
94
OK, I was wondering if anyone knew a way to turn on/off an auto-spawn creature trigger based on food supply..
Example:
You have a 6/7 food supply.
The auto-spawn spawns a creature, bringing you to 7/7 food supply.
You hit the cap, trigger off.
One of your units die, trigger back on.

Something like that, eh well, exactly like that.
Is this possible or am I destroying my eyes sitting 2inches from the screen looking through conditions for no reason?
Thanks in advanced.
 
Level 6
Joined
May 13, 2009
Messages
260
You can do it like this, don't take this as the ultimate solution but i think i might work:
  • Food 1
    • Events
      • Player - Player 1 (Red)'s Food used becomes Less than 7.00
    • Conditions
    • Actions
      • Trigger - Run Food spawn <gen> (checking conditions)
  • Food spawn
    • Events
    • Conditions
      • (Player 1 (Red) Food cap) Less than 7
    • Actions
      • Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
      • Trigger - Run (This trigger) (checking conditions)
 
Status
Not open for further replies.
Top