Staredit Network

Staredit Network -> Portal News -> Broodwar; Elite AI Project v3.0
Report, edit, etc...Posted by exo6yte on 2005-01-06 at 16:18:35
QUOTE(StealthyDeath @ Dec 31 2004, 02:53 PM)
A block is just a section of the script.  A script usually has lots of blocks to go with on the jump.

An example would be:

CODE
enemyresources_jump (word) (word) (block)
If enemy has at least %1(word) minerals and %2(word) gas then jump in %3(block).


:block1
enemyresources_jump 5000 5000 block2
goto block3

:block2
build 3 scv

:block3
build 1 scv

Basically if the enemy of the computer has at least 5000 minerals and gas the computer will build 3 scvs.  If the enemy of the computer doesn't meet the requirement it will build 1 scv instead.
[right][snapback]117280[/snapback][/right]


That sounds an awful lot like ZZT-OOP.
Report, edit, etc...Posted by olaboy- on 2005-01-20 at 20:18:41
Hehe thats some nice ai.
Next Page (2)