God I hate the Data Editor.
I copied Medic's Heal ability to adapt it so that it takes away energy from a building that is supposed to act as an "Energy Fountain" to give back energy to nearby spellcasters.
I added a "Has Energy" flag, and a few "Has Energy" validators here and there.
Tested it, and my Dark Shrine has the ability, I can target spellcasters properly and it won't send any error message, but the ability itself won't do anything. No energy transfer.
Grrr!
Post has been edited 1 time(s), last time on Dec 20 2012, 10:53 pm by payne.
None.
I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.
Only one problem that I found out with your solution Ahli:
If an Infestor comes in range with energy missing, burrows while it's being healed, and moves out of range, the Fountain will keep healing until it runs out of energy, no matter how far the unit is. Also, once it runs out of energy, the healing stops, but the Sound and the small Animation over the unit are both still there until the player gets healed again.
The same happens when a Ghost gets in range, cloaks, and moves away.
How to fix that?
P.S. Currently, it starts healing the unit is cloaked initially, but not if it's burrowed. I'd like it to start healing even if the unit is burrowed.
None.
I still need to fix that problem. It's rather major since those Energy Fountains are a quite pivotal feature of my map, and the "exploit" can be used in many different places.
None.
Let me show you how to hump without making love.
The problem may be that you lack a Validator for the range of the unit being restored energy. Simply create a new Detect Range Validator.
Compare: Less Than
Other Unit: Target
Unit: Caster
Value: [Insert Desired Range]
And then throw it on the heal effect as both a Validator and a Periodic Validator. Note that if I am right, that I pulled this out of my ass.
None.
The problem may be that you lack a Validator for the range of the unit being restored energy. Simply create a new Detect Range Validator.
Compare: Less Than
Other Unit: Target
Unit: Caster
Value: [Insert Desired Range]
And then throw it on the heal effect as both a Validator and a Periodic Validator. Note that if I am right, that I pulled this out of my ass.
This doesn't solve the fact that I want burrowed and cloaked units to be healed too.
Also, I tried it, and my Fountain just doesn't heal anymore with that Validator applied.
None.
Solved.
The Validator type is "Location Range", and not "Detect Range". ;D
None.