So I've got a trigger that's supposed to reset upgrades for Triggering Player, but I realized I need to actually do it for Owner of Triggering Unit. It's a really big pain changing all the values manually, and I've encountered a similar problem before. I usually use loops for this kind of thing but since all the values I'm changing are specific, I can't. Is there a way to do this in the editor for actions that use the same function?
So I've got a trigger that's supposed to reset upgrades for Triggering Player, but I realized I need to actually do it for Owner of Triggering Unit. It's a really big pain changing all the values manually, and I've encountered a similar problem before. I usually use loops for this kind of thing but since all the values I'm changing are specific, I can't. Is there a way to do this in the editor for actions that use the same function?
Set the values to variables in an array and use a loop.
Using what? This is the kind of situation I mean, in case you misunderstood:
there is a find and replace feature, but don't know if it works for this kind of value
triggering player and owner of triggering unit should be the same anyways
Not in situations where you have control of another player's units =D
Oh my god, I found what you were talking about, and it works perfectly. You can find and replace values. Thanks.