Skip to content

tlplayer/BG-AI-Scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BG-AI-Scripts

AI Scripts for BG 1 & 2

AI script names cannot be > 8 characters otherwise the game can't find the scripts.

Keep the scripts in a seperate directory from where you compile otherwise comments will be removed

Add 1 code block at a time. Make globals at the top and do advanced conditionals there. Makes the code cleaner/easier to debug.

Why all the ActionListEmpty()? From what I've seen, when the game starts the THEN block responses, it will start evaluating IFs in parallel. Meaning, if you use lastseenby as the target in your checks, those checks will clear, the action will not start before the lastseenby changes to the next target Cure light wounds on ally, blind ally, attack allies etc. Not great for RP.

CHEATS:

BONUS: If you want to change stats of a character in game use C:Eval("ChangeStat(Player1,INT,22,SET)") this will set the int of the character to 22

C:StartStore("BPXITH03") C:StartStore("BPDEVL03") C:StartStore("BPCONC03") C:StartStore("BPELAN03") C:Exec("addspells.txt")

TODO: Handle insect plague bricking my characters lol

About

AI Scripts for BG 1 & 2

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors