• 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.

[Solved] Increasing an attacks number of targets via a trigger not working

Level 2
Joined
Dec 5, 2017
Messages
15
  • Events
    • Unit - A unit Learns a skill
  • Conditions
    • (Learned Hero Skill) Equal to Cleaving Glaive
  • Actions
    • Unit - Set Unit: (Triggering unit)'s Weapon Integer Field: Attack Maximum Number Of Targets ('utc1')at Index:0 to Value: (((Level of Cleaving Glaive for (Triggering unit)) x 2) + 3)
I've got a Huntress hero in my map with her usual her attack that bounces twice and an ability that's supposed to increase the number of bounces by 2 as you level that ability.
I can't seem to get this triggers "action" to do anything though and I'm not sure why.
 
Level 2
Joined
Dec 5, 2017
Messages
15
Yeah, its set to bounce. The attack its self works great. Bounces twice and everything. It just didn't then bounce 5 times after taking a level in cleaving glaive. I tried a bunch of different stuff but it seems like "Weapon Integer Field: Attack Maximum Number Of Targets" is just broken like Uncle said.

Which is unfortunate.

I went messing around with triggers giving upgrade levels instead and that seemed to well enough work.

Learning the editor is an adventure lol
 
Wonder if upgrades will solve this for you? Since reforged has enabled decreasing researches.
Attack Taget Count that is.
 
Level 2
Joined
Dec 5, 2017
Messages
15
Wonder if upgrades will solve this for you? Since reforged has enabled decreasing researches.
Attack Target Count that is.
Oh, thanks. I totally missed that thread. my bad for posting a similar thread.

but the upgrade system seems to work pretty well. Kinda better in some ways.
Didn't know downgrading was reforged addition but that seems to work so far.

Did you try 1 as index instead of 0? They are very inconsistent with their indices
A lot of the places I read said index 0 referred to weapon 1 so I didn't really experiment much with that.
 
Level 2
Joined
Dec 5, 2017
Messages
15
The fields are not consistent, and it's worth trying since nothing else seems to work and it's just 1 number in one line of code. Most are 0-indexed but some are 1-indexed.
Index 1 worked! I feel a little dumb now.
Do you think it's because "Weapon Integer Field: Attack Maximum Number Of Targets ('utc1')" wants index 1 for attack 1 or if its priest of the moon hero's first attack is index 1?
Or action type just defaulting to 0 as a probably unintentional troll D:?
 
Last edited:
Top