I created a structure that creates units (Heroes). And after create the Hero, i want the ability disappear. How can i make this?
And, another important thing, how can i make the structure, (who make heroes) be shared by everyone on the team?
Thank you guys.
EDIT: I have another question, i locked the camera for all players at the start of the game, and i'll just unlock if the player select a hero (use ability) in the structure. How can i do this? What's the condition for this? Thanks.
About the camera, I know how to lock and unlock, what i need is a "if", if the player do something (have one unit/cast some skill), than the camera is unlocked.
Now i need to give the selected unit to a player, because this units belong to player 10. And i started a new event, i think this is how i should start right?
And I put all these units into a UnitGroup01. I made another units too, for the second team, and I put all these units into UnitGroup02 (player11).
I'm doing this right? What's the next step? (Give the selected/clicked unit to a player)
Each unit that I select, change to me., i think this is the way. But again, I need a condition, like Supply block, per example (I gave one Overlord for each player hidden on the map, with 1 supply). If the player select one unit, he can't select another, and the game move on. I think that would be amazing! Do you guys have any idea how to do this? Or whatever another condition.
EDIT: I made another change, now the effect just work if the selected unit are in the Region001 (A big circle around the units).
Have something like this in the editor?: "If player have number of Units = 1, stop run some trigger."
I think you're trying things too fast here. You needed the structure to make a unit for the player, and that you could easily get by an Interact ability, so the neutral structure can be used by all players. And you needed to limit each player to one hero, this could be done by a requirement.
What you're trying to do there via triggers will be more complex and longer to achieve, not to mention that it will be triggered a whole lot, because players select units all the time, which is unnecessary and you should avoid whenever possible.
I think you're trying things too fast here. You needed the structure to make a unit for the player, and that you could easily get by an Interact ability, so the neutral structure can be used by all players. And you needed to limit each player to one hero, this could be done by a requirement.
I think data is too hard to deal, I can not do what you said. And the idea work so well in my mind, I want to make it easy to understand as possible. Just one click in the Hero, and play, can't get easier. My cat can do this.
@Diego6D: Go Data isn't that hard, you just have to get used to it. I already told you the exact requirement you need, and the Interact ability is even easier, because you can duplicate the one used by the Xel'Naga tower and modify a single flag to make it work the way you need.
This way the hero will be already created for the player who clicked the structure, no need to change the owner. And you won't have a trigger being fired all the time, which could cause performance issues if your map uses a lot of triggers. But these are my opinions, if you feel like solving it with triggers other guys around here are more qualified to help you.
What you want is to set a global switch array to TRUE when the player selects his hero. In the conditions for the hero selection trigger, that switch must be FALSE. The switch array size should be equal to the number of players in the game (16 is a safe number to avoid errors.)
Oh my God! IT'S WORKING!! Perfectly as I wanted., thank you so much BasharTeg!! You're amazing! I'll put your name in the credits, along with the name of a few that have helped me. :D Thanks guys!!
I created a structure that creates units (Heroes). And after create the Hero, i want the ability disappear. How can i make this?
And, another important thing, how can i make the structure, (who make heroes) be shared by everyone on the team?
Thank you guys.
EDIT: I have another question, i locked the camera for all players at the start of the game, and i'll just unlock if the player select a hero (use ability) in the structure. How can i do this? What's the condition for this? Thanks.
You can use the "unit uses ability" as the event. To get rid of the ability with triggers you can use the action "allow/disallow ability for player".
@MaskedImposter: Go I did this part.
About the camera, I know how to lock and unlock, what i need is a "if", if the player do something (have one unit/cast some skill), than the camera is unlocked.
@Diego6D: Go For the single use you can create a requirement, no triggers needed. Make one like this:
SHOW
Not -> Count unit (your hero) total
If the hero isn't created instantly and you need to block players from queueing more, then you can add to it:
And -> Not -> Count unit (your hero) Queued or Better \-> Not -> Count unit (your hero) total
This way the player will make one of the hero unit and never be able to make a second one.
I had a much better idea! Look at the picture:
Now i need to give the selected unit to a player, because this units belong to player 10. And i started a new event, i think this is how i should start right?
And I put all these units into a UnitGroup01. I made another units too, for the second team, and I put all these units into UnitGroup02 (player11).
I'm doing this right? What's the next step? (Give the selected/clicked unit to a player)
Thanks for helping guys!
Look at this:
http://i.imgur.com/mB9AcLx.png
Each unit that I select, change to me., i think this is the way. But again, I need a condition, like Supply block, per example (I gave one Overlord for each player hidden on the map, with 1 supply). If the player select one unit, he can't select another, and the game move on. I think that would be amazing! Do you guys have any idea how to do this? Or whatever another condition.
EDIT: I made another change, now the effect just work if the selected unit are in the Region001 (A big circle around the units).
Have something like this in the editor?: "If player have number of Units = 1, stop run some trigger."
I think you're trying things too fast here. You needed the structure to make a unit for the player, and that you could easily get by an Interact ability, so the neutral structure can be used by all players. And you needed to limit each player to one hero, this could be done by a requirement.
What you're trying to do there via triggers will be more complex and longer to achieve, not to mention that it will be triggered a whole lot, because players select units all the time, which is unnecessary and you should avoid whenever possible.
I think data is too hard to deal, I can not do what you said. And the idea work so well in my mind, I want to make it easy to understand as possible. Just one click in the Hero, and play, can't get easier. My cat can do this.
@Diego6D: Go Data isn't that hard, you just have to get used to it. I already told you the exact requirement you need, and the Interact ability is even easier, because you can duplicate the one used by the Xel'Naga tower and modify a single flag to make it work the way you need.
This way the hero will be already created for the player who clicked the structure, no need to change the owner. And you won't have a trigger being fired all the time, which could cause performance issues if your map uses a lot of triggers. But these are my opinions, if you feel like solving it with triggers other guys around here are more qualified to help you.
@Diego6D: Go
What you want is to set a global switch array to TRUE when the player selects his hero. In the conditions for the hero selection trigger, that switch must be FALSE. The switch array size should be equal to the number of players in the game (16 is a safe number to avoid errors.)
i.e.
Oh my God! IT'S WORKING!! Perfectly as I wanted., thank you so much BasharTeg!! You're amazing! I'll put your name in the credits, along with the name of a few that have helped me. :D Thanks guys!!
Look: http://i.imgur.com/tSdoYC9.png
Working perfectly, and the camera movement when you select the unit is wonderful! (I changed to 2.0 seconds)
Thank you so much!