On my map I want the training time for units to be faster while under certain conditions, and regular training time under other conditions.
Are there any way to accomplish this without having to create two sets of every unit in the tech-tree?
I'm interested too, I can't figure out how to do it.
I tried this (with maximum simplification to avoid mistakes) :
Game - Player Any Player types a chat message containing "time", matching Exactly
Unit - Add 5.0 seconds to cooldown Abil/NexusTrain on ability
(Ability of Nexus - Warp In Probe) on unit Nexus [83.50, 29.50]
And that didn't work, what is wrong with this ?
Catalogs is the best way to do this. Here I have set up my barracks to add 5 seconds to the marine training time each time a marine is completed.
Unit is completed. Add 5 second cd
Unit - Any Unit training progress is Completed
(Unit type of (Triggering progress unit)) == Marine
Catalog - Set value of Abilities BarracksTrain InfoArray.Time for player (Triggering player) to (String(((Value of Abilities BarracksTrain InfoArray.Time for player (Triggering player) as an integer) + 5)))
For live trigger help add me on Skype
Tutorial:Keeping your code clean and organised
Tutorial:Simple Tug of War system
Thanks DarlD ! That is exactly what I wanted !
I never heard about Catalog before.
I think njordys if you come back here you will find your answer, problem solved !
You must login to post a comment. Don't have an account? Register to get one!