I have a spell I'm working on that removes positive buffs from a target. It works fine, except that it ALSO removes debuffs (AKA Negative buffs). I'm trying to make a validator that will ignore ANY debuffs on the unit/area, so it won't remove them. Does anyone have a clue as to how to do this? I've tried many things, the only option I've seen is the idea of creating a Validator that says "Is Not [This specific debuff behavior]" for EVERY negative buff spell to stop my spell from destroying the debuffs. That seems ineffecient, and if someone were to make a new debuff spell, it would be affected by my spell and be removed.
Basically, I'm looking for something like "Ignore all Buffs with the Alignment of 'Negative'". Does anyone have an idea or know how to do this? Thanks.
i havent looked into an easy validator for that, but i know you could make a compare validator of type 'or' then just add all the spcific buff validators to that that are youre positive buffs. may be a shoddy work around but as i said i just havent looked for a 'positive validator type' so it may be in there...
Buff alignment is purely a cosmetic thing, it just sets the tint color of the buff icon and nothing else. That's why you can't validate by alignment - it's not intended to be a gameplay thing at all.
Buff categories (temporary, permanent, restorable) on the other hand are gameplay settings and can be referenced in several places, so you might want to investigate those further. If your map is all custom then you could probably set all negative debuffs to temporary and then have the Remove Behavior effect remove all temporary buffs, for example.
Sorry I can't be more specific, I don't have the editor on this computer, but that's the direction I'd look.
categories is the easy and quick way of discriminating buffs. Not sure how you UMS is set up but u could either:
Have ally 1 cast temp buffs and ally 2 cast restorable buffs and go from there... make 2 debuffers, etc
or plan B..
Validate...
or plan C and a very simple, yet terrrible in terms of "its not on the data side" use the trigger:
Unit - Remove (#) Behavior from (UNIT) from (Player #)
Unless im mistaken (whic is possible since ive never used this command, this will remove any Behavoir from the target unit (if u select it) that is created by a specific player. Thus remove a buff that player 2 put on player 1.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have a spell I'm working on that removes positive buffs from a target. It works fine, except that it ALSO removes debuffs (AKA Negative buffs). I'm trying to make a validator that will ignore ANY debuffs on the unit/area, so it won't remove them. Does anyone have a clue as to how to do this? I've tried many things, the only option I've seen is the idea of creating a Validator that says "Is Not [This specific debuff behavior]" for EVERY negative buff spell to stop my spell from destroying the debuffs. That seems ineffecient, and if someone were to make a new debuff spell, it would be affected by my spell and be removed.
Basically, I'm looking for something like "Ignore all Buffs with the Alignment of 'Negative'". Does anyone have an idea or know how to do this? Thanks.
@AegisRunestone: Go
i havent looked into an easy validator for that, but i know you could make a compare validator of type 'or' then just add all the spcific buff validators to that that are youre positive buffs. may be a shoddy work around but as i said i just havent looked for a 'positive validator type' so it may be in there...
Hmmm... so it would only pick up on the Positive buffs that way? I never thought of that. That might be easier.
Even so, if anyone has idea for a sweeping negative buff detector, I'm all ears.
@ezbeats: Go
I was going to make a 'Condition' validator, but it doesn't let me select buffs. Just other validators. So, I'm confused by what you meant.
Buff alignment is purely a cosmetic thing, it just sets the tint color of the buff icon and nothing else. That's why you can't validate by alignment - it's not intended to be a gameplay thing at all.
Buff categories (temporary, permanent, restorable) on the other hand are gameplay settings and can be referenced in several places, so you might want to investigate those further. If your map is all custom then you could probably set all negative debuffs to temporary and then have the Remove Behavior effect remove all temporary buffs, for example.
Sorry I can't be more specific, I don't have the editor on this computer, but that's the direction I'd look.
Errrmm... hrmmm... well, my isn't all custom, it affects also normal abilities from the core game. :/
categories is the easy and quick way of discriminating buffs. Not sure how you UMS is set up but u could either:
Have ally 1 cast temp buffs and ally 2 cast restorable buffs and go from there... make 2 debuffers, etc
or plan B.. Validate...
or plan C and a very simple, yet terrrible in terms of "its not on the data side" use the trigger:
Unit - Remove (#) Behavior from (UNIT) from (Player #)
Unless im mistaken (whic is possible since ive never used this command, this will remove any Behavoir from the target unit (if u select it) that is created by a specific player. Thus remove a buff that player 2 put on player 1.