Currently making Hero based defense, wondering how to make it so that whenever the hero is slowed it checks for a resistance and depending on that resistance the slow is only so effective.
example:
Hero: 50% slow resistance Starting movement speed - 2 Enemy: Slows Hero by 20% Hero: Slow is only 50% effective = 10% slow, Final movement speed - 1.8
For stun resistance i was thinking of it reducing the duration of the stun
Hero: 50% stun resistance Enemy: Stuns for 2 seconds Hero: Stun is only 50% effective = 1 second stun
Even if it's a link to a tutorial, it would be greatly appreciated Thanks for your help
For the reduced slow you would need to use stacks of a buff and have the resistance buff reduce the number of slow stacks applied by the attacker. This sort of comparative logic is best done using a requirement and a Player Requirement type validator. For the stun duration there is the (None): Modification - Behavior Category Duration Factor field.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Currently making Hero based defense, wondering how to make it so that whenever the hero is slowed it checks for a resistance and depending on that resistance the slow is only so effective.
example:
Hero: 50% slow resistance Starting movement speed - 2
Enemy: Slows Hero by 20%
Hero: Slow is only 50% effective = 10% slow, Final movement speed - 1.8
For stun resistance i was thinking of it reducing the duration of the stun
Hero: 50% stun resistance
Enemy: Stuns for 2 seconds
Hero: Stun is only 50% effective = 1 second stun
Even if it's a link to a tutorial, it would be greatly appreciated
Thanks for your help
For the reduced slow you would need to use stacks of a buff and have the resistance buff reduce the number of slow stacks applied by the attacker. This sort of comparative logic is best done using a requirement and a Player Requirement type validator. For the stun duration there is the (None): Modification - Behavior Category Duration Factor field.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg