Is there a way to decrease/increase the unit build time using triggers?
For example if a unit builds another barracks or researches an upgrade, then instead of taking 20 seconds to build a marine, it will take him 10 seconds.
Have you tried setting the training time with catalog field value set?
I think that should do the trick.. It's not all fields that can be written, but is just a number, so I think it can..
Hey thank you for your suggestion! Although I am having a bit of trouble with it.
Here is my trigger:
Catalog - Set value of Abilities "BarracksTrain" "InfoArray[0].Unit.Time" for player (Triggering player) to "5"
It's giving me an error that it wasnt written. I tried changing it to anything, and it also gave me the same error. Any idea what is the name of the build time variable?? (InfoArray[0].Unit.something)
Is there a way to decrease/increase the unit build time using triggers?
For example if a unit builds another barracks or researches an upgrade, then instead of taking 20 seconds to build a marine, it will take him 10 seconds.
Have you tried setting the training time with catalog field value set?
I think that should do the trick.. It's not all fields that can be written, but is just a number, so I think it can..
@SBeier: Go
Hey thank you for your suggestion! Although I am having a bit of trouble with it. Here is my trigger: Catalog - Set value of Abilities "BarracksTrain" "InfoArray[0].Unit.Time" for player (Triggering player) to "5"
It's giving me an error that it wasnt written. I tried changing it to anything, and it also gave me the same error. Any idea what is the name of the build time variable?? (InfoArray[0].Unit.something)
Thank you again.
If you change the field, save the map, open it in an mpq editor, and open the correct file in there, you find a section something like this.
<CAbilTrain id="BarracksTrain">
<InfoArray index="Train1" Time="20"/>
</CAbilTrain>
So, the trigger becomes
Catalog - Set value of Abilities "BarracksTrain" "InfoArray[Train1].Time" for player 1 to "7"
Thats how I do when I don't know what the name of the Field Path is.
Thank you!!! It worked xD You don't know how much help you've been ^_^ I can move on with making my mod now >:]