- Joined
- Oct 28, 2019
- Messages
- 523
HI ! I'm trying to develop a way to recruit units, I did it in the form of a "mercenary camp". But I'm open to suggestions. For example, I'll explain. On my map I only have 380 gold, and I can recruit 3 types of units, Footman (20 gold), Archer (30 gold) or Dwarf (60 gold) but there is a catch... the maximum of each unit... For example I can recruit a maximum of 16 footman, or a maximum of 6 archers or a maximum of 2 dwarves. (So the mercenary camp has only 16 Footmans to hire and the spawn is maximum). I made a trigger but it's bugging, if I click too Very fast, the units don't go to the proper positions, and I'm confused how to solve this. When the unit is hired, it goes to a specific position on map. Every unit is unique and has his own variable.
-
randomcolourWarriorBridge1
-
Events
-
Unit - A unit enters Tavern <gen>
-
-
Conditions
-
(Unit-type of (Entering unit)) Equal to Warrior
-
-
Actions
-
Unit - Move (Entering unit) instantly to (Center of WarriorBridge1 <gen>), facing 100.00 degrees
-
Unit - Change ownership of (Entering unit) to Neutral Passive and Retain color
-
Trigger - Turn off (This trigger)
-
Trigger - Turn on randomcolourWarriorBridge2 <gen>
-
Set VariableSet UnitWarrior5 = (Entering unit)
-
Unit Group - Add (Entering unit) to LigthGroup
-
-
-
randomcolourWarriorBridge2
-
Events
-
Unit - A unit enters Tavern <gen>
-
-
Conditions
-
(Unit-type of (Entering unit)) Equal to Warrior
-
-
Actions
-
Unit - Move (Entering unit) instantly to (Center of WarriorBridge2 <gen>), facing 100.00 degrees
-
Unit - Change ownership of (Entering unit) to Neutral Passive and Retain color
-
Trigger - Turn off (This trigger)
-
Trigger - Turn on randomcolourWarrior1 <gen>
-
Set VariableSet UnitWarrior6 = (Entering unit)
-
Unit Group - Add (Entering unit) to LigthGroup
-
-