I essentially am just trying to set up an AI that will perform build orders to see their viability and timings. I currently have the AI building things through AISetStock orders and this works all nice and well, until I need gas. I build an assimilator, but I haven't found a command to send workers to the assimilator I built.
I saw one thread that showed how to send a specific worker, SCV in their case, to a prebuilt refinery through a UnitIssueOrder, but I can't seem to replicate that action for a refinery that has not been built yet. Any help on this issue would be appreciated.
I'm not sure what that means. I'm still very new to using the Editor. I'm in the trigger window and have all these AISetStock commands under Actions to build things. Could you give me an example of the commands you're talking about?
Currently I have the AISetStock(1,1,"Refinery") to build the refinery. Should I be doing it some other way?
What he means is using a variable to refer to the refinery you built. Because the refinery isn't pre-existing you cannot issue an order directly to it. That's where you use variable. Create a variable by right-clicking and selecting New -> New Variable and rename it to Refinery or something.
Make sure that after you created it, you use the Set Variable to last created unit action right after you issued the SCV to build it. This will allow youto refer to the refinery after it has been built.
That is as of now, the easiest way I can think of to make this happen. Tell me if it's still confusing to you.
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.
Hi All,
I essentially am just trying to set up an AI that will perform build orders to see their viability and timings. I currently have the AI building things through AISetStock orders and this works all nice and well, until I need gas. I build an assimilator, but I haven't found a command to send workers to the assimilator I built. I saw one thread that showed how to send a specific worker, SCV in their case, to a prebuilt refinery through a UnitIssueOrder, but I can't seem to replicate that action for a refinery that has not been built yet. Any help on this issue would be appreciated.
@necroyawn: Go
Just do a search for the refinery around the command center. If you creating it via triggers you can save it to a variable or use last created unit.
@hobbidude: Go
I'm not sure what that means. I'm still very new to using the Editor. I'm in the trigger window and have all these AISetStock commands under Actions to build things. Could you give me an example of the commands you're talking about?
Currently I have the AISetStock(1,1,"Refinery") to build the refinery. Should I be doing it some other way?
@necroyawn: Go
What he means is using a variable to refer to the refinery you built. Because the refinery isn't pre-existing you cannot issue an order directly to it. That's where you use variable. Create a variable by right-clicking and selecting New -> New Variable and rename it to Refinery or something. Make sure that after you created it, you use the Set Variable to last created unit action right after you issued the SCV to build it. This will allow youto refer to the refinery after it has been built.
That is as of now, the easiest way I can think of to make this happen. Tell me if it's still confusing to you.
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