How to? - trigger AI to build unit

George
Terran Barracks Laundry Master
Terran Barracks Laundry Master
Posts: 31
Joined: Thu Jul 16, 2009 1:34 pm

How to? - trigger AI to build unit

Post 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?
User avatar
Church
Zerg Ultralisk Waste Manager
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

Post 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!
Last edited by Church on Thu Jul 16, 2009 3:37 pm, edited 1 time in total.
George
Terran Barracks Laundry Master
Terran Barracks Laundry Master
Posts: 31
Joined: Thu Jul 16, 2009 1:34 pm

Re: How to? - trigger AI to build unit

Post 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
George
Terran Barracks Laundry Master
Terran Barracks Laundry Master
Posts: 31
Joined: Thu Jul 16, 2009 1:34 pm

Re: How to? - trigger AI to build unit

Post 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?
WedgeAntilles

Re: How to? - trigger AI to build unit

Post 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.
George
Terran Barracks Laundry Master
Terran Barracks Laundry Master
Posts: 31
Joined: Thu Jul 16, 2009 1:34 pm

Re: How to? - trigger AI to build unit

Post 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?
User avatar
omega20
Zerg Ultralisk Waste Manager
Zerg Ultralisk Waste Manager
Posts: 692
Joined: Sun Apr 06, 2008 7:38 am

Re: How to? - trigger AI to build unit

Post 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
[imgwh 400x120]http://www.sigrealm.com/freesigs/178_Starcraft2MultSig.jpg[/imgwh]
George
Terran Barracks Laundry Master
Terran Barracks Laundry Master
Posts: 31
Joined: Thu Jul 16, 2009 1:34 pm

Re: How to? - trigger AI to build unit

Post 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?
User avatar
Church
Zerg Ultralisk Waste Manager
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

Post 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.
George
Terran Barracks Laundry Master
Terran Barracks Laundry Master
Posts: 31
Joined: Thu Jul 16, 2009 1:34 pm

Re: How to? - trigger AI to build unit

Post 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. 
George
Terran Barracks Laundry Master
Terran Barracks Laundry Master
Posts: 31
Joined: Thu Jul 16, 2009 1:34 pm

Re: How to? - trigger AI to build unit

Post 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)
George
Terran Barracks Laundry Master
Terran Barracks Laundry Master
Posts: 31
Joined: Thu Jul 16, 2009 1:34 pm

Re: How to? - trigger AI to build unit

Post by George »

Is it possible to make High Templar to cast Psionic Storm at location with triggers?
User avatar
Rocco
Zerg Ultralisk Waste Manager
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

Post 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.
[quote="AA7Dragoon"]
No homo.
[/quote]
George
Terran Barracks Laundry Master
Terran Barracks Laundry Master
Posts: 31
Joined: Thu Jul 16, 2009 1:34 pm

Re: How to? - trigger AI to build unit

Post by George »

is it possible to make them use storm during attack or defence?
George
Terran Barracks Laundry Master
Terran Barracks Laundry Master
Posts: 31
Joined: Thu Jul 16, 2009 1:34 pm

Re: How to? - trigger AI to build unit

Post by George »

Is it possible to make lurker borrow itself with triggers?
Post Reply