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

Line 0001
IF OR(2) SpellCastOnMe([ANYONE],CLERIC_RESURRECTION) // SPPR712.SPL (Resurrection) SpellCastOnMe([ANYONE],CLERIC_RAISE_DEAD) // SPPR504.SPL (Raise Dead) UnselectableVariableGT(0) THEN RESPONSE #100 Wait(1) ChangeEnemyAlly(Myself,PC) MakeUnselectable(0) MoveToOffset([0.0]) SetSequence(SEQ_AWAKE) Continue END

Line 0016
IF OR(2) AreaCheck("OH9350") AreaCheck("OH9310") Global("BATTLE_COMPLETE","GLOBAL",0) UnselectableVariableGT(0) THEN RESPONSE #100 PlayDeadInterruptable(9999) END

Line 0027
IF Global("BATTLE_COMPLETE","GLOBAL",0) UnselectableVariableGT(0) HPGT(Myself,1) THEN RESPONSE #100 ApplyDamagePercent(Myself,100,CRUSHING) END

Line 0036
IF AreaCheck("OH9360") OR(2) !Allegiance(Myself,PC) UnselectableVariableGT(0) THEN RESPONSE #100 ChangeEnemyAlly(Myself,PC) MakeUnselectable(0) Continue END

Line 0048
IF GlobalGT("BATTLE_COMPLETE","GLOBAL",0) !Allegiance(Myself,PC) OR(2) AreaCheck("OH9350") AreaCheck("OH9310") THEN RESPONSE #100 ChangeEnemyAlly(Myself,PC) Continue END

Line 0060
IF GlobalGT("BATTLE_COMPLETE","GLOBAL",0) UnselectableVariableGT(0) THEN RESPONSE #100 Wait(1) MakeUnselectable(0) MoveToOffset([0.0]) SetSequence(SEQ_AWAKE) Continue END

Line 0072
IF Global("BATTLE_COMPLETE","GLOBAL",0) GlobalLT("T3_B5","GLOBAL",1) HPLT(Myself,2) OR(10) StateCheck(Myself,STATE_CHARMED) StateCheck(Myself,STATE_BERSERK) StateCheck(Myself,STATE_PANIC) StateCheck(Myself,STATE_STUNNED) StateCheck(Myself,STATE_HELPLESS) StateCheck(Myself,STATE_SILENCED) StateCheck(Myself,STATE_CONFUSED) StateCheck(Myself,STATE_FEEBLEMINDED) StateCheck(Myself,STATE_DISEASED) StateCheck(Myself,STATE_BLIND) THEN RESPONSE #100 ApplySpellRES("BPDISPEL",Myself) // Dispel Magic MakeUnselectable(5000) ChangeEnemyAlly(Myself,EVILBUTBLUE) PlayDeadInterruptable(9999) END

Line 0095
IF OR(2) AreaCheck("OH9360") !AreaCheckAllegiance(ENEMY) OR(10) StateCheck(Myself,STATE_CHARMED) StateCheck(Myself,STATE_BERSERK) StateCheck(Myself,STATE_PANIC) StateCheck(Myself,STATE_STUNNED) StateCheck(Myself,STATE_HELPLESS) StateCheck(Myself,STATE_SILENCED) StateCheck(Myself,STATE_CONFUSED) StateCheck(Myself,STATE_FEEBLEMINDED) StateCheck(Myself,STATE_DISEASED) StateCheck(Myself,STATE_BLIND) THEN RESPONSE #100 ApplySpellRES("BPDISPEL",Myself) // Dispel Magic END

Line 0115
IF Global("BATTLE_COMPLETE","GLOBAL",0) GlobalLT("T3_B5","GLOBAL",1) HPLT(Myself,2) UnselectableVariable(0) OR(2) AreaCheck("OH9350") AreaCheck("OH9310") THEN RESPONSE #100 MakeUnselectable(5000) ChangeEnemyAlly(Myself,EVILBUTBLUE) PlayDeadInterruptable(9999) END

Line 0130
IF GlobalGT("BPINTRO","GLOBAL",2) Global("BPSetWeapon","LOCALS",0) Class(Myself,FIGHTER_ALL) CheckStatGT(Myself,5,STR) THEN RESPONSE #100 SetGlobal("BPSetWeapon","LOCALS",1) CreateItem("blun01",0,0,0) // Club FillSlot(SLOT_WEAPON0) EquipMostDamagingMelee RESPONSE #100 SetGlobal("BPSetWeapon","LOCALS",1) CreateItem("dagg01",0,0,0) // Dagger FillSlot(SLOT_WEAPON0) EquipMostDamagingMelee RESPONSE #100 SetGlobal("BPSetWeapon","LOCALS",1) CreateItem("sw1h07",0,0,0) // Short Sword FillSlot(SLOT_WEAPON0) EquipMostDamagingMelee END

Line 0153
IF GlobalGT("BPINTRO","GLOBAL",2) Global("BPSetWeapon","LOCALS",0) Class(Myself,RANGER_ALL) CheckStatGT(Myself,5,STR) THEN RESPONSE #100 SetGlobal("BPSetWeapon","LOCALS",1) CreateItem("blun01",0,0,0) // Club FillSlot(SLOT_WEAPON0) EquipMostDamagingMelee RESPONSE #100 SetGlobal("BPSetWeapon","LOCALS",1) CreateItem("bow05",0,0,0) // Shortbow CreateItem("arow01",40,0,0) // Arrow FillSlot(SLOT_WEAPON0) FillSlot(SLOT_AMMO0) EquipRanged END

Line 0173
IF GlobalGT("BPINTRO","GLOBAL",2) Global("BPSetWeapon","LOCALS",0) Class(Myself,PALADIN_ALL) CheckStatGT(Myself,5,STR) THEN RESPONSE #100 SetGlobal("BPSetWeapon","LOCALS",1) CreateItem("blun01",0,0,0) // Club FillSlot(SLOT_WEAPON0) EquipMostDamagingMelee RESPONSE #100 SetGlobal("BPSetWeapon","LOCALS",1) CreateItem("dagg01",0,0,0) // Dagger FillSlot(SLOT_WEAPON0) EquipMostDamagingMelee RESPONSE #100 SetGlobal("BPSetWeapon","LOCALS",1) CreateItem("sw1h07",0,0,0) // Short Sword FillSlot(SLOT_WEAPON0) EquipMostDamagingMelee END

Line 0196
IF GlobalGT("BPINTRO","GLOBAL",2) Global("BPSetWeapon","LOCALS",0) Class(Myself,CLERIC_ALL) CheckStatGT(Myself,5,STR) THEN RESPONSE #100 SetGlobal("BPSetWeapon","LOCALS",1) CreateItem("blun01",0,0,0) // Club FillSlot(SLOT_WEAPON0) EquipMostDamagingMelee RESPONSE #100 SetGlobal("BPSetWeapon","LOCALS",1) CreateItem("slng01",0,0,0) // Sling CreateItem("bull01",40,0,0) // Bullet FillSlot(SLOT_WEAPON0) FillSlot(SLOT_AMMO0) EquipRanged END

Line 0216
IF GlobalGT("BPINTRO","GLOBAL",2) Global("BPSetWeapon","LOCALS",0) Class(Myself,DRUID_ALL) CheckStatGT(Myself,5,STR) THEN RESPONSE #100 SetGlobal("BPSetWeapon","LOCALS",1) CreateItem("blun01",0,0,0) // Club FillSlot(SLOT_WEAPON0) EquipMostDamagingMelee RESPONSE #100 SetGlobal("BPSetWeapon","LOCALS",1) CreateItem("sper01",0,0,0) // Spear FillSlot(SLOT_WEAPON0) EquipMostDamagingMelee RESPONSE #100 SetGlobal("BPSetWeapon","LOCALS",1) CreateItem("staf01",0,0,0) // Quarterstaff FillSlot(SLOT_WEAPON0) EquipMostDamagingMelee RESPONSE #100 SetGlobal("BPSetWeapon","LOCALS",1) CreateItem("slng01",0,0,0) // Sling CreateItem("bull01",40,0,0) // Bullet FillSlot(SLOT_WEAPON0) FillSlot(SLOT_AMMO0) EquipRanged END

Line 0246
IF GlobalGT("BPINTRO","GLOBAL",2) Global("BPSetWeapon","LOCALS",0) Class(Myself,MAGE_ALL) THEN RESPONSE #100 SetGlobal("BPSetWeapon","LOCALS",1) CreateItem("dagg01",0,0,0) // Dagger FillSlot(SLOT_WEAPON0) EquipMostDamagingMelee RESPONSE #100 SetGlobal("BPSetWeapon","LOCALS",1) CreateItem("staf01",0,0,0) // Quarterstaff FillSlot(SLOT_WEAPON0) EquipMostDamagingMelee RESPONSE #100 SetGlobal("BPSetWeapon","LOCALS",1) CreateItem("slng01",0,0,0) // Sling CreateItem("bull01",40,0,0) // Bullet FillSlot(SLOT_WEAPON0) FillSlot(SLOT_AMMO0) EquipRanged END

Line 0270
IF GlobalGT("BPINTRO","GLOBAL",2) Global("BPSetWeapon","LOCALS",0) Class(Myself,THIEF_ALL) CheckStatGT(Myself,5,STR) THEN RESPONSE #100 SetGlobal("BPSetWeapon","LOCALS",1) CreateItem("dagg01",0,0,0) // Dagger FillSlot(SLOT_WEAPON0) EquipMostDamagingMelee RESPONSE #100 SetGlobal("BPSetWeapon","LOCALS",1) CreateItem("blun01",0,0,0) // Club FillSlot(SLOT_WEAPON0) EquipMostDamagingMelee RESPONSE #100 SetGlobal("BPSetWeapon","LOCALS",1) CreateItem("bow05",0,0,0) // Shortbow CreateItem("arow01",40,0,0) // Arrow FillSlot(SLOT_WEAPON0) FillSlot(SLOT_AMMO0) EquipRanged END

Line 0295
IF GlobalGT("BPINTRO","GLOBAL",2) Global("BPSetWeapon","LOCALS",0) Class(Myself,BARD_ALL) CheckStatGT(Myself,5,STR) THEN RESPONSE #100 SetGlobal("BPSetWeapon","LOCALS",1) CreateItem("dagg01",0,0,0) // Dagger FillSlot(SLOT_WEAPON0) EquipMostDamagingMelee RESPONSE #100 SetGlobal("BPSetWeapon","LOCALS",1) CreateItem("blun01",0,0,0) // Club FillSlot(SLOT_WEAPON0) EquipMostDamagingMelee RESPONSE #100 SetGlobal("BPSetWeapon","LOCALS",1) CreateItem("bow05",0,0,0) // Shortbow CreateItem("arow01",40,0,0) // Arrow FillSlot(SLOT_WEAPON0) FillSlot(SLOT_AMMO0) EquipRanged END

Line 0320
IF GlobalGT("BPINTRO","GLOBAL",2) Global("BPSetWeapon","LOCALS",0) Class(Myself,SORCERER) CheckStatGT(Myself,5,STR) THEN RESPONSE #100 SetGlobal("BPSetWeapon","LOCALS",1) CreateItem("dagg01",0,0,0) // Dagger FillSlot(SLOT_WEAPON0) EquipMostDamagingMelee RESPONSE #100 SetGlobal("BPSetWeapon","LOCALS",1) CreateItem("staf01",0,0,0) // Quarterstaff FillSlot(SLOT_WEAPON0) EquipMostDamagingMelee RESPONSE #100 SetGlobal("BPSetWeapon","LOCALS",1) CreateItem("slng01",0,0,0) // Sling CreateItem("bull01",40,0,0) // Bullet FillSlot(SLOT_WEAPON0) FillSlot(SLOT_AMMO0) EquipRanged END

Line 0345
IF GlobalGT("BPINTRO","GLOBAL",2) Global("BPSetWeapon","LOCALS",0) CheckStatLT(Myself,5,STR) THEN RESPONSE #100 SetGlobal("BPSetWeapon","LOCALS",1) CreateItem("slng01",0,0,0) // Sling CreateItem("bull01",40,0,0) // Bullet FillSlot(SLOT_WEAPON0) FillSlot(SLOT_AMMO0) EquipRanged END