I have a Beam attack that fires the same distance every time with a specific width as well. Regardless of the target distance, it will always fire and deal damage to all units in a straight line. I do this with periodic offsets and set the location to Source. I use a nice beam visual effect so its perfect.
Only thing is someone had an idea of making the damage deal less at the furthest points of the beam so that it has diminishing returns the farther you are away from the target. Not sure how to go about this since I'm using a periodic effect which does a search every 0.5 offsets. I use "no markers" to prevent damage from stacking multiple times. Anyhow, Its almost like I would need to setup either a validator to validate the range of the target from the caster to find the appropriate damage to deal and have a SET effect which applies all of the various damage types (types as in various distances).
I was thinking switches maybe but haven't really worked with them much. Maybe there is a tutorial or someone could help me understand how to use the switches?
I have a Beam attack that fires the same distance every time with a specific width as well. Regardless of the target distance, it will always fire and deal damage to all units in a straight line. I do this with periodic offsets and set the location to Source. I use a nice beam visual effect so its perfect.
Only thing is someone had an idea of making the damage deal less at the furthest points of the beam so that it has diminishing returns the farther you are away from the target. Not sure how to go about this since I'm using a periodic effect which does a search every 0.5 offsets. I use "no markers" to prevent damage from stacking multiple times. Anyhow, Its almost like I would need to setup either a validator to validate the range of the target from the caster to find the appropriate damage to deal and have a SET effect which applies all of the various damage types (types as in various distances).
I was thinking switches maybe but haven't really worked with them much. Maybe there is a tutorial or someone could help me understand how to use the switches?
Just get your persistent to use different searches with damage effects that do less.
Switches are pretty straight forward. https://sc2mapster.gamepedia.com/Data/Effects/Switch
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