I'm attempting to add an extra feature to one of my abilities. Ability 1 is simply just splash damaging spell, and Ability 2 is a Dash/Slide. I was hoping I'd be able to have the cooldown of Ability 1 reset, if Ability 1 was used directly after Ability 2 to damage a target. If the target was not damaged the cooldown is not reset. Being fairly new to the editor, initially I thought this would be done through triggers, but I was informed that this could be done easier with data.
If anyone could provide some guidance or a tutorial on how to implement what I described above that would be great
Depends a little upon whether you want it to be determined if you use ability 1 on the same target unit as ability 2 or if its just if the host unit uses it at all. In general you would use apply a timed buff from ability 1 and then in a set for ability two just a validator to check for the first buff and use a modify unit effect to set the cooldown of ability 1.
Hmm ok, well ability 2 does not require a unit to be targeted. Ability 2 is just a launch missile with no ammo unit, the only ability which requires a target is Ability 1.
The only condition for the cooldown to be reset on ability 2, is if Ability 1 has damaged the target while Ability 2 is on cooldown.
Ability 1:
once activating the ability (via dummy ability or maybe a dialog button) search the area around triggering unit and use a damage action to those units. there are multiple ways of doing a cool down (best to have it on the dummy ability for looks).
Abiliy 2:
This should be activated by a dummy ability, then you can just use force behavior or some sort of teleportation.
Rules: i didnt quite understand what you wanted exactly done but by the sounds of it triggers can easily fullfil the need.
As mentioned previously, have ability 2 also apply a timed buff to the target unit, and then have ability one use a modify effect to adjust the cooldown based on a validator that checks for the buff from ability 2. You'll like need to add this into or create sets.
Else just use a Unit Compare Cooldown validator that is on a Modify Unit effect within a set effect of your ability on the part that locates the target. (just before damage effect).
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
I set the cooldown the ID of Ability 2, and changed the location to Unit but it's still not working as intended. I've attached my map, if that is of any help. Going to keep looking at it to see if I can figure out why =/
For the sake of clarity, Ability 1 is fireball and Ability 2 is Dash in the map.
Got it working through triggers, thanks Necro. Was still hoping to get it working through data for the sake of learning. I'll continue to try and get that to work
Considering the validator is a recent addition it may be buggy. The Modify Unit effect though has been proven to work as described so learning how to set that up is recommended.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Hey All-
I'm attempting to add an extra feature to one of my abilities. Ability 1 is simply just splash damaging spell, and Ability 2 is a Dash/Slide. I was hoping I'd be able to have the cooldown of Ability 1 reset, if Ability 1 was used directly after Ability 2 to damage a target. If the target was not damaged the cooldown is not reset. Being fairly new to the editor, initially I thought this would be done through triggers, but I was informed that this could be done easier with data.
If anyone could provide some guidance or a tutorial on how to implement what I described above that would be great
Depends a little upon whether you want it to be determined if you use ability 1 on the same target unit as ability 2 or if its just if the host unit uses it at all. In general you would use apply a timed buff from ability 1 and then in a set for ability two just a validator to check for the first buff and use a modify unit effect to set the cooldown of ability 1.
@hobbidude: Go
Hmm ok, well ability 2 does not require a unit to be targeted. Ability 2 is just a launch missile with no ammo unit, the only ability which requires a target is Ability 1.
The only condition for the cooldown to be reset on ability 2, is if Ability 1 has damaged the target while Ability 2 is on cooldown.
You could do this easily via triggers. :P
Ability 1: once activating the ability (via dummy ability or maybe a dialog button) search the area around triggering unit and use a damage action to those units. there are multiple ways of doing a cool down (best to have it on the dummy ability for looks).
Abiliy 2: This should be activated by a dummy ability, then you can just use force behavior or some sort of teleportation.
Rules: i didnt quite understand what you wanted exactly done but by the sounds of it triggers can easily fullfil the need.
I should probably clarify, since I probably did not word what I'm looking to do explicitly.
I currently have both abilities already created/implemented via data with cooldowns and what not. What I am looking to do is the following:
Conditionally, While Ability 2 is on cooldown, if I use Ability 1 to damage my target then Ability 2's cooldown is reset.
@asciame1: Go
As mentioned previously, have ability 2 also apply a timed buff to the target unit, and then have ability one use a modify effect to adjust the cooldown based on a validator that checks for the buff from ability 2. You'll like need to add this into or create sets.
Else just use a Unit Compare Cooldown validator that is on a Modify Unit effect within a set effect of your ability on the part that locates the target. (just before damage effect).
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
@hobbidude: Go
Tried DrSuperEvil's suggestion, and I may have goofed somewhere =/ , but it's currently not functioning. I'll do my best to describe what I did below:
-Created UnitCompareCooldown Validator
-Created Modify Unit Effect
-Added the Modify Unit Effect to my Set Effect above my Damage spell in that Set,.
Think the cooldown is the ID of the ability link. Check location is at unit.
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
I set the cooldown the ID of Ability 2, and changed the location to Unit but it's still not working as intended. I've attached my map, if that is of any help. Going to keep looking at it to see if I can figure out why =/
For the sake of clarity, Ability 1 is fireball and Ability 2 is Dash in the map.
You can do it with triggers, EDDITED DIDNT READ
Event : Unit takes damage (fatal or non fatal)
Conditions: Damaging Effect == YourEffect
Actions: Clear remaining time on cooldown (Abil/Ability2) on Unit Damaging Unit
Got it working through triggers, thanks Necro. Was still hoping to get it working through data for the sake of learning. I'll continue to try and get that to work
@asciame1: Go
Considering the validator is a recent addition it may be buggy. The Modify Unit effect though has been proven to work as described so learning how to set that up is recommended.
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