I'm creating a level'able hero with the map editor. I'm working on his passive now, which is sorta like Shadowmeld from WoW, stationary and out of combat = stealth. However, I'm having difficulty in finding how to make this passive take effect on a delay. Right now, the effect applies instantly, losing enemy aggro in between fights. I wanted to have 2 - 3 second delay to actiavte, how do I go around this? Also, the icon shows on my heroes status, but does not show the icon/button I created.
How I created this ability? Copy/pasted perma cloak from behaviours then modified the name, tooltip, icon etc... then went to actors to modify the duplicate cloak in/out to change the sound FX it made. Then I made the button for this passive then went to my hero unit and added this passive on the behaviours+.
Finally, I went to command card to add this button, assign it as passive.
Thanks so much for taking the time to read and reply.
I forgot to mention I just started using map editor quite recently so my knowledge is limited.
@ DrSuperEvil : I found out where to create a periodic effect with 'create persistent' validator. However I don't know how to apply the delay desired to apply the buff.
What I did so far: Following your instructions, I went to the effects tab, right click > 'create effect', named it and set the type to 'create persistent', press ok. Then went to the behaviours tab, found my buff and under 'effect - periodic' I added the effect I created. Then I got lost.
-I started looking at the effect I created and see what I can modify. I noticed the field 'initial delay' and I filled in 10 secs just to make sure it's working. However it's not working, what did I do wrong here, or miss doing?
For the life of me I can't find validators under UnitLastTime dealt/taken damage.
As for the button, I did exactly that. I chose the box I wanted to icon to appear, chose the button I created, set 'passive', behaviour - my buff and the box 'show in glossary' is checked (don't know what that's for really, it was on so I left it on). I also double checked if it was set on page 1 of the command card, instead of mistakenly added to page 2 or so on.
Hey sorry, the actual validator type is called Unit Compare Damage Dealt/Taken Time,... but it might as well as be what I said.
Here's a test map so you can understand more concretely.
2 Validators
Unit Compare Damage Dealt Time
Compare: Greater Than
Value: x seconds
Unit Compare Damage Taken Time
Compare: Greater Than
Value: x seconds
1 Behavior
Buff
Modification - Cloak
Validators (Disable) - Add our validators
You need to create the validators and change the parent type to what I listed.
But basically this is what I did, the other misc stuff you probably know how to do.
Just use a Unit Compare Speed validator and a CasterNotInCombat validator so that when your unit is still the periodic buff triggers and then after a duration (use the NukePersistent effect as an example) the cloak buff is applied which then is removed if the unit is moving.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
I'm creating a level'able hero with the map editor. I'm working on his passive now, which is sorta like Shadowmeld from WoW, stationary and out of combat = stealth. However, I'm having difficulty in finding how to make this passive take effect on a delay. Right now, the effect applies instantly, losing enemy aggro in between fights. I wanted to have 2 - 3 second delay to actiavte, how do I go around this? Also, the icon shows on my heroes status, but does not show the icon/button I created.
How I created this ability? Copy/pasted perma cloak from behaviours then modified the name, tooltip, icon etc... then went to actors to modify the duplicate cloak in/out to change the sound FX it made. Then I made the button for this passive then went to my hero unit and added this passive on the behaviours+. Finally, I went to command card to add this button, assign it as passive.
So what am I missing? Thanks!
You need a behavior in between that's basically your "meld time."
Unit is stationary >> Apply middle behavior >> unit still stationary at the end of this behavior >> stealth
You can do this by having the middle behavior initiate the stealth as its Expire Effect
<Click Here> To See My Epic Single Player Campaign (LifeForceCampaign.com)
Just use a validated periodic effect that is a Create Persistent that applies the cloak buff.
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
3 Validator(s)
UnitLastTimeDealtDamage - x seconds, greater
UnitLastTimeTakenDamage - x seconds, greater
Combine ^
1 Buff
- Modification - Cloak
- Validation(disable) - Combined Validator
1 Button
- Set your icon, tooltip, but not hotkey
Give your unit buff, and in the command panel you can add the button, set it to passive and set behavior to your buff.
Thanks so much for taking the time to read and reply.
I forgot to mention I just started using map editor quite recently so my knowledge is limited.
@ DrSuperEvil : I found out where to create a periodic effect with 'create persistent' validator. However I don't know how to apply the delay desired to apply the buff.
What I did so far: Following your instructions, I went to the effects tab, right click > 'create effect', named it and set the type to 'create persistent', press ok. Then went to the behaviours tab, found my buff and under 'effect - periodic' I added the effect I created. Then I got lost. -I started looking at the effect I created and see what I can modify. I noticed the field 'initial delay' and I filled in 10 secs just to make sure it's working. However it's not working, what did I do wrong here, or miss doing?
Cheers
@Broot7: Go
For the life of me I can't find validators under UnitLastTime dealt/taken damage.
As for the button, I did exactly that. I chose the box I wanted to icon to appear, chose the button I created, set 'passive', behaviour - my buff and the box 'show in glossary' is checked (don't know what that's for really, it was on so I left it on). I also double checked if it was set on page 1 of the command card, instead of mistakenly added to page 2 or so on.
It still won't show up!
@BLVCKSHVDE: Go
Hey sorry, the actual validator type is called Unit Compare Damage Dealt/Taken Time,... but it might as well as be what I said.
Here's a test map so you can understand more concretely.
2 Validators
1 Behavior
You need to create the validators and change the parent type to what I listed. But basically this is what I did, the other misc stuff you probably know how to do.
Just use a Unit Compare Speed validator and a CasterNotInCombat validator so that when your unit is still the periodic buff triggers and then after a duration (use the NukePersistent effect as an example) the cloak buff is applied which then is removed if the unit is moving.
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