- Joined
- Jul 5, 2014
- Messages
- 551
Is there a way to make a non-hero trainable unit which is restricted to 1/owner? Like, training a Storm Wyrm and the player can't train another until losing the one they already have?
Right, you want to use Trained Unit-Type instead. See my picture.Begins training doesn't respond to "trained unit" and "triggering unit" references.
Why not just limit training to 1 at map init?
Disable
Events
Unit - A unit Finishes training a unit
Conditions
(Unit-type of (Trained unit)) Equal to Gryphon Rider
Actions
Player - Limit training of Gryphon Rider to 0 for (Owner of (Triggering unit))
Enable
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Gryphon Rider
Actions
Player - Limit training of Gryphon Rider to 1 for (Owner of (Triggering unit))
Why not just limit training to 1 at map init?
Right, you want to use Trained Unit-Type instead. See my picture.
Just tested (on 1.31 PTR if it matters), the limit takes units being trained into account, so if you don't have the unit type, but you're training one, you cannot add more units to the training queue.That can be bypassed by training more than 1 at once.
Just tested (on 1.31 PTR if it matters), the limit takes units being trained into account, so if you don't have the unit type, but you're training one, you cannot add more units to the training queue.