I was thinking if someone knew anything about making an ability or behavior that would supply minerals to the player using the weapon that a unit uses, similar to the effect that feedback carries but instead of depleting energy, it only requires attacking the enemy with its weapon.
Not sure how this would fit in, but I'm assuming it would fit in either the abilities or behaviors and effects.
I was thinking if someone knew anything about making an ability or behavior that would supply minerals to the player using the weapon that a unit uses, similar to the effect that feedback carries but instead of depleting energy, it only requires attacking the enemy with its weapon.
Not sure how this would fit in, but I'm assuming it would fit in either the abilities or behaviors and effects.
Any ideas?
The Modify Player effect can adjust resources of the target player.
There is no leech for % resources though, you would need triggers for that.
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
Like;
When an unit attacks another unit, the attacking unit will gain like 5 minerals?
@DrSuperEvil: Go
So do I just add that on as a secondary effect to the weapon? And would there ever be any need of a behavior added along with it?
@Wacclian321: Go
That is correct, the player should collect minerals with each attack on an enemy unit or structure.
Just add a Set effect that has the Modify Player effect and the rest of the weapon effect tree.
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
@DrSuperEvil: Go
What do I add onto the Modify Player effect? Because the "resources" and the "resources collected" effects don't seem to do anything.
Set the Effect - Player - Value to caster?
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
@DrSuperEvil: Go
Thanks. I'll try that out.