Changing Illari Resource

Hello, I’m trying to make my first workshop lobby, but i encountered a problem.

I’m trying to change the Resource on the Illari’s healing whenever she crit or deal damage ( different amount). I can’t find the right way to change resource on Actions

Event - Player dealt Critical Damage
Team - ALL
Player - Illari

CONDITIONS
Event Was Critical Hit == True

ACTIONS

Set Ability Resource(Event Player, Ability Resource (Event Player, Button(Secondary Fire))+300, Ability Resiyrce (Event Player, Button(Secondary Fire)))

Thanks in advance for the help =)

Edit: I tried with different heroes based on resource and the code works

Action
Set Ability Resource(Event Player, Button(Secondary Fire),100)

But does not work with illari

For some reason, Illari’s Primary Fire can’t trigger that action, however, it can trigger other actions like Small Message.

If it helps, Melee can trigger it and with Illari you have to set resources to 0 instead of 100 :person_shrugging:

1 Like

thanks for the info, I would have spent hours trying lol.

yeah the illari primary seems to be the problem. I’ve done a work around using interact key.

1 Like

they’ve been stop updating some default data for new hero,such as Lifeweaver or Kiriko if you try to access ammo value it always go zero

niceBro thank youuuu