So I'm wanting to make it so a specific unit receives upgrades over time indefinitely. I'm assuming you have to start with Events - Timer - Every xx seconds of game time - but then I don't know what to do for the conditions or actions. Also in order to get past the default 3 levels of upgrades I assume I'd have to create more upgrades somehow, unless there is a way to make it just "Add +2 damage" without using an official upgrade every 5 minutes or so.
You can add +2 damage using "Category field value set" if you want, though upgrades will work as well. You could also (and this is probably the easiest way) just add a behavior to the unit that boosts the damage by 2. So here's what you need to do:
Pop open the behaviors tab in the data editor, create a new buff, open the "modifications+" field, navigate to the combat tab, and then set the 'damage bonus' fields to +2.
Make a trigger using "Periodic Event xx seconds".
Add an action "Add behavior to unit". Add that behavior you just created to whatever unit it is you are trying to buff over time. This buff should stack with itself over time. If it's not, go back to the behavior and make sure that the maximum stack count is -1 (for unlimited).
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
Large stacks of behaviors on large amounts of units can cause lag. Also, that way units that live longer will have more stacks than new units (Unless you change things a bit and have it add a specific amount of stacks when the unit is created)
Using simple upgrades is probably better. You've got the right event. Now go into the upgrades tab in the data editor, create a new upgrade, in its "effects" field add values for all damage effects you want to increase and increase their amount by whatever you want. After that, set the maximum level of the upgrade to whatever you want. Then just add 1 level of that upgrade in that periodic trigger. You can also use the "official" upgrades by just changing their maximum level for this.
Zelda's solution sounds too complicated to me - I hate trying to deal with persistent and behavior triggers. I ended up just doing this:
Boss Upgrades
Events
Timer - Every 500.0 seconds of Game Time
Local Variables
Conditions
Actions
Tech Tree - Add 1 to Zerg Ground Carapace Level 1 upgrade for player 6
Tech Tree - Add 1 to Zerg Melee Attacks Level 1 upgrade for player 6
And then I went and changed those level 1 upgrades and put 99999 levels so it will just keep giving itself more of the same upgrade. I was worried at first that it would just keep overwriting the same upgrade and just maintain 1 upgrade, but I tested it and it kept stacking forever, and well past the 3 level default maximums. This is probably the laziest tactic possible but it works for a novice like me.
Yeah I noticed they all have different limits, but they all went pretty high, and I have it set so a guy gets upgraded every 6 minutes so you'd have to play for like 2 days before it ran out of upgrades lol. I'll keep that in mind for the future though, thanks.
@arithys:you'd have to play for like 2 days before it ran out of upgrades
BAHAHAHHAHA there ya go.. its like making a timer that expires in 100,000 seconds. sure it will expire but you would probably get booted from b.net before that heppend.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
So I'm wanting to make it so a specific unit receives upgrades over time indefinitely. I'm assuming you have to start with Events - Timer - Every xx seconds of game time - but then I don't know what to do for the conditions or actions. Also in order to get past the default 3 levels of upgrades I assume I'd have to create more upgrades somehow, unless there is a way to make it just "Add +2 damage" without using an official upgrade every 5 minutes or so.
Any help with this would be great.
You can add +2 damage using "Category field value set" if you want, though upgrades will work as well. You could also (and this is probably the easiest way) just add a behavior to the unit that boosts the damage by 2. So here's what you need to do:
@arithys: Go
Large stacks of behaviors on large amounts of units can cause lag. Also, that way units that live longer will have more stacks than new units (Unless you change things a bit and have it add a specific amount of stacks when the unit is created)
Using simple upgrades is probably better. You've got the right event. Now go into the upgrades tab in the data editor, create a new upgrade, in its "effects" field add values for all damage effects you want to increase and increase their amount by whatever you want. After that, set the maximum level of the upgrade to whatever you want. Then just add 1 level of that upgrade in that periodic trigger. You can also use the "official" upgrades by just changing their maximum level for this.
Zelda's solution sounds too complicated to me - I hate trying to deal with persistent and behavior triggers. I ended up just doing this:
Boss Upgrades Events Timer - Every 500.0 seconds of Game Time Local Variables Conditions Actions Tech Tree - Add 1 to Zerg Ground Carapace Level 1 upgrade for player 6 Tech Tree - Add 1 to Zerg Melee Attacks Level 1 upgrade for player 6
And then I went and changed those level 1 upgrades and put 99999 levels so it will just keep giving itself more of the same upgrade. I was worried at first that it would just keep overwriting the same upgrade and just maintain 1 upgrade, but I tested it and it kept stacking forever, and well past the 3 level default maximums. This is probably the laziest tactic possible but it works for a novice like me.
I think the upgrade levels stop working after 107 and are capped at some value which might be 127 or 255.
I'm using catalog myself to have basically unlimited levels.
for example an action definition that raises an effects damage:
For a real upgrade fake, you need to change the weapon's level, too.
Also, if you use the arcade beta's editor, you can select the things in the GUI directly. So it became really easy to use.
Yeah I noticed they all have different limits, but they all went pretty high, and I have it set so a guy gets upgraded every 6 minutes so you'd have to play for like 2 days before it ran out of upgrades lol. I'll keep that in mind for the future though, thanks.
@arithys:you'd have to play for like 2 days before it ran out of upgrades
BAHAHAHHAHA there ya go.. its like making a timer that expires in 100,000 seconds. sure it will expire but you would probably get booted from b.net before that heppend.