Short DeathDoneRef TargetShort ResurrectTimerBegin GameMode Set Target to GetContainer If ( Target.GetDead == 1 ) If ( DeathDone == 0 ) Set ResurrectTimer to ( GetRandomPercent ) ; Makes it between 1-99 Set ResurrectTimer to ( ResurrectTimer * 100 ) ; Makes it between 100 and 9,900 EndIf EndIf If ( Target.GetItemCount [SpecialItem] >= 1 ) Return ; Stops the Rest of the Script from running EndIf If ( ResurrectTimer > 0 ) Set ResurrectTimer to ( ResurrectTimer - 1 ) EndIf If ( ResurrectTimer == 1 ) Target.Resurrect 1 EndIfEnd