Im making a AI using triggers, and I could have sworn there was a way to call on abilities by number in command card. But I'm looking at it now and can't remember how and if this even existed...
im trying to write an AI script that has selected unit do command 1 from their command card.
only index of abilities is possible (as far as i know), command card could have just a passiv button. anyway you can try to access the ability with catalog triggers
You could try creating an array for the set of abilities. Then you can use 'set variable' functions to assign them to any index you like within the array. That way you can have the ai execute "ability_array[1]." If you have multiple arrays, you can add another dimension: ability_array[typeindex][abilityindex]
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Im making a AI using triggers, and I could have sworn there was a way to call on abilities by number in command card. But I'm looking at it now and can't remember how and if this even existed...
im trying to write an AI script that has selected unit do command 1 from their command card.
@Stexen: Go
only index of abilities is possible (as far as i know), command card could have just a passiv button. anyway you can try to access the ability with catalog triggers
@Stexen: Go
You could try creating an array for the set of abilities. Then you can use 'set variable' functions to assign them to any index you like within the array. That way you can have the ai execute "ability_array[1]." If you have multiple arrays, you can add another dimension: ability_array[typeindex][abilityindex]