Hey, so I'm trying to create a map that is going to rely heavily on autocasting unit training. I'm trying to figure out how to make unit training autocast once left-clicked, and then make it cancel other autocasts when selected (to make sure only the unit selected is trained).
Additionally, I am trying to find out how to give structures to the player that destroyed them. There will be limited structures on the map, and the player that gets the last hit on it should, instead of destroying it, gain control of it.
If this is not possible, is there a way to instead recreate the same building instantaneously where the last one existed, under the new player's control? I expect units could be in the way during building replacement by this method.
there is an action issue order in triggers. instead of ability without target use "set autocast" to either true or false. to make things easier for you i would group the abilities on the spawning building to ability slots 1-15 and loop through the abilities and set all to false and the one used to true.
Hey, so I'm trying to create a map that is going to rely heavily on autocasting unit training. I'm trying to figure out how to make unit training autocast once left-clicked, and then make it cancel other autocasts when selected (to make sure only the unit selected is trained).
Additionally, I am trying to find out how to give structures to the player that destroyed them. There will be limited structures on the map, and the player that gets the last hit on it should, instead of destroying it, gain control of it.
If this is not possible, is there a way to instead recreate the same building instantaneously where the last one existed, under the new player's control? I expect units could be in the way during building replacement by this method.
Thanks!
Not sure about the first part, sounds like something for the data editor.
As for the second part, yes you could replicate one instantaneously, or you could just revive it instantly too. Something like this should work
@Likai31197: Go
there is an action issue order in triggers. instead of ability without target use "set autocast" to either true or false. to make things easier for you i would group the abilities on the spawning building to ability slots 1-15 and loop through the abilities and set all to false and the one used to true.
Thanks. I'll give it a shot!
This was originally a long post of an error. I figured things out and got an acceptable result for autocasting. Thank you for your help, Funky!
Additionally, I have tried Masked's trigger and I've gotten it to work. Thank you very, very much!