Trigger questions

Hi there! I’m trying to make a map where a specific player can train Militia and Kataskopos, I’m trying to work with triggers but seems not works as intended, I’ll be more specific:
With ProtounitAddTrain I’ve set the Militia in slot 0-0 of the Military Academy and removed the Hoplite from the trainable units for Player 2, the Militia is on the grid and can be trained with right click but not with the left click, why?
The Militia had 0 seconds training so the unit spam is a big problem, when click with right click militia keep spawning instantly. I’ve tryed to change the training time with trModifyProtounitData - Building Training Rate - Assign (or absolute) but nothing change.
I’m trying to do the same thing with Kataskops, I’ve literally copy-pasted the same trigger but changing the Military Academy with the Stable and set the Kataskopos in slot 0-0 with ProtounitAddTrain but the Kataskopos can’t be trained at all.
I’ve tryed to change the grid location, literally in every slot from 0-0 to 3-5 but it doesn’t work. Also Militia doesn’t work anymore if I try to redo the same trigger to a new blank map just to try.

Anyone had ideas on how it works? It’s bugged? Make it with VS Code doesn’t change it at all.

Make sure you have a Protounit: Unforbid and Enable effect for both the Militia and Kataskopos.

It also seems that any unit that has no train points cannot be left-click trained.
Use Protounit: Modify Data and Assign Train Points of 12 if you want the same as the Hoplite.

Militia will automatically benefit from Infantry upgrades too, but Kataskopos will not.
You’ll want to do a Protounit: Set Unit Type to set Kataskopos to CavalryLineUpgraded type so they’ll get benefits from techs researched at the stables.

1 Like

This works fine! Thanks mate!
But the training time it seems doesn’t be affected…

Set it up like this and it should work.