I want to create a unit which has a 10% chance to slow a unit by 20% for 3 seconds on attack.
I tried creating a behaviour which reduced movement speed by 20% and initialized a damage effect. However, this resulted in all kinds of strange errors, such as the damage not showing up when hovering over the icon in-game.
The attacking unit's weapon has one Effect attached. In most cases this Effect will be of the type "Damage". Other Effects do other things than damage, e.g. the "Marauder - Punisher Grenades" attack slows a target on attack when researched, which is in line with your request. Take a look at this weapon.
If you copy the "Marauder - Punisher Grenades (Apply Slow Behavior)", simply change the "Effect: Chance" to 0.1 (10%).
Use the UI - Damage Display Effect field. Put your damage effect in there and that is what shows for the weapon (can be a dummy effect eg leviathan tentacles).
With the slow there are several ways of doing it. In short you want either a weapon with a Set effect that does the Apply Behavior and Damage effects or have a Buff behaviour on the unit with a damage response on the attacker to apply a buff that slows time for the target or slows move speed and attack rate.
I want to create a unit which has a 10% chance to slow a unit by 20% for 3 seconds on attack.
I tried creating a behaviour which reduced movement speed by 20% and initialized a damage effect. However, this resulted in all kinds of strange errors, such as the damage not showing up when hovering over the icon in-game.
So, how would I go about creating this effect?
@Ccx55: Go
The attacking unit's weapon has one Effect attached. In most cases this Effect will be of the type "Damage". Other Effects do other things than damage, e.g. the "Marauder - Punisher Grenades" attack slows a target on attack when researched, which is in line with your request. Take a look at this weapon.
If you copy the "Marauder - Punisher Grenades (Apply Slow Behavior)", simply change the "Effect: Chance" to 0.1 (10%).
Use the UI - Damage Display Effect field. Put your damage effect in there and that is what shows for the weapon (can be a dummy effect eg leviathan tentacles).
With the slow there are several ways of doing it. In short you want either a weapon with a Set effect that does the Apply Behavior and Damage effects or have a Buff behaviour on the unit with a damage response on the attacker to apply a buff that slows time for the target or slows move speed and attack rate.
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