Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SC/BW Script Editor

88 views
Skip to first unread message

Dmitry Korolenko

unread,
Aug 3, 2000, 3:00:00 AM8/3/00
to
Hello, All.

Есть у меня к вам дельное предложеньице. Давайте будем в эху кидать (в
текстовом виде) сабжевые тактики. Все это предлагаю для разработки наиболее
эффективной общей тактики за каждую расу.

ICQ : 62564784
E-Mail : inter...@ukrpost.net See You later, [AI] Interceptor.
... Ye shall know the truth, and the truth shall make you free.

Serge Mirnyi

unread,
Aug 8, 2000, 3:00:00 AM8/8/00
to
Hi, Dmitry!

03 Авг 00 18:42 Dmitry Korolenko -> All:

DK> Есть у меня к вам дельное предложеньице. Давайте будем в эху кидать (в
DK> текстовом виде) сабжевые тактики. Все это предлагаю для разработки
DK> наиболее эффективной общей тактики за каждую расу.

Поддержую! Хотя, ежели начальство против, то давай в мыло.
Плюс можно кидать не весь скрипт, а какие-нить узкие места.
Вот например, 99% способ отбить терром зерг раш с 4-го дрона
на BB. Я пробовал с бункером, но комп строит их чёрт знает где.
В результате остановился на двух барраках.


=== Cut ===
:ground_build
build 1 command_center 150
wait_buildstart 1 command_center
build 4 scv 130
wait_buildstart 4 scv
build 6 scv 80
wait_build 6 scv
enemyowns_jump spawning_pool zerg_f#cking_rush
build 7 scv 80
wait_buildstart 7 scv
race_jump zerg terr toss

:zerg_f#cking_rush
build 1 barracks 150
wait_buildstart 1 barracks
build 7 scv 80
wait_buildstart 7 scv
build 2 barracks 150
wait_buildstart 2 barracks
train 1 marine
wait_train 1 marine
defensebuild_gg 1 marine
defenseuse_gg 1 marine
defensebuild_gg 2 marine
defenseuse_gg 2 marine
build 1 supply_depot 80
wait_build 1 supply_depot
defensebuild_gg 3 marine
defenseuse_gg 3 marine
build 8 scv 80
wait_buildstart 8 scv
goto next_build
=== Cut ===


Serge,
E-Mail: joke...@chat.ru


Alexey Popov

unread,
Aug 10, 2000, 3:00:00 AM8/10/00
to

Serge Mirnyi пишет:

> DK> Есть у меня к вам дельное предложеньице. Давайте будем в эху кидать (в
> DK> текстовом виде) сабжевые тактики. Все это предлагаю для разработки
> DK> наиболее эффективной общей тактики за каждую расу.
>
> Поддержую! Хотя, ежели начальство против, то давай в мыло.
> Плюс можно кидать не весь скрипт, а какие-нить узкие места.
> Вот например, 99% способ отбить терром зерг раш с 4-го дрона
> на BB. Я пробовал с бункером, но комп строит их чёрт знает где.
> В результате остановился на двух барраках.
>
> === Cut ===

[...]
Где слить то такой редактор можно, и что он позволяет?

Dmitry Korolenko

unread,
Aug 12, 2000, 3:00:00 AM8/12/00
to
Hello, Alexey.

Thursday August 10 2000 10:23, you wrote to All:

...[This part is breaking]...
AP> Где слить то такой редактор можно, и что он позволяет?
Слить данный редактор можно на www.camsys.org
А насчет позволяет вот выдержка из хелпа: (если чего-то непонятно, подскажем, а
вообще - учите английский, тут он вам пригодится)

=== Hачало Windows Clipboard ===
What is an AI Script?
An AI Script contains the information necessary for the computer to follow a
certain build order and take decisions on its strategies. When you play against
computer players in Melee(or Free For All) games in StarCraft, your computer
opponents won't build because they think of it, but because they follow it from
their predefined AI Script and therefore allow them to act somewhat like a
human player. For example, you could determinate what it builds first, some
workers or a building, depending of what you want.

How can I use them?
Well first of all, if you don't know what "triggers" are or don't even know
what StarEdit is, I strongly suggest you to read a StarEdit tutorial before you
continue reading. The StarEdit help file is a good place to start. StarEdit is
also called Campaign Editor, in case you wonder where it is.

Now I have readers who know how to use StarEdit basically? Good! :) In order to
use AI Scripts, I suppose you already have a map with some units on it and
obviously a computer player. Using the Location Layer(go on the Layer menu),
create a location over the computer base and units. You can rename the location
if you want. Go on the triggers dialog, and create a new trigger. Select the
computer player as the owner, "ALWAYS" as condition and "RUN AI SCRIPT AT
LOCATION" as command. Select the AI Script you want and select the location I
told you to create above. Confirm the creation(click on Finish) and you should
see something like this trigger :

CONDITIONS:
- Always
ACTIONS:
- Execute AI Script 'Terran Expansion Custom Level' at 'Location 0'

If you run StarCraft using your map, you should see the computer using the AI
script you've chosen. This will be approximately the same way you'll use for
your own AI scripts, but this will be described later.

Where are these AI scripts?
The AI Scripts are located in StarDat.mpq(StarCraft Retail version),
BrooDat.mpq(Expansion Brood War version) and Patch_Rt.mpq(Latest patch version)
files located in your StarCraft directory. MPQ files contains a lot of vital
and data files for StarCraft(and some other Blizzard games), which are gathered
and compressed in it. In order to extract these files from a MPQ, you must use
a MPQ Extractor software. You can find one in StarDraft, an essential StarCraft
software you can get from Camelot Systems. In case you look for an alternative,
there is also plenty of others on the Internet, if you search carefully on main
StarCraft sites like StarCraft.org. (Note: You can also extract these files by
double-clicking on the MPQ file with the HDD Navigator, in ScAIEdit III.)

Inside the MPQs reside 2 important files : aiscript.bin and bwscript.bin. If
you don't have the Brood War expansion pack, you'll only find aiscript.bin, as
bwscript.bin is exclusively for Brood War. Don't try opening them in Notepad or
any other text viewer, because you cannot edit them directly, else you wouldn't
need ScAIEdit right? :) You don't need to extract these files in order to use
ScAIEdit III, as the latest files are located in the "default" directory of
your ScAIEdit III installation folder for your convenience.

An important note : these script files cannot exceed in any way 65535 bytes,
since the structure cannot handle more. If you ever exceed this size, ScAIEdit
III will abort the saving process and warn you about this. The most recent
version of aiscript.bin takes 62050 bytes. That means there isn't a lot of
place for your scripts, but the ScAIEdit III version takes 59385 bytes because
it removes unused code, so it's already better. You'll probably need to delete
generally unused scripts(like mission scripts) in order to make space for your
own, but this will be subject to another discussion... Note that if you have
Brood War, you won't have to worry much about that because the original version
of bwscript.bin only takes 26458 bytes, and ScAIEdit III version takes 27029
bytes. The extra space used is justified by the external calls being moved to
local, but it still leaves plenty of space for your work.

The scripts are composed of many commands, internally named opcodes, referring
to the assembly language. You can find the list of commands at the List of ASC3
Commands. ScAIEdit III uses the ASC(AI Script Code) language, called ASC3
because it's the third rewrite of this language. You can get more informations
at the AI Script Code(ASC) Language section. Note that the ASC(in all versions)
language has been entirely created by ScAIEdit(all versions) author(Gold
Dragon), and thus isn't a standard and hasn't been used by Blizzard staff.

Can I do more than giving the computer a build order?
AI Scripts only controls the computer build order and attack schemes. However,
you can change a part of the build order on certain conditions. For example, if
the map is mainly composed of islands instead of ground, you can decide to
apply a different build order(and it's strongly recommended :), using a
condition check command. The list of available checks(and other commands) is
available at the List of ASC3 Commands. All will become clear once you've
started writing your first script :)

Important note: You cannot modify the building placement, the way computer
attacks and general behavior of the computer with its units. This is handled by
the AI Interpreter located in the EXE file of StarCraft, and thus not
modifiable. There is a few exceptions to this rule, as certain commands have a
little influence on these points, but not enough to consider having full
control on the situation.
=== Конец Windows Clipboard ===

ICQ : 62564784
E-Mail : inter...@ukrpost.net See You later, [AI] Interceptor.

... I rebel against your rules your silly human rules.

0 new messages