17 lines
572 B
Plaintext
17 lines
572 B
Plaintext
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
|