Baldur's Gate Wiki:Game source files/BCS/CDGNOLLS

CDGNOLLS.bcs is a "trap" script in Baldur's Gate: Enhanced Edition, attached to a single locked chest in the northernmost tent of the Bandit Camp. The chest contains a Pearl Necklace and.

Code
IF Opened([ANYONE]) !Dead("flindb") // Flind !Dead("gnoll_bb") // Gnoll !Dead("gnoll_eb") // Gnoll Veteran !Allegiance("flindb",ENEMY) // Flind !Allegiance("gnoll_bb",ENEMY) // Gnoll !Allegiance("gnoll_eb",ENEMY) // Gnoll Veteran THEN RESPONSE #33 ActionOverride("flindb",DisplayStringHead("flindb",29955)) // grrrrrrrr ActionOverride("flindb",Enemy) ActionOverride("gnoll_bb",Enemy) ActionOverride("gnoll_eb",Enemy) RESPONSE #33 ActionOverride("gnoll_bb",DisplayStringHead("gnoll_bb",29955)) // grrrrrrrr ActionOverride("flindb",Enemy) ActionOverride("gnoll_bb",Enemy) ActionOverride("gnoll_eb",Enemy) RESPONSE #33 ActionOverride("gnoll_eb",DisplayStringHead("gnoll_eb",29955)) // grrrrrrrr ActionOverride("flindb",Enemy) ActionOverride("gnoll_bb",Enemy) ActionOverride("gnoll_eb",Enemy) END

Script
If the party opens this chest, the script will turn the gnolls in the tent hostile.