How to? - trigger AI to build unit
-
- Terran Barracks Laundry Master
- Posts: 31
- Joined: Thu Jul 16, 2009 1:34 pm
How to? - trigger AI to build unit
Hello.
With trigger action "Create unit" it is possible to create unit.
With trigger action "Run AI script at location" script "Brood Wars Terran 2 - Town A" it is possible to build nukes.
so, I got questions
1) is it possible to build any unit in any building with triggers? For example, build Protoss Carrier in Stargate?
2) is it possible to build units in unit with triggers? For example interceptor inside a carrier?
3) is there any description of scripts like "Brood Wars Terran/Zerg/Protoss *" somewhere in the internet?
With trigger action "Create unit" it is possible to create unit.
With trigger action "Run AI script at location" script "Brood Wars Terran 2 - Town A" it is possible to build nukes.
so, I got questions
1) is it possible to build any unit in any building with triggers? For example, build Protoss Carrier in Stargate?
2) is it possible to build units in unit with triggers? For example interceptor inside a carrier?
3) is there any description of scripts like "Brood Wars Terran/Zerg/Protoss *" somewhere in the internet?
- Church
- Zerg Ultralisk Waste Manager
- Posts: 697
- Joined: Tue Jun 02, 2009 6:48 pm
- Location: now here, nowhere
Re: How to? - trigger AI to build unit
For descriptions of what they do, well I don't know where you could really find them but I have a suggestion.
If you have x-tra editor then after the words there will be something like: (easy A medium D)
A is Attack, D is Defence.
That's about all I can help with. Have fun campaigning!
Edit: Oh, yeah and please use The Workshop for these kind of questions. Thanks!
If you have x-tra editor then after the words there will be something like: (easy A medium D)
A is Attack, D is Defence.
That's about all I can help with. Have fun campaigning!
Edit: Oh, yeah and please use The Workshop for these kind of questions. Thanks!
Last edited by Church on Thu Jul 16, 2009 3:37 pm, edited 1 time in total.
-
- Terran Barracks Laundry Master
- Posts: 31
- Joined: Thu Jul 16, 2009 1:34 pm
Re: How to? - trigger AI to build unit
Moderators, please move the topic to the right placeJim_Raynor wrote:Edit: Oh, yeah and please use The Workshop for these kind of questions. Thanks!
-
- Terran Barracks Laundry Master
- Posts: 31
- Joined: Thu Jul 16, 2009 1:34 pm
Re: How to? - trigger AI to build unit
I have. But these type scripts are not very interesting. It's much more interesting to have information of other types of scripts. Unfortunately, I found no descriptionJim_Raynor wrote:If you have x-tra editor then after the words there will be something like: (easy A medium D) A is Attack, D is Defence.

For example, is there any script to make AI build a building at location? not get the building, but BUILD it?
Re: How to? - trigger AI to build unit
I don't believe you can do that through a map editor, but it is possible by editing the AI scripts.George wrote: For example, is there any script to make AI build a building at location? not get the building, but BUILD it?
This topic is in the right place. The workshop is for media-related problems.Jim_Raynor wrote: Oh, yeah and please use The Workshop for these kind of questions. Thanks!
-
- Terran Barracks Laundry Master
- Posts: 31
- Joined: Thu Jul 16, 2009 1:34 pm
Re: How to? - trigger AI to build unit
Do you mean it is possible to create more AI scripts? Is it possible to add a new AI script to the scenario? If so, what tool should be used?WedgeAntilles wrote:don't believe you can do that through a map editor, but it is possible by editing the AI scripts.George wrote: For example, is there any script to make AI build a building at location? not get the building, but BUILD it?
- omega20
- Zerg Ultralisk Waste Manager
- Posts: 692
- Joined: Sun Apr 06, 2008 7:38 am
Re: How to? - trigger AI to build unit
You should use, for example, the AI Edit tool. It includes a help guide within it, and if you need more help, I found this page on Internet that can be helpful to you. If you need even more help, I think you can ask your questions here. There're many experienced modders around these forums that master the art of creating AI scriptsGeorge wrote:Do you mean it is possible to create more AI scripts? Is it possible to add a new AI script to the scenario? If so, what tool should be used?WedgeAntilles wrote:don't believe you can do that through a map editor, but it is possible by editing the AI scripts.George wrote: For example, is there any script to make AI build a building at location? not get the building, but BUILD it?


Cheers and have fun!

[imgwh 400x120]http://www.sigrealm.com/freesigs/178_Starcraft2MultSig.jpg[/imgwh]
-
- Terran Barracks Laundry Master
- Posts: 31
- Joined: Thu Jul 16, 2009 1:34 pm
Re: How to? - trigger AI to build unit
Can I add a new script or only replace existing scripts?omega20 wrote:You should use, for example, the AI Edit tool. It includes a help guide within it, and if you need more help, I found this page on Internet that can be helpful to you. If you need even more help, I think you can ask your questions here. There're many experienced modders around these forums that master the art of creating AI scripts(I'm not among them, though
).
Cheers and have fun!
- Church
- Zerg Ultralisk Waste Manager
- Posts: 697
- Joined: Tue Jun 02, 2009 6:48 pm
- Location: now here, nowhere
Re: How to? - trigger AI to build unit
Oops, sorry.WedgeAntilles wrote:This topic is in the right place. The workshop is for media-related problems.Jim_Raynor wrote: Oh, yeah and please use The Workshop for these kind of questions. Thanks!
Also http://www.campaigncreations.org/starcraft/resources/staredit_tutorials/extra_ai_scripts is also a good spot for AI script descriptions, but it might not have all you want.
-
- Terran Barracks Laundry Master
- Posts: 31
- Joined: Thu Jul 16, 2009 1:34 pm
Re: How to? - trigger AI to build unit
Thank you, very interesting page. But after reading I understood that a script is a not added to scenario, but to strarcraft itself (mpq file).omega20 wrote:It includes a help guide within it, and if you need more help, I found this page on Internet that can be helpful to you.
Is it possible to add a script to the scenario in such a way, that it is stored inside scenario?
Code: Select all
1. Compile the script file (i.e. Protoss Expansion Custom Level.asc3) using SCAIEdit III.
Make sure there are no errors left.
2. Close the script file and open the "aiscript.bin". You can use WinMPQ to extract
the latest aiscript.bin from the latest "Patch_rt.mpq" file (note: if the extracted file is
all caps, then rename it to "aiscript.bin" with no caps, otherwise SCAIEdit might
have trouble reading it). There is also a "aiscript.bin" included with SCAIEdit III.
3. Look for the "Protoss Expansion Custom Level". Remove it from the "aiscript.bin"
file. Then import your own "Protoss Expansion Custom Level.asc3" file.
4. Compile the "aiscript.bin" file. The message "Script compilation done!" should appear.
5. Close the "aiscript.bin" file. Then make a backup of the "Patch_rt.mpq" file in your
Starcraft directory. Now use WinMPQ to open the file. Then look for the file
"scripts\aiscript.bin" or "scripts\AISCRIPT.BIN". Remove it and add your own
aiscript.bin (also use "scripts" as the path). Make sure that while doing this
you have (1) a backup of the original "Patch_rt.mpq", (2) no other program open
that also makes use of the "Patch_rt.mpq" file (e.g. Starcraft/Broodwar).
6. Close WinMPQ. Start Broodwar and create a game against a Protoss AI.
-
- Terran Barracks Laundry Master
- Posts: 31
- Joined: Thu Jul 16, 2009 1:34 pm
Re: How to? - trigger AI to build unit
Then this is not correct solution for me.Krazy wrote: As far as I know, no, not within the confines of SC1.
Coming back to the initial question - how to make AI build something in scenario WITHOUT SCRIPT EDITING (because scripts are not stored in scenarios)
-
- Terran Barracks Laundry Master
- Posts: 31
- Joined: Thu Jul 16, 2009 1:34 pm
Re: How to? - trigger AI to build unit
Is it possible to make High Templar to cast Psionic Storm at location with triggers?
- Rocco
- Zerg Ultralisk Waste Manager
- Posts: 682
- Joined: Fri Jun 27, 2008 4:28 pm
- Location: New York
Re: How to? - trigger AI to build unit
Not from what I know, but I could be wrong, I just looked through the triggers and it doesn't seem so.Like I said I could be mistaken.
[quote="AA7Dragoon"]
No homo.
[/quote]
No homo.
[/quote]
-
- Terran Barracks Laundry Master
- Posts: 31
- Joined: Thu Jul 16, 2009 1:34 pm
Re: How to? - trigger AI to build unit
is it possible to make them use storm during attack or defence?
-
- Terran Barracks Laundry Master
- Posts: 31
- Joined: Thu Jul 16, 2009 1:34 pm
Re: How to? - trigger AI to build unit
Is it possible to make lurker borrow itself with triggers?