Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

I think I noticed more damage on ships than i usually had seen and behavior that seemed a little different since last iteration of scripts.

But perhaps my mind is playing tricks on me.

I will have to play a game where I can observe what the AI is doing game turn to game turn.

I was watching the AI play against each other and couldn't really get a feel for what was going on.

I have not added Man or COMP yet. Perhaps in a different script.

Also RANGE - how is this different from DIS? Is it just referring to firing range in which case it is very similar to what I'm trying to do using DIS?

I included some Conditions below, does anything look out of place?

I have watched the AI play - so no hang or crash.

.

1/2 my AI script has new conditions. The rest of the script will be completed by the weekend.


Just a small snippet of Conditions I'm working on - T6 is an Armored Transport

[SAI_ROE][DE][(A)(TYPE)(EQ)(BB)(DMG)(LT)(6)(TYPE)(EQ)(BB)(DIS)(LT)(5)][FE]

[SAI_ROE][DE][(A)(TYPE)(EQ)(BB)(DMG)(LT)(2)(TYPE)(EQ)(BB)(DIS)(EQ)(1)][ME]

[SAI_ROE][DE][(A)(TYPE)(EQ)(T6)(UNIT)(EQ)(T)(TYPE)(EQ)(T6)(DMG)(LT)(2)(TYPE)(EQ)(T6)(DIS)(GE)(1)(TYPE)(EQ)(T6)(DIS)(LE)(3)][ME]

[SAI_ROE][DE][(A)(TYPE)(EQ)(T6)(UNIT)(EQ)(F)(TYPE)(EQ)(T6)(DIS)(GE)(1)(TYPE)(EQ)(T6)(DIS)(LT)(3)][FE]


Example of a Destroyer unit implemented in AI script:

#////////////////////////////////////////////////

# DE = Destroyer

#////////////////////////////////////////////////

[SAI_ROE][DE][(O)(TYPE)(EQ)(CI)][NA]

[SAI_ROE][DE][(A)(LVL)(EQ)(GR)(RNG)(LE)(FRNG)(PLY)(EQ)(NEUT)][NA]

[SAI_ROE][DE][(A)(LVL)(NE)(OF)(LVL)(NE)(GR)(LVL)(NE)(OB)(LVL)(NE)(RE)][NA]

[SAI_ROE][DE][(A)(DMG)(LE)(4)][NA]

[SAI_ROE][DE][(A)(DIS)(GT)(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ROE_PRI][DE][A1][25]

[SAI_ROE_PRI][DE][IR][25]

[SAI_ROE_PRI][DE][AB][25]

[SAI_ROE_PRI][DE][PT][25]

[SAI_ROE_PRI][DE][TK][25]

[SAI_ROE_PRI][DE][V1][25]

[SAI_ROE_PRI][DE][V2][25]

[SAI_ROE_PRI][DE][V4][25]

[SAI_ROE_PRI][DE][V7][25]

[SAI_ROE_PRI][DE][AA][25]

[SAI_ROE_PRI][DE][A2][25]

[SAI_ROE_PRI][DE][AR][25]

[SAI_ROE_PRI][DE][A4][25]

[SAI_ROE_PRI][DE][A6][25]

[SAI_ROE_PRI][DE][M2][25]

[SAI_ROE_DEF][DE][ME]

#////////////////////////////////////////////////


All my scripts were used in game - no hangs or crashes.