- Joined
- Jun 10, 2019
- Messages
- 69
Hi all,
I'm attempting to make an ability that's very similar to the Keeper of the Grove's Force of Nature spell, but with one key difference: the summoned treants (renamed to "entlings") get bonus attack damage equal to the hero's bonus intelligence (i.e., if the hero has 40 base intelligence + 15 intelligence from items, the entlings will have 15 bonus attack damage).
I thought this would be a very simple trigger - which it kind of is; it's only 6 lines long - but I'm running aground.
I've given the entlings an ability based on the item ability "Item Damage Bonus (+1)," and my goal is to use triggers to edit the integer data field "Data - Attack Bonus" so that it is equal to the hero's bonus intelligence.
Please see the trigger below:
1) The trigger's event is working
2) The summoned entlings are registering as the summoned unit
3) The hero is registering as the summoning unit
4) The trigger is calculating bonusIntelligence correctly
5) Changing the level in the last line of the trigger has no effect; it stays at the default Attack Bonus value regardless
Any help you could provide would be greatly appreciated!
Thanks!
Edit: I do know that one workaround is to make multiple levels of the bonus attack damage ability, but I don't think that will work in this instance, as the hero I'm designing will (hopefully) be able to stack bonus intelligence without limit.
I'm attempting to make an ability that's very similar to the Keeper of the Grove's Force of Nature spell, but with one key difference: the summoned treants (renamed to "entlings") get bonus attack damage equal to the hero's bonus intelligence (i.e., if the hero has 40 base intelligence + 15 intelligence from items, the entlings will have 15 bonus attack damage).
I thought this would be a very simple trigger - which it kind of is; it's only 6 lines long - but I'm running aground.
I've given the entlings an ability based on the item ability "Item Damage Bonus (+1)," and my goal is to use triggers to edit the integer data field "Data - Attack Bonus" so that it is equal to the hero's bonus intelligence.
Please see the trigger below:
-
Walking Woods Cast
-
Events
- Unit - A unit Spawns a summoned unit
-
Conditions
- (Unit-type of (Summoned unit)) Equal to Entling
-
Actions
- Set VariableSet bonusIntelligence = ((Intelligence of (Summoning unit) (Include bonuses)) - (Intelligence of (Summoning unit) (Exclude bonuses)))
- Ability - Set Ability: (Unit: (Summoned unit)'s Ability with Ability Code: Attack Damage Bonus )'s Integer Level Field: Attack Bonus ('Iatt') of Level: 0 to bonusIntelligence
-
Events
1) The trigger's event is working
2) The summoned entlings are registering as the summoned unit
3) The hero is registering as the summoning unit
4) The trigger is calculating bonusIntelligence correctly
5) Changing the level in the last line of the trigger has no effect; it stays at the default Attack Bonus value regardless
Any help you could provide would be greatly appreciated!
Thanks!
Edit: I do know that one workaround is to make multiple levels of the bonus attack damage ability, but I don't think that will work in this instance, as the hero I'm designing will (hopefully) be able to stack bonus intelligence without limit.
Last edited: