I am currently in the process of developing a game centered around players controlling only one hero unit each. Is there a way in the Starcraft II editor to keep a player's selection locked to that unit? For those who have played it, this would be pretty much a mimic of the League of Legends system (hero is always selected, always controlled, always showing abilities/command card etc.)
Thanks in advance for any insight you all can give!
You can force the player into selecting a specific unit with triggers. Whenever the player selects a unit, deselect it and select the desired unit. If you want to display target info as well, you can create and show a custom dialog and return the unit info when the unit selection event is triggered.
Quote from ScorpSCII:
You can force the player into selecting a specific unit with triggers. Whenever the player selects a unit, deselect it and select the desired unit. If you want to display target info as well, you can create and show a custom dialog and return the unit info when the unit selection event is triggered.
----
I do this in a game I am working on; it works very well. For a newer editor though; it may be difficult to create the dialogs to display a units info.
By doing this, unit selections can only be manipulated with triggers.
If you need other units to be clickable (for, say, target info as mentioned), you can use the Unit Is Clicked event. Just make sure the clickable unit's "Cannot Be Clicked" flag is unchecked in the data module.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello everyone!
I am currently in the process of developing a game centered around players controlling only one hero unit each. Is there a way in the Starcraft II editor to keep a player's selection locked to that unit? For those who have played it, this would be pretty much a mimic of the League of Legends system (hero is always selected, always controlled, always showing abilities/command card etc.)
Thanks in advance for any insight you all can give!
You can force the player into selecting a specific unit with triggers. Whenever the player selects a unit, deselect it and select the desired unit. If you want to display target info as well, you can create and show a custom dialog and return the unit info when the unit selection event is triggered.
Quote from ScorpSCII:
You can force the player into selecting a specific unit with triggers. Whenever the player selects a unit, deselect it and select the desired unit. If you want to display target info as well, you can create and show a custom dialog and return the unit info when the unit selection event is triggered.
----
I do this in a game I am working on; it works very well. For a newer editor though; it may be difficult to create the dialogs to display a units info.
Skype: [email protected] Current Project: Custom Hero Arena! US: battlenet:://starcraft/map/1/263274 EU: battlenet:://starcraft/map/2/186418
A better way would be to disable user selection completely.
By doing this, unit selections can only be manipulated with triggers.
If you need other units to be clickable (for, say, target info as mentioned), you can use the Unit Is Clicked event. Just make sure the clickable unit's "Cannot Be Clicked" flag is unchecked in the data module.