I have a hero with multiple ammo units. Upon activing a particular buff, the ammo units are supposed to be disabled. Only one ammo unit uses a persistent effect and is internal while the others are external and are supposed to automatically fire at targets unless the hero activates the buff.
What I am trying to do is deactivate the ammo units ability to Fire when the hero unit actives the buff. However, No matter how much I try to add the ammo units to a unit group and then trigger the unit group to disable their abilities it doesn't work. I am completely confounded as to why these triggers are not setup properly. Please, any help would be greatly appreciated, Here is a breakdown of the triggers.
''Global Variable''
''Battlestar Fighter Group = (Empty unit group) <Unit Group>''
''Battlestar Fighter Group Trigger''
''Events''
''Unit - Any Unit creates a unit with ability Any or behavior Any''
''Local Variables''
''Conditions''
''(Unit type of (Triggering unit)) == Battlestar Carrier''
''Actions''
''Unit Group - Add (Last created magazine ammo unit) to Battlestar Fighter Group''
So I am attempting to add the ammo units to the global variable every time the ammo unit is created with the hanger ability. And then I have a second trigger for the buff ability.
''Battlestar Laser Batteries''
''Events''
''Unit - Any Unit uses Battlestar laser batteries at Generic3 - Execute stage (Ignore shared abilities)''
''Local Variables''
''Conditions''
''(Unit type of (Triggering unit)) == Battlestar Carrier''
''Actions''
''Unit - Disable the Attack ability for (Unit (Number of Living units in Battlestar Fighter Group) from Battlestar Fighter Group)''
Anyway, this doesn't work. I haven't even seen evidence that the ammo units are even being added to the unit group. I don't understand why.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have a hero with multiple ammo units. Upon activing a particular buff, the ammo units are supposed to be disabled. Only one ammo unit uses a persistent effect and is internal while the others are external and are supposed to automatically fire at targets unless the hero activates the buff.
What I am trying to do is deactivate the ammo units ability to Fire when the hero unit actives the buff. However, No matter how much I try to add the ammo units to a unit group and then trigger the unit group to disable their abilities it doesn't work. I am completely confounded as to why these triggers are not setup properly. Please, any help would be greatly appreciated, Here is a breakdown of the triggers.
''Global Variable''
''Battlestar Fighter Group = (Empty unit group) <Unit Group>''
''Battlestar Fighter Group Trigger''
''Events'' ''Unit - Any Unit creates a unit with ability Any or behavior Any'' ''Local Variables'' ''Conditions'' ''(Unit type of (Triggering unit)) == Battlestar Carrier'' ''Actions'' ''Unit Group - Add (Last created magazine ammo unit) to Battlestar Fighter Group''
So I am attempting to add the ammo units to the global variable every time the ammo unit is created with the hanger ability. And then I have a second trigger for the buff ability.
''Battlestar Laser Batteries''
''Events'' ''Unit - Any Unit uses Battlestar laser batteries at Generic3 - Execute stage (Ignore shared abilities)'' ''Local Variables'' ''Conditions'' ''(Unit type of (Triggering unit)) == Battlestar Carrier'' ''Actions'' ''Unit - Disable the Attack ability for (Unit (Number of Living units in Battlestar Fighter Group) from Battlestar Fighter Group)''
Anyway, this doesn't work. I haven't even seen evidence that the ammo units are even being added to the unit group. I don't understand why.