- Joined
- Sep 27, 2018
- Messages
- 61
I've found the better way to cancel units in a queue or just one and also depending the unit-type. I maded to change the "stats - build time" of a Unit, basically I have to create a footman for example with less build time, copy the original and change the stat.
-
PressEsc
-
Events
-
Unit - A unit Begins training a unit
-
-
Conditions
-
(Trained unit-type) Equal to Soldado raso
-
-
Actions
-
Set VariableSet Cancel[(Veces + 1)] = (Triggering unit)
-
Custom script: call IssueImmediateOrderById(udg_Cancel[udg_Veces+1], 851976)
-
Game - Display to (All players) the text: (String(Veces))
-
Wait 1.00 seconds
-
Unit - Order Cuartel 0010 <gen> to train/upgrade to a Soldado raso (Faster)
-
-
-
Return
-
Events
-
Game - Button for train Soldado raso pressed.
-
-
Conditions
-
Veces Equal to 8
-
-
Actions
-
Set VariableSet Veces = 0
-
-
-
Fin
-
Events
-
Unit - A unit Finishes training a unit
-
-
Conditions
-
(Trained unit-type) Equal to Soldado raso (Faster)
-
-
Actions
-
Unit - Replace (Trained unit) with a Soldado raso using The old unit's relative life and mana
-
-