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 way to 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_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[ (TYPE) (EQ) (GE)(TYPE) (EQ) (GE)
]IN] [IN IN] [IN[ (TYPE) (EQ) (IN)(TYPE) (EQ) (IN)
]EN] [EN EN] [EN[ (TYPE) (EQ) (EN)(TYPE) (EQ) (EN)
]AR] [AR AR] [AR[ (TYPE) (EQ) (AR)(TYPE) (EQ) (AR)
]FI] [FI FI] [FI[ (TYPE) (EQ) (FI)(TYPE) (EQ) (FI)
]BO] [BO BO] [BO[ (TYPE) (EQ) (BO)(TYPE) (EQ) (BO)
]AT] [AT AT] [AT[ (TYPE) (EQ) (AT)(TYPE) (EQ) (AT)
]LA] [LA LA] [LA[ (TYPE) (EQ) (LA)(TYPE) (EQ) (LA)
]HA] [HA HA] [HA[ (TYPE) (EQ) (HA)(TYPE) (EQ) (HA)
]AA] [AA AA] [AA[ (TYPE) (EQ) (AA)(TYPE) (EQ) (AA)
]TK] [TK TK] [TK[ (TYPE) (EQ) (TK)(TYPE) (EQ) (TK)
]SB] [SB SB] [SB[ (TYPE) (EQ) (SB)(TYPE) (EQ) (SB)
]PB] [PB PB] [PB[ (TYPE) (EQ) (PB)(TYPE) (EQ) (PB)
]DE] [DE DE] [DE[ (TYPE) (EQ) (DE)(TYPE) (EQ) (DE)
]CR] [CR CR] [CR[ (TYPE) (EQ) (CR)(TYPE) (EQ) (CR)
]BB] [BB BB] [BB[ (TYPE) (EQ) (BB)(TYPE) (EQ) (BB)
]AC] [AC AC] [AC[ (TYPE) (EQ) (AC)(TYPE) (EQ) (AC)
]TR] [TR TR] [TR[ (TYPE) (EQ) (TR)(TYPE) (EQ) (TR)
]SU] [SU SU] [SU[ (TYPE) (EQ) (SU)(TYPE) (EQ) (SU)
]SS] [SS SS] [SS[ (TYPE) (EQ) (SS)(TYPE) (EQ) (SS)
]SD] [SD SD] [SD[ (TYPE) (EQ) (SD)(TYPE) (EQ) (SD)
]HE] [HE HE] [HE[ (TYPE) (EQ) (HE)(TYPE) (EQ) (HE)
]SC] [SC SC] [SC[ (TYPE) (EQ) (SC)(TYPE) (EQ) (SC)
]ST] [ST ST] [ST[ (TYPE) (EQ) (ST)(TYPE) (EQ) (ST)
]PT] [PT PT] [PT[ (TYPE) (EQ) (PT)(TYPE) (EQ) (PT)
]FT] [FT FT] [FT[ (TYPE) (EQ) (FT)(TYPE) (EQ) (FT)
]CI] [CI CI] [CI[ (TYPE) (EQ) (CI)(TYPE) (EQ) (CI)
]AB] [AB AB] [AB[ (TYPE) (EQ) (AB)(TYPE) (EQ) (AB)
]OF] [OF OF] [OF[ (TYPE) (EQ) (OF)(TYPE) (EQ) (OF)
]SP] [SP SP] [SM[ (TYPE) (EQ) (SM)(TYPE) (EQ) (SM)
]SM] [SM SM] [SM[ (TYPE) (EQ) (SM)(TYPE) (EQ) (SM)
]LM] [LM LM] [LM[ (TYPE) (EQ) (LM)(TYPE) (EQ) (LM)
]SN] [SN SN] [SN[ (TYPE) (EQ) (SN)(TYPE) (EQ) (SN)
]LN] [LN LN] [LN[ (TYPE) (EQ) (LN)(TYPE) (EQ) (LN)
------------------------------------