Page 1 of 3

How to? - trigger AI to build unit

Posted: Thu Jul 16, 2009 2:02 pm
by George
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?

Re: How to? - trigger AI to build unit

Posted: Thu Jul 16, 2009 3:35 pm
by Church
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!

Re: How to? - trigger AI to build unit

Posted: Thu Jul 16, 2009 9:39 pm
by George
Jim_Raynor wrote:Edit: Oh, yeah and please use The Workshop for these kind of questions. Thanks!
Moderators, please move the topic to the right place

Re: How to? - trigger AI to build unit

Posted: Thu Jul 16, 2009 9:43 pm
by George
Jim_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.
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 description :(
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

Posted: Thu Jul 16, 2009 10:23 pm
by WedgeAntilles
George wrote: For example, is there any script to make AI build a building at location? not get the building, but BUILD it?
I don't believe you can do that through a map editor, but it is possible by editing the AI scripts.

Jim_Raynor wrote: Oh, yeah and please use The Workshop for these kind of questions. Thanks!
This topic is in the right place. The workshop is for media-related problems.

Re: How to? - trigger AI to build unit

Posted: Fri Jul 17, 2009 6:45 am
by George
WedgeAntilles wrote:
George wrote: For example, is there any script to make AI build a building at location? not get the building, but BUILD it?
don't believe you can do that through a map editor, but it is possible by editing the AI scripts.
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?

Re: How to? - trigger AI to build unit

Posted: Fri Jul 17, 2009 8:12 am
by omega20
George wrote:
WedgeAntilles wrote:
George wrote: For example, is there any script to make AI build a building at location? not get the building, but BUILD it?
don't believe you can do that through a map editor, but it is possible by editing the AI scripts.
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?
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 :P).

Cheers and have fun! :D

Re: How to? - trigger AI to build unit

Posted: Fri Jul 17, 2009 11:25 am
by George
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 :P).
Cheers and have fun! :D
Can I add a new script or only replace existing scripts?

Re: How to? - trigger AI to build unit

Posted: Fri Jul 17, 2009 12:46 pm
by Church
WedgeAntilles wrote:
Jim_Raynor wrote: Oh, yeah and please use The Workshop for these kind of questions. Thanks!
This topic is in the right place. The workshop is for media-related problems.
Oops, sorry.

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.

Re: How to? - trigger AI to build unit

Posted: Sat Jul 18, 2009 10:05 pm
by George
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.
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).
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. 

Re: How to? - trigger AI to build unit

Posted: Sat Jul 18, 2009 10:23 pm
by George
Krazy wrote: As far as I know, no, not within the confines of SC1. 
Then this is not correct solution for me.
Coming back to the initial question - how to make AI build something in scenario WITHOUT SCRIPT EDITING (because scripts are not stored in scenarios)

Re: How to? - trigger AI to build unit

Posted: Tue Jul 21, 2009 1:40 pm
by George
Is it possible to make High Templar to cast Psionic Storm at location with triggers?

Re: How to? - trigger AI to build unit

Posted: Tue Jul 21, 2009 4:53 pm
by Rocco
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.

Re: How to? - trigger AI to build unit

Posted: Wed Jul 22, 2009 11:55 am
by George
is it possible to make them use storm during attack or defence?

Re: How to? - trigger AI to build unit

Posted: Wed Jul 22, 2009 1:41 pm
by George
Is it possible to make lurker borrow itself with triggers?