I'm making a custom hero map where the player can choose their hero and which abilities they want, but I'm stuck on how I would go about adding those abilities to the unit. I've been trying things for the past couple days and got as far as using the Catalog triggers, but when I try to modify the AbilArray[x].Link or CardLayouts[1].LayoutButtons I get "catalog field could not be written" errors.
I know there's a couple maps out there doing this and many other in development but I haven't been able to find any tutorials on the topic. The closest I found was to assign every ability in the game to every hero and then enable/disable them via triggers, but then I'd have to create a Q, W, E, and R button for each ability as well to assign to each command card slot and somehow enable/disable them.
Requirements:
- Be able to assign an ability button to a given command card slot
- Be able to set the ability button's hotkey
Example:
- Start up a map with a marine unit
- Enter text: "snipeW" and the marine gets the snipe ability added to slot 2,1 with hotkey W
- Enter text: "snipeE" and the marine gets the snipe ability added to slow 2,2 with hotkey E
I recently started work on my first sc2 map and I'm creating a custom hero defense style of game. All the heroes are relatively identical except for their model so I was thinking that I would create a HeroTemplate unit that each Hero would then use as its parent. This way if I wanted to change the starting health or energy of each unit, I need only update in one place then have all children inherit the value.
Has anyone had success with this method? Or does anyone know of a better way of doing it?
I ran into a problem where any unit that inherits from my HeroTemplate unit can't be selected in game. I try to click them, hit F2, or drag a selection box over them and nothing happens. I can attack the units though. I tried comparing all the unit fields to a hero made using the default unit and everything appears to be exactly the same.
I currently have over 20 models planned so if I need to change stats to balance or add a new ability it seems there should be a single source of truth for all of them rather than updating all 20+ individually.
0
I'm making a custom hero map where the player can choose their hero and which abilities they want, but I'm stuck on how I would go about adding those abilities to the unit. I've been trying things for the past couple days and got as far as using the Catalog triggers, but when I try to modify the AbilArray[x].Link or CardLayouts[1].LayoutButtons I get "catalog field could not be written" errors.
I know there's a couple maps out there doing this and many other in development but I haven't been able to find any tutorials on the topic. The closest I found was to assign every ability in the game to every hero and then enable/disable them via triggers, but then I'd have to create a Q, W, E, and R button for each ability as well to assign to each command card slot and somehow enable/disable them.
Requirements: - Be able to assign an ability button to a given command card slot - Be able to set the ability button's hotkey
Example: - Start up a map with a marine unit - Enter text: "snipeW" and the marine gets the snipe ability added to slot 2,1 with hotkey W - Enter text: "snipeE" and the marine gets the snipe ability added to slow 2,2 with hotkey E
Any help would be greatly appreciated. :)
0
I recently started work on my first sc2 map and I'm creating a custom hero defense style of game. All the heroes are relatively identical except for their model so I was thinking that I would create a HeroTemplate unit that each Hero would then use as its parent. This way if I wanted to change the starting health or energy of each unit, I need only update in one place then have all children inherit the value.
Has anyone had success with this method? Or does anyone know of a better way of doing it?
I ran into a problem where any unit that inherits from my HeroTemplate unit can't be selected in game. I try to click them, hit F2, or drag a selection box over them and nothing happens. I can attack the units though. I tried comparing all the unit fields to a hero made using the default unit and everything appears to be exactly the same.
I currently have over 20 models planned so if I need to change stats to balance or add a new ability it seems there should be a single source of truth for all of them rather than updating all 20+ individually.