12 lines
459 B
Plaintext
12 lines
459 B
Plaintext
|
Scriptname _00E_JailEntrigger extends ObjectReference
|
||
|
; ensures that this bug does not occur http://sureai.net:9898/browse/ERB-2339
|
||
|
Event OnTriggerEnter (ObjectReference akActionRef)
|
||
|
if akActionRef == PlayerREF && _00E_IsInJail.GetValueInt() == 1
|
||
|
_00E_IsInJail.SetValue(0)
|
||
|
(CrimeQuest as _00E_CrimeQuest_Functions).ReduceMainSkills()
|
||
|
endif
|
||
|
EndEvent
|
||
|
|
||
|
Quest Property CrimeQuest Auto
|
||
|
Actor Property PlayerREF Auto
|
||
|
GlobalVariable Property _00E_IsInJail Auto
|