Need Help To Set Barracks into a variable!

panzer

New Member
Reaction score
0
Ha ehem! Hi Everyone!

I am kinda new to forums so i dont really know how these forum works. I think only professional people ask and answer questions here:nuts:. But anyways

I am working on a trigger for days now but still can't figure out how to solve the situation. I would be greatly thankful if anybody could help me get out of this problem.
Here's the problem.

I have made a map and have put four Barracks for player 2.
I want him to train every 5 second a footman IF all HIS units are dead (Excluding Structures and Peseant) and then once they are all trained then order them to attack my base.

Yes thats all! But its taking me foreva to find a solution for it!
Thanks for your contribution:D
 

Conal

Member
Reaction score
12
Why every 5 seconds? It'll only train once because then units will be on the field until they die...
 

Wratox1

Member
Reaction score
22
Ha ehem! Hi Everyone!

I am kinda new to forums so i dont really know how these forum works. I think only professional people ask and answer questions here:nuts:. But anyways

I am working on a trigger for days now but still can't figure out how to solve the situation. I would be greatly thankful if anybody could help me get out of this problem.
Here's the problem.

I have made a map and have put four Barracks for player 2.
I want him to train every 5 second a footman IF all HIS units are dead (Excluding Structures and Peseant) and then once they are all trained then order them to attack my base.

Yes thats all! But its taking me foreva to find a solution for it!
Thanks for your contribution:D

Not only professional poeple post here! im not a professional..
anyway, how many footmans are the barracks needed to spawn? beacuse when one is spawned all his units are not dead..(except structures and peasant)

Edit:maybe these triggers will do:
Trigger:
  • Training init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Unit Group - Add (Barrack 1) to Barracks
      • Unit Group - Add (Barrack 2) to Barracks
      • Unit Group - Add (Barrack 3) to Barracks
      • Unit Group - Add (Barrack 4) to Barracks


Trigger:
  • Training
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 2 (Blue)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • ((Picked unit) is A structure) Equal to False
                  • (Unit-type of (Picked unit)) Not equal to Peasant
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Picked unit) Equal to No unit
                • Then - Actions
                  • Unit Group - Pick every unit in Barracks and do (Actions)
                    • Loop - Actions
                      • Unit - Order (Picked unit) to train/upgrade to a Footman
                • Else - Actions
            • Else - Actions
 

X.Terror.X

New Member
Reaction score
10
u mean u want for excample 5 footman trained every 5 seconds if created send the troops and repeat the order when all units on the battle field died?

therefore you have to use unit groups i guess...
 

panzer

New Member
Reaction score
0
Problem Solved

Thanks every one for there help especially ''wartox'' to their help!
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top