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.
 
 
 

12 lines
459 B

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