I apologize if this is a simple matter; I did do a quick search of the forum and didn't see anything.
I made two abilities off of Stimpack: One that only boosts Movement speed and one that only boosts Attack speed. Currently they stack, a marine can have both running at the same time. I was wondering how I can make them override each other so that the Marine can only have one at a time?
I am not looking for a Cooldown solution, just a pure replacement of buffs.
For the record, I don't see anything that says "deactivate," so I assume you meant disable?
With Showing Defaults and Advanced Fields selected, I looked under behavior and did not see any modifications that said deactivate.
I tried disable out but it did not work the way I intended. Rather than replacing the other buff, it simply stopped the buff from being applied at all. The effects method worked like a charm, but I thought maybe I misunderstood you Obatztrara?
Sorry, I'm still learning the data editor and any of these little details is great :)
Obatztrara method would work if the behaviors wouldn't be meant to overwrite eachother. The field he means would deactivate other behavior while active, though that could create problems, as they aren't removed then but instead delayed unless the other behavior finishes.
Also I'm not sure how it'd work cause they'd try to disable eachother at the same time, and i'm not sure which one would 'come out on top' then, if any.
You could always throw in a Unit Compare Behavior Count validator set to less than or equal that removes the behavior of the other if it returns false.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Greetings,
I apologize if this is a simple matter; I did do a quick search of the forum and didn't see anything.
I made two abilities off of Stimpack: One that only boosts Movement speed and one that only boosts Attack speed. Currently they stack, a marine can have both running at the same time. I was wondering how I can make them override each other so that the Marine can only have one at a time?
I am not looking for a Cooldown solution, just a pure replacement of buffs.
Well If what you want is for them to replace each other, add an effect to each ability that removes the buff from the alternate ability.
I think it would be easier to just have the behaviours deactivate each other.
Edit: Yay, 200 Posts! :-]
Can't believe I didn't think of the effect thing, now I feel dumb or lazy, or both.
Is there a way to "just have the behaviours deactivate each other?"
I think you'd need to create "remove behavior" effect, one for each behavior. Then go to the behavior and add it as an effect - intial.
In the behaviour under modification +, Behaviour, you can add behaviours that are deactivated when this behaviour is active.
Oh, I did the Effects thing. Worked like a charm, guess I'll try the other one just to see how it works :).
Thanks guys!
For the record, I don't see anything that says "deactivate," so I assume you meant disable?
With Showing Defaults and Advanced Fields selected, I looked under behavior and did not see any modifications that said deactivate.
I tried disable out but it did not work the way I intended. Rather than replacing the other buff, it simply stopped the buff from being applied at all. The effects method worked like a charm, but I thought maybe I misunderstood you Obatztrara?
Sorry, I'm still learning the data editor and any of these little details is great :)
Obatztrara method would work if the behaviors wouldn't be meant to overwrite eachother. The field he means would deactivate other behavior while active, though that could create problems, as they aren't removed then but instead delayed unless the other behavior finishes.
Also I'm not sure how it'd work cause they'd try to disable eachother at the same time, and i'm not sure which one would 'come out on top' then, if any.
You could always throw in a Unit Compare Behavior Count validator set to less than or equal that removes the behavior of the other if it returns false.
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