SCAI Editor Problems...
Posted: Tue Jul 07, 2009 6:26 pm
I recently downloaded SCAI Editor 3.1, in hopes to begin modding AI scripts (Obviously).
My first script was simple, a Terran and Zerg script that only limited them to construct one building, and three units. This script of course, is for a certain mod.
However, SCAI keeps rejecting my script when I compile it, saying that there's errors, when there isn't. I've talked to few people about it, but this is out of there field of experience.
Here is the Terran script I'm using, the same error shows up for both Zerg and terran.
CODE; ASC3 File generated by ScAIEdit III
;
; Script name : Terran Expansion Custom Level
script_name Terran Expansion Custom Level
script_id TMCx
start_town
transports_off
farms_notiming
define_max 10 ghost
define_max 4 scv
define_max 40 marine
build 1 command_center 80
build 4 scv 40
give_money
attack_add 3 marine
attack_prepare
attack_do
attack_clear
clear_combatdata
build 2 command_center 80
give_money
defensebuild_gg 10 marine
defensebuild_gg 3 ghost
give_money
attack_add 15 marine
attack_add 1 ghost
attack_prepare
attack_do
attack_clear
clear_combatdata
build 3 command_center 80
:block1
give_money
attack_add 25 marine
attack_add 6 ghost
attack_prepare
attack_do
attack_clear
clear_combatdata
wait 50
goto block1
One of the people I talked to said this would be the correct AI script, although it keeps giving false errors.
This, is the error message I keep getting...
'1 error message
(38) Error! An integer was expected at parameter 1.'
Line 38 is 'attack_prepare'. I don't see any integer needed there...
My first script was simple, a Terran and Zerg script that only limited them to construct one building, and three units. This script of course, is for a certain mod.
However, SCAI keeps rejecting my script when I compile it, saying that there's errors, when there isn't. I've talked to few people about it, but this is out of there field of experience.
Here is the Terran script I'm using, the same error shows up for both Zerg and terran.
CODE; ASC3 File generated by ScAIEdit III
;
; Script name : Terran Expansion Custom Level
script_name Terran Expansion Custom Level
script_id TMCx
start_town
transports_off
farms_notiming
define_max 10 ghost
define_max 4 scv
define_max 40 marine
build 1 command_center 80
build 4 scv 40
give_money
attack_add 3 marine
attack_prepare
attack_do
attack_clear
clear_combatdata
build 2 command_center 80
give_money
defensebuild_gg 10 marine
defensebuild_gg 3 ghost
give_money
attack_add 15 marine
attack_add 1 ghost
attack_prepare
attack_do
attack_clear
clear_combatdata
build 3 command_center 80
:block1
give_money
attack_add 25 marine
attack_add 6 ghost
attack_prepare
attack_do
attack_clear
clear_combatdata
wait 50
goto block1
One of the people I talked to said this would be the correct AI script, although it keeps giving false errors.
This, is the error message I keep getting...
'1 error message
(38) Error! An integer was expected at parameter 1.'
Line 38 is 'attack_prepare'. I don't see any integer needed there...