Thanks, the problem is that no matter what type of validators I use for the Switch effect, it always spawns a unit... No matter if I target a unit or a location, a unit is always spawned there.. It never adds the buff :(
I tried to solve the spell once again, but I just can not get it to work... :(
The spell is supposed to create a unit when it targets the ground, and add a buff to an enemy unit when it targets a unit. No matter what validators or effects I use, the spell always create a unit, it never adds a buff.
Check out the Kerrigan hero spell that's the leap attack from the hots campaign. I believe it does what you're looking for and could be a guide template
Sorry, still can't read this. From what I can see I can't make out what your Location - Values are for your Validators. That is very important field for the validators to function correctly.
I see what you are describing now.... I tried it on my end and had the same issue, so I flipped the unit and points around on the switch and it applied the buff successfully but then does not allow you to target a point. This is because it is checking the first validator on the Switch Effect and showing that a unit is required. However, with your current setup (Point being first) it works but its not applying the buff because regardless of whether its a point or target the validator is returning all targets as points which tells me the Point Location Validator is passing on targets. That means the Point Validator is the culprit.
Unless I am mistaken and someone else can come in here and solve the mystery, I'd say a work around might be necessary. Maybe killing the created unit if there is an enemy nearby. (Use Remove on Death type so it does not show death animation or sound) Unfortunately the Editor is plagued with all kinds of anomalies. I feel like half of the time I'm doing work arounds just to get simple things to work correctly. Sorry I can't be of greater help! I did try!
Thanks for giving it a try! I really appreciate your effort!
I will try to come up with a workaround or simply heavily adjust what I have in mind for the ability. Haha I thought this would be easy, but sometimes the seemingly easy abilities turn out to be hard to build in the editor :D
I am trying to make a spell with two modes:
1) If you target the ground, the spell spawns a unit at that location.
2) If you target an enemy unit, the spell adds a buff to that unit.
Is that possible? I thought it would be simple but I can not find a way for it to properly target the ground AND units...
So you want to use a Switch effect based on two Location Type validators.
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
Thanks, the problem is that no matter what type of validators I use for the Switch effect, it always spawns a unit... No matter if I target a unit or a location, a unit is always spawned there.. It never adds the buff :(
The validators should be mutually exclusive.
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
I tried to solve the spell once again, but I just can not get it to work... :(
The spell is supposed to create a unit when it targets the ground, and add a buff to an enemy unit when it targets a unit. No matter what validators or effects I use, the spell always create a unit, it never adds a buff.
Any more ideas?
Check out the Kerrigan hero spell that's the leap attack from the hots campaign. I believe it does what you're looking for and could be a guide template
<Click Here> To See My Epic Single Player Campaign (LifeForceCampaign.com)
Can you show the settings of your Switch Effect, Apply Behavior, and Validator Settings?
Sure, see the uploaded picture in this post :)
Sorry the image is too small to make out any details.....
Sorry, here is a new one with twice the size, hopefully it is readable
Sorry, still can't read this. From what I can see I can't make out what your Location - Values are for your Validators. That is very important field for the validators to function correctly.
I upload the print screens separately, are they readable now?
Sorry for the inconvenience T_T
Here comes the sixth picture that didn't fit in the post above
I see what you are describing now.... I tried it on my end and had the same issue, so I flipped the unit and points around on the switch and it applied the buff successfully but then does not allow you to target a point. This is because it is checking the first validator on the Switch Effect and showing that a unit is required. However, with your current setup (Point being first) it works but its not applying the buff because regardless of whether its a point or target the validator is returning all targets as points which tells me the Point Location Validator is passing on targets. That means the Point Validator is the culprit.
Unless I am mistaken and someone else can come in here and solve the mystery, I'd say a work around might be necessary. Maybe killing the created unit if there is an enemy nearby. (Use Remove on Death type so it does not show death animation or sound) Unfortunately the Editor is plagued with all kinds of anomalies. I feel like half of the time I'm doing work arounds just to get simple things to work correctly. Sorry I can't be of greater help! I did try!
Thanks for giving it a try! I really appreciate your effort!
I will try to come up with a workaround or simply heavily adjust what I have in mind for the ability. Haha I thought this would be easy, but sometimes the seemingly easy abilities turn out to be hard to build in the editor :D