Little help here

ss501maku

New Member
Reaction score
0
- my BUILDER can construct FOOTMAN
- and that FOOTMAN can also spawn ARCHERS every 3sec of game time
- when the FOOTMAN has died how do i stop the spawn of the ARCHERS

Trigger:
  • Footman
    • Events
      • Unit - A unit Finishes construction
    • Conditions
      • (Unit-type of (Constructed structure)) Equal to Builder
    • Actions
      • Unit - Replace (Constructed structure) with a FootmanSpawner using The old unit's relative life and mana


Trigger:
  • Spawning system
    • Events
      • Time - Every 3.00 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Set tempunigroup = (Units owned by (Player((Integer A))) of type FootmanSpawner)
          • Set temppoint = (Center of Region 000 <gen>)
          • Unit - Create (Number of units in tempunigroup) archers for (Player((Integer A))) at temppoint facing Default building facing degrees


pls this one final trigger is my last hope!
 

Tawnttoo

New Member
Reaction score
36
Well, I can't see how that trigger wouldn't work, but if it doesn't, try this:
Trigger:
  • Set tempunigroup = (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Equal to FootmanSpawner) and (((Matching unit) is alive) Equal to True)))
 

ss501maku

New Member
Reaction score
0
Well, I can't see how that trigger wouldn't work, but if it doesn't, try this:
Trigger:
  • Set tempunigroup = (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Equal to FootmanSpawner) and (((Matching unit) is alive) Equal to True)))


- its not working!
- how? when the footman's die the spawn of archers is keep coming!
 

Cheddar

This is the way it was meant to be.
Reaction score
126
Your trigger keeps spawning units per Footman even if he's dead because the condition checks for ANY Footman, dead or alive. Find a way to remove his corpse or change your conditions.
 

Tawnttoo

New Member
Reaction score
36
Why wouldn't my solution work? Use it and refer to the owner of the created units as owner of picked unit.
 

Cheddar

This is the way it was meant to be.
Reaction score
126
Wow, I need to read all of these posts more carefully :/

Well, try testing it by owning only one Footman. It's 1 Archer per Footman, so if you have multiple Footmen, it doesn't matter if one dies; the others will keep spawning Archers.

Also, "It doesn't work" is not helpful at all; what's the problem?
 
General chit-chat
Help Users

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top