• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Modifying Missile (Bounce) attacks with triggers/upgrades

Status
Not open for further replies.
Level 9
Joined
Aug 16, 2019
Messages
83
I have a unit with a Missile (bounce) attack on which I need to be able to modify both the number of targets and the loss factor. Luckily there are triggers for both of these (Set Unit Weapon Real/Integer Field), unluckily they have no effect whatsoever (like 90 % of the Weapon Fields). Seriously hope that gets fixed one day, because it would make a million things easier.

Anyways I'm fairly certain the number of targets can still get modified using an upgrade based on 'Upgrade Moon Glaive' but loss factor isn't as simple. Is there any way that I can possibly do that through triggers, upgrades, pretty much anything?
 
Level 9
Joined
Aug 16, 2019
Messages
83
Okay we're definitely dealing with unintended behavior here but... it works? When I use:
  • Unit - Set Unit: Huntress 0088 <gen>'s Weapon Real Field: Attack Damage Loss Factor ('udl1')at Index:1 to Value: 0.10
It doesn't set the Damage Factor to 0.1 but instead increases it by 0.1 for Weapon 1 (which you would expect to be index 0, but that does nothing). And I can also do the opposite to decrease the Damage Loss Factor:
  • Unit - Set Unit: Huntress 0088 <gen>'s Weapon Real Field: Attack Damage Loss Factor ('udl1')at Index:1 to Value: -0.10
Which works as well.

Weird shit but it works for what I need, so thanks! Wouldn't have thought to try that otherwise

Edit: Apparently they just use attack index 1 and up and with that I got Maximum Number of Attack Targets to work as well. I know some of the newer triggers count from 0 though so there's really no consistency.
 
Last edited:
Status
Not open for further replies.
Top