4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

16 lines
572 B

Scriptname _00E_ActorBeDrunkScript extends actor
Package Property BeDrunkPackage1 Auto
{ The package must have <subject> HasLoaded3D == 1 condition }
Package Property BeDrunkPackage2 Auto
{ The package must have <subject> HasLoaded3D == 1 condition }
Spell Property AbBeDrunk Auto
Event OnPackageStart(Package akNewPackage)
; Debug.Trace(self + ", OnPackageStart: akNewPackage = " + akNewPackage)
If (akNewPackage == BeDrunkPackage1) || (BeDrunkPackage2 && akNewPackage == BeDrunkPackage2)
AddSpell(AbBeDrunk, False)
Else
RemoveSpell(AbBeDrunk)
EndIf
EndEvent