I need some help with editing the default Purifier unit in the editor, the things i want to change are:
a) the prufier's invulnerability behaviour,
b) the planet cracker ability,
c) the powerdown/powerup ability (which activates a behaviour that does nothing exept disable movement and play a chargeing sound and produce lights around the purifier to show it's charging up)
I would like to make it so that:
1) the power down ability disables movement and abilities for fifteen seconds, then automatically switches on again after that amount of time
2) the planet cracker ability cannot be used before the power down ability has been used
3) the power down ability can not be used again until the planet cracker ability has been used
4) the invulnerability shield is disabled while the power down ability is being used (15 seconds) and, separately, while the planet cracker ability is being used (also 15 seconds) and then switches back on when they're done respectively
i hope all this makes sense, please let me know if something isn't clear or if i'm missing obvious things ;-)
Hmm, i guess my problem is i don't know where to begin, everything i've done up until now i've been able to do by looking at what's aleady in the editor and following along those lines, but this is more customized and i'm unsure how to proceed, since i'm not that experienced in making something without some sort of base, so maybe if any one knows of anything in the editor that i could look at to try and emulate, and what would be the best place to start. Sorry this isn't very specific, i just know i have to take it step by step.
Most of this should be doable with the buffs used by the abilities.
Power Up: Change the duration of the "Purifier - Charging Planet Cracker" Buff to 15s. If you don't change anything that will immediately fire the Planet Cracker upon completion. You can then remove the Planet Cracker ability and button from the Purifier, and edit the costs of the Power Up ON/OFF toggles to equal Planet Cracker - Use/Cancel
Make a Requirement that counts the "using planet cracker" buff "completed at unit". Require the count to be 0. Add this to the ON toggle of the Power Up ability.
Shield: Use the "validator - deactivate" field on the shield buff. This triggers if the called validator returns FALSE! For your specific problem, make an AND combine validator to which you add "Behavior Count - Count=0" validators for each buff you want to check. For now make 2, 1 for each Planet Cracker behavior (charging/using)
Keeping the abilities seperate is a bit more work. Make the "charging" behavior apply another behavior "planet cracker ready" instead of starting the planet cracker effect, and make a requirement "planet cracker ready - count>=1" for the Planet Cracker ability itself. Probably add the "planet cracker ready" buff to the validator list on the shield buff as well. Add further cancel/refund abilities if desired. Don't remove the button and ability from the Purifier if you do this, obviously.
You have to modify the Behaviors of the abilities to disable or enable certain abilities. I am doing the same thing for my map and made a custom ability called the Immortality shield in which you can toggle it on and off and while the shield behavior is activated all the abilities and attack is disabled and the purifier is invulnerable until it runs out of energy.
For the Charge ability I modified the Vital Regen Bonus in the abilities behavior to allow it to increase the purifiers vital max energy bonus.
I just wanted to report back and say this was actually less daunting than expected ;-)
It all came down to behaviors applying and removing each other with apply/remove behavior effects and count behavior requirements disabling the abilities that make the behaviors, thanks Photoloss and michaelknives for sending me in the right direction.
I appreciate the replies from everyone, thanks for the help.
All the best!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hey guys
I need some help with editing the default Purifier unit in the editor, the things i want to change are:
a) the prufier's invulnerability behaviour,
b) the planet cracker ability,
c) the powerdown/powerup ability (which activates a behaviour that does nothing exept disable movement and play a chargeing sound and produce lights around the purifier to show it's charging up)
I would like to make it so that:
1) the power down ability disables movement and abilities for fifteen seconds, then automatically switches on again after that amount of time
2) the planet cracker ability cannot be used before the power down ability has been used
3) the power down ability can not be used again until the planet cracker ability has been used
4) the invulnerability shield is disabled while the power down ability is being used (15 seconds) and, separately, while the planet cracker ability is being used (also 15 seconds) and then switches back on when they're done respectively
i hope all this makes sense, please let me know if something isn't clear or if i'm missing obvious things ;-)
Any ideas would be greatly appreciated. Thanks!
Hey.
I would like to know, where exactly your problem lies. What did you try already, what did you manage to get to work, where do you struggle?
Hi there, thanks for the reply
Hmm, i guess my problem is i don't know where to begin, everything i've done up until now i've been able to do by looking at what's aleady in the editor and following along those lines, but this is more customized and i'm unsure how to proceed, since i'm not that experienced in making something without some sort of base, so maybe if any one knows of anything in the editor that i could look at to try and emulate, and what would be the best place to start. Sorry this isn't very specific, i just know i have to take it step by step.
Most of this should be doable with the buffs used by the abilities.
Keeping the abilities seperate is a bit more work. Make the "charging" behavior apply another behavior "planet cracker ready" instead of starting the planet cracker effect, and make a requirement "planet cracker ready - count>=1" for the Planet Cracker ability itself. Probably add the "planet cracker ready" buff to the validator list on the shield buff as well. Add further cancel/refund abilities if desired. Don't remove the button and ability from the Purifier if you do this, obviously.
You have to modify the Behaviors of the abilities to disable or enable certain abilities. I am doing the same thing for my map and made a custom ability called the Immortality shield in which you can toggle it on and off and while the shield behavior is activated all the abilities and attack is disabled and the purifier is invulnerable until it runs out of energy.
For the Charge ability I modified the Vital Regen Bonus in the abilities behavior to allow it to increase the purifiers vital max energy bonus.
Hey guys!
I just wanted to report back and say this was actually less daunting than expected ;-)
It all came down to behaviors applying and removing each other with apply/remove behavior effects and count behavior requirements disabling the abilities that make the behaviors, thanks Photoloss and michaelknives for sending me in the right direction.
I appreciate the replies from everyone, thanks for the help.
All the best!