Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Easy GUI triggers my friend. Play around for yourself or post a message and I'll do it
Barracks Training

Events


Unit - A unit Begins training a unit

Conditions

Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Mana of (Triggering unit)) Less than 10.00



Then - Actions




Trigger - Turn on Barracks Training 3 <gen>



Else - Actions




Trigger - Turn on Barracks Training 2 <gen>
Barracks Training 2

Events


Unit - A unit Finishes training a unit

Conditions

Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Unit-type of (Triggering unit)) Equal to Barracks




(Trained unit-type) Equal to Footman



Then - Actions




Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) - The_Cost_You_Want)




Trigger - Turn off (This trigger)



Else - Actions
Barracks Training 3

Events


Unit - A unit Finishes training a unit

Conditions

Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Unit-type of (Triggering unit)) Equal to Barracks




(Trained unit-type) Equal to Footman



Then - Actions




Unit - Kill (Trained unit)




Game - Display to (Player group((Owner of (Triggering unit)))) the text: Your Barracks have ...



Else - Actions
Events

Unit - A unit Finishes casting an ability
Conditions

(Ability being cast) Equal to Footman
Actions

Unit - Create 1 Footman for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees
Mana Cost

Events


Unit - A unit Finishes training a unit

Conditions

Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Mana of (Triggering unit)) Less than your_mana_cost



Then - Actions




Unit - Remove (Trained unit) from the game



Else - Actions




Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) - your_mana_cost)

Btw Elmo, it's better if you remove the unit.![]()
is there a way to make TRAINNING(not using spells) a troop to cost mana?
More info:
I trying to create a way to make a barracks only able to create a total for 3 troops. I had a friend who tried to do this with food but failed.
is that even possable? ifso he would also need to be selection the biulding at the same time.
Limit

Events


Time - Elapsed game time is 5.00 seconds

Conditions

Actions


Player Group - Pick every player in (All Players) and do (Actions)



Loop - Actions




Player - Limit training of Footman to 3 for (Picked player)
Limit1

Events


Unit - A unit Finishes training a unit

Conditions


(Unit-type of (Triggering unit)) Equal to (==) Barracks

Actions


Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) - 10.00)



Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)




If - Conditions





(Integer((Mana of (Triggering unit)))) Equal to (==) 0




Then - Actions





Player Group - Pick every player in (Player group((Owner of (Triggering unit)))) and do (Actions)






Loop - Actions







Player - Make Footman Unavailable for training/construction by (Picked player)




Else - Actions
Training Limitation

Events


Unit - A unit Finishes training a unit

Conditions

Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Custom value of (Triggering unit)) Less than 3



Then - Actions




Unit - Set the custom value of (Triggering unit) to ((Custom value of (Triggering unit)) + 1)



Else - Actions




Unit - Remove (Trained unit) from the game
