I'm working on a map where I need a beam type spell. I'm having a bit (read: lot) of trouble getting this to work so I'm hoping there are some Data Editor pros out there who need a challenge.
The beam must go from a caster unit to a point on the ground (NOT a unit)
The beam should last 10 seconds, unless the spell channelling is manually cancelled by the player controlling the casting unit or if the spell is otherwise interrupted.
If a unit enters the beam anywhere between the launch point and the impact point, the beam will become shorter and only span between the casting unit and the unit intercepting the beam.
Units that intercept the beam should receive damage. Only one unit can be hit at a time.
(This is not a priority) The beam should turn with the casting unit, with the impact point always being in front of the caster.
I've made an illustration of the concept you can see in the picture below:
So far I figure what is needed (besides the beam graphics) is:
A Site Mover for shortening the beam on unit interception. The same Site Mover can be used if the beam is turned to either side.
A periodic Search Area for collision detection with units.
A Damage effect picking the closest unit to the position of the Site Mover.
And much more, but I'll let you guys work on that.
I haven't attached a map since my attemps are rather... messy ;)
Of course I need a Persistent, several actually. :)
I have successfully converted the Colossus' Thermal Lance attack to an ability with just one beam that slides from the caster to the end point instead of from left to right. The ability also targets the ground instead of a unit.
But thee beam type I need is quite different from the Colossus' Thermal Lance attack. Actually, it's easier to not think of it as a "Beam" per se (in regard to the SC2 editor), but merely a ray of light. If you point a laser pointer at a wall in a room with some sort of mist, you will see the little red dot at the wall, but you will also see the line between the laser pointer and the wall, due to the particles (mist) in the room. If a person steps betwen the laser pointer and the wall, the dot will now be located at the person.
There is one pre-existing ability in the SC2 editor which does this: The TerraTron Attack Beam. However, I simply cannot get this beam to show (the model when duplicating the ability), turn or break when a unit intercepts the beam. As a matter of fact, if you insert TerraTron in a map (and make him targetable, selectable and all that redundant stuff) and you fire his attack beam, it will not show either. I still inflicts the damage, though.
You need to create a line using a persistant that uses a search area with a limited arc that when it locates a unit infront of it it uses a set with a dummy effect that orders the mover to the site of the effect. For the returning to the original position you could use a validator for the final periodic effect offset that checks if the host unit does not have a certain counter buff on it which has a very short duration and is applied by the set effect that does the dummy effect for beam moving. You will aslo need the mover to move at an insane speed to get it to look right which might have it's own problems for turning. Also you using an offset SOp on the beam impact site?
I'm working on a map where I need a beam type spell. I'm having a bit (read: lot) of trouble getting this to work so I'm hoping there are some Data Editor pros out there who need a challenge.
I've made an illustration of the concept you can see in the picture below:
So far I figure what is needed (besides the beam graphics) is:
And much more, but I'll let you guys work on that.
I haven't attached a map since my attemps are rather... messy ;)
Thanks in advance
- Kafoso
What map? Also you need a persistent. I advise you read the tutorial on fixing the collossus weapon that should give you all the tools you need.
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
Of course I need a Persistent, several actually. :)
I have successfully converted the Colossus' Thermal Lance attack to an ability with just one beam that slides from the caster to the end point instead of from left to right. The ability also targets the ground instead of a unit.
But thee beam type I need is quite different from the Colossus' Thermal Lance attack. Actually, it's easier to not think of it as a "Beam" per se (in regard to the SC2 editor), but merely a ray of light. If you point a laser pointer at a wall in a room with some sort of mist, you will see the little red dot at the wall, but you will also see the line between the laser pointer and the wall, due to the particles (mist) in the room. If a person steps betwen the laser pointer and the wall, the dot will now be located at the person.
There is one pre-existing ability in the SC2 editor which does this: The TerraTron Attack Beam. However, I simply cannot get this beam to show (the model when duplicating the ability), turn or break when a unit intercepts the beam. As a matter of fact, if you insert TerraTron in a map (and make him targetable, selectable and all that redundant stuff) and you fire his attack beam, it will not show either. I still inflicts the damage, though.
You need to create a line using a persistant that uses a search area with a limited arc that when it locates a unit infront of it it uses a set with a dummy effect that orders the mover to the site of the effect. For the returning to the original position you could use a validator for the final periodic effect offset that checks if the host unit does not have a certain counter buff on it which has a very short duration and is applied by the set effect that does the dummy effect for beam moving. You will aslo need the mover to move at an insane speed to get it to look right which might have it's own problems for turning. Also you using an offset SOp on the beam impact site?
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