I'm playing around with the AI, and I'm learning to use it to do various different things like attack waves, and building a basic base.
Now we all know that with pre-placed units, you can simply go to the AI tab of the unit and choose how many times you want the unit to be replaced if killed. Now my question is, how do I make the AI replace units that have been created, and are not pre-placed, because I've made a base for the AI player and he will get attacked by another enemy. I've noticed that the attack waves work fine, and the AI makes units out of the Barracks etc. but they won't actually replace the units I've created on the field when they die.
I tried activating Bullies for all units in the region they're in, but that didn't seem to work. I think it has something to do with Bullies, but I'm not sure as I'm not too keen on all the AI trigger options.
Someone out there who are more experienced who can perhaps help me out? Thanks in advance.
Rollback Post to RevisionRollBack
StarCraft II: Annihilation Campaign - A 24 mission single-player campaign featuring unique heroes, custom tracks, boss battles, a varied set of mission scenarios and three intersecting storylines.
for rebuild(AI rebuilds the specified unit types) there are 2 rebuild triggers. one is working with object class (unit, building) and one with unit types. it requires active AI I think.
for replace (change a unit to other unit defined by unit types also stats can be moved too)there is a trigger that changes a specified unit(last created, picked unit, triggering unit, value, variable, etc.) with another unit of the given unit type. for exmaple changes a placed marine to marauder. or can change all marine in a unit group to marauders. for tha last example you must put the marines in to unit group.
for revive, (revive the unit that died)there is a trigger that revives a specified unit. Important that the trigger only work by itself if the a revive is instant after the unit dies, and uses the dying position as revive point. If you want some time before it happens, you must put the dying unit into a variable, and later ony use this variable in the unit part. Also there is 2 hero revive function but I didn't tested it yet. In star craft 2 the revive works with any units, not just with heroes, as in warcraft 3 where only heroes can be revived, or at least it was like this before reforged.
I'm playing around with the AI, and I'm learning to use it to do various different things like attack waves, and building a basic base.
Now we all know that with pre-placed units, you can simply go to the AI tab of the unit and choose how many times you want the unit to be replaced if killed. Now my question is, how do I make the AI replace units that have been created, and are not pre-placed, because I've made a base for the AI player and he will get attacked by another enemy. I've noticed that the attack waves work fine, and the AI makes units out of the Barracks etc. but they won't actually replace the units I've created on the field when they die.
I tried activating Bullies for all units in the region they're in, but that didn't seem to work. I think it has something to do with Bullies, but I'm not sure as I'm not too keen on all the AI trigger options.
Someone out there who are more experienced who can perhaps help me out? Thanks in advance.
StarCraft II: Annihilation Campaign - A 24 mission single-player campaign featuring unique heroes, custom tracks, boss battles, a varied set of mission scenarios and three intersecting storylines.
Starcraft II: A War Story Campaign - A multi-act campaign with custom factions. Follow my discord for updates: https://discord.gg/Ztu44gZ
If you want to see a list of other awesome campaigns, go to: Custom Campaign Initiative
In reply to dudkisc2:
do you want to rebuild, replace or revive them?
for rebuild(AI rebuilds the specified unit types) there are 2 rebuild triggers. one is working with object class (unit, building) and one with unit types. it requires active AI I think.
for replace (change a unit to other unit defined by unit types also stats can be moved too)there is a trigger that changes a specified unit(last created, picked unit, triggering unit, value, variable, etc.) with another unit of the given unit type. for exmaple changes a placed marine to marauder. or can change all marine in a unit group to marauders. for tha last example you must put the marines in to unit group.
for revive, (revive the unit that died)there is a trigger that revives a specified unit. Important that the trigger only work by itself if the a revive is instant after the unit dies, and uses the dying position as revive point. If you want some time before it happens, you must put the dying unit into a variable, and later ony use this variable in the unit part. Also there is 2 hero revive function but I didn't tested it yet. In star craft 2 the revive works with any units, not just with heroes, as in warcraft 3 where only heroes can be revived, or at least it was like this before reforged.
In reply to ragadozo88:
For the revive, you can set the death time of a unit in the data editor and it will work exactly as your workaround.
Ex. Unit dies and has a death time of 10, you can revive it within these 10 seconds, (you can put -1 to make it indefinite)