Is it possible to make a trigger automatically toggle auto cast ONLY on the first structure a player builds?
Example:
Player A builds his first Barrack.
The trigger automatically activates auto build on Marines, meaning that the structure will now auto produce Marines (which can be activated and deactivated with a right click on the command card)
Player A builds more Barracks later in the game. Auto build is NOT automatically activated on them... It only triggers when the first Barrack is built by a player. (So it would be the same thing if player B builds his first Barrack...)
However. a player can still toggle auto cast on and off on his Barracks, throughout the game. BUT the first Barrack will have auto cast on automatically.
"issue order" is able to turn auto cast on/off in triggers. just have a bool for every player build[players] = false, if some1 builds something if bool is false then set auto cast on, set the bool to true.
Thanks, but I want auto cast to ONLY be automatically activated on the first Barrack a player builds. When that player builds more Barracks, auto cast is NOT automatically activated on them. (But can be manually activated, if a player chooses to right click on it)
(It might seem weird, but there is an important reason for this in my map)
"issue order" is able to turn auto cast on/off in triggers. just have a bool for every player build[players] = false, if some1 builds something if bool is false then set auto cast on, set the bool to true.
Is it possible to make a trigger automatically toggle auto cast ONLY on the first structure a player builds?
Example:
Player A builds his first Barrack.
The trigger automatically activates auto build on Marines, meaning that the structure will now auto produce Marines (which can be activated and deactivated with a right click on the command card)
Player A builds more Barracks later in the game. Auto build is NOT automatically activated on them... It only triggers when the first Barrack is built by a player. (So it would be the same thing if player B builds his first Barrack...)
However. a player can still toggle auto cast on and off on his Barracks, throughout the game. BUT the first Barrack will have auto cast on automatically.
"issue order" is able to turn auto cast on/off in triggers. just have a bool for every player build[players] = false, if some1 builds something if bool is false then set auto cast on, set the bool to true.
A boolean variable set up as an array would work just fine for that.
Condition
Boolean variable [Triggering player] = false
Actions
Autocast on
set variable boolean = true
FunkyuserNaRR beat me by seconds :(
Thanks for your answers... but I don't understand how to set it up properly.
Shameless request: Would someone here mind to build the trigger for me and upload it in a test map? (I really need it to work flawlessly)
bump
Just turn auto cast on in the train ability.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
Thanks, but I want auto cast to ONLY be automatically activated on the first Barrack a player builds. When that player builds more Barracks, auto cast is NOT automatically activated on them. (But can be manually activated, if a player chooses to right click on it)
(It might seem weird, but there is an important reason for this in my map)
I try to follow these recommendations, but I am unable to build it properly as a trigger.
If someone here has time to share more detailed instructions, or even upload a test map, that would be highly appreciated!
Here is an example map
Thanks!