Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

CHECK_AI_SCRIPT


I've included a quick search for common typos in editing an AI script.

When your done editing your AI scripts run the below common typos this will help you quickly clean up your scripts of common errors.

Take these example lines:

[SAI_ROE   &   SAI_ROE]   this may end up being a tedious search - as all [SAI_ROE] will be processed, but it will be a quick wat yo step through your search.  Scrolling through "freehand" with a mouse may allow you to miss a typo.

[SAI_ROE[  this may get you accurately to all the typos with a missing "]".

Example: You would enter into your text editor:   [SAI_ROE[   then search for any anomalies and replace any if found.

(Sometimes these can be tedious and your mind can wander. Try and focus, before you know it, everything starts blending together.)  If you run the checks below, you will be certain of a cleaner script. It's what I use to double check my work.

Here is one set to be mindful of:

(GE)   Greater than or equal to

[GE]   The General unit

(*Caution*  There are words like RANGE, AGE, PORTAGE and ENGAGEMENT  that have GE in them,)

Below are many different typo generating mistakes I've encountered...

------------------------------------

Typical ROE condition specific check search for errors.

------------------------------------

))

((

[[

]]

SAI_ROE]       [SAI_ROE             [SAI_ROE[

SAI_ROE_PRI]       [SAI_ROE_PRI       [SAI_ROE_PRI[       [SAI_ROE_PRI[

SAI_ROE_DEF]       [SAI_ROE_DEF              [SAI_ROE_DEF[    

]ME]       ME]       [ME      [ME[

]FE]       FE]       [FE       [FE[       

]EV]       EV]       [EV      [EV[        

]NA]       NA]       [NA        [NA[      

]EQ)       EQ)       (EQ       (EQ(      

)TYPE)       TYPE)       (TYPE            (TYPE(  

)HOST)       HOST)       (HOST       (HOST(       

)PEFF)       PEFF)       (PEFF       (PEFF(       

)PLY)       PLY)       (PLY       (PLY(       

)NEUT)       NEUT)       (NEUT            (NEUT( 

)MAN)       MAN)       (MAN       (MAN(  

)COMP)       COMP)       (COMP       (COMP  

)DMG)       DMG)       (DMG       (DMG(  

)RNG)       RNG)       (RNG       (RNG(  

)LVL)       LVL)       (LVL       (LVL(  

)A)       A)       (A       (A(  

)O)       O)       (O       (O(  

)T)       T)       (T       (T(   

)F)       F)       (F       (F(  

)DIS)       DIS)       (DIS       (DIS(  

)UNIT)       UNIT)       (UNIT       (UNIT(  

)NE)       NE)       (NE       (NE( 

)LE)       LE)       (LE       (LE(  

)LT)       LT)       (LT       (LT(  

)GE)       GE)       (GE       (GE(  

)GT)       GT)       (GT       (GT(  

)SB)       SB)       (SB       (SB(  

)GR)       GR)       (GR       (GR(  

)OF)       OF)       (OF       (OF(  

)OB)       OB)       (OB       (OB(  

)RE)       RE)       (RE       (RE(  

------------------------------------

Standard AI unit name search. (Not default AI script?  Provide your own mod specific unit names.)

]GE]       GE]       [GE      [GE[ 

]IN]        [IN           IN]       [IN[  

]EN]       [EN        EN]       [EN[

]AR]       [AR       AR]       [AR[  

]FI]         [FI           FI]       [FI[  

]BO]       [BO       BO]       [BO[  

]AT]       [AT       AT]       [AT[  

]LA]       [LA       LA]       [LA[  

]HA]       [HA      HA]       [HA[  

]AA]       [AA       AA]       [AA[  

]TK]       [TK       TK]       [TK[  

]SB]       [SB         SB]       [SB[  

]PB]       [PB        PB]       [PB[  

]DE]       [DE       DE]       [DE[  

]CR]       [CR       CR]       [CR[    

]BB]       [BB        BB]       [BB[  

]AC]       [AC       AC]       [AC[  

]TR]       [TR       TR]       [TR[  

]SU]       [SU        SU]       [SU[  

]SS]       [SS         SS]       [SS[  

]SD]       [SD        SD]       [SD[  

]HE]       [HE       HE]       [HE[  

]SC]       [SC        SC]       [SC[  

]ST]       [ST        ST]       [ST[  

]PT]       [PT        PT]       [PT[  

]FT]       [FT        FT]       [FT[    

]CI]       [CI          CI]       [CI[    

]AB]       [AB       AB]       [AB[  

]OF]       [OF       OF]       [OF[    

]SP]       [SP        SP]       [SP[    

]SM]       [SM      SM]       [SM[    

]LM]       [LM    LM]       [LM[  

]SN]       [SN       SN]       [SN[  

]LN]       [LN      LN]       [LN[  

------------------------------------