scn FGD07AjumScript
;this will need to get his health and track it as the player beats on him
short gothealth
float ajumhealth
float currenthealth
float talkhealth1
float talkhealth2
float willtalk
short doOnce
Begin OnDeath Player
if ( GetStage FGD07Kidnap != 60 )
SetStage FGD07Kidnap 105
endif
End
Begin OnDeath
if ( GetStage FGD07Kidnap == 60 )
SetStage FGD07Kidnap 80
;elseif ( GetStage FGD07Kidnap < 60 )
;SetStage FGD07Kidnap 105
endif
End
Begin GameMode
if ( FGD07Kidnap.AjumFollow == 1 )
if ( Player.GetDistance ModrynOreynREF <= 512 )
if ( Player.GetDistance AjumKajinREF <= 512 )
set FGD07Kidnap.AjumFollow to 2
endif
endif
endif
if ( GetStage FGD07Kidnap == 60 ) && ( doOnce == 1 )
SetRestrained 0
AjumKajinREF.EquipItem FGD07FireRing
;AjumKajinREF.ModAV Health -10000
;Kill Player
set doOnce to 2
endif
if ( GetSitting == 3 ) && ( GetRestrained == 0 ) && ( doOnce == 0 )
SetRestrained 1
set doOnce to 1
endif
if ( gothealth == 0 ) && ( GetStage FGD07Kidnap == 40 )
set ajumhealth to ajumkajinref.getav health
set gothealth to 1
set talkhealth1 to ( ajumhealth * .6 )
set talkhealth2 to ( ajumhealth * .2 )
endif
if ( GetStage FGD07Kidnap == 40 ) && ( willtalk == 0 ) && ( GetRestrained == 1 )
set currenthealth to ajumkajinref.getav health
if ( currenthealth <= talkhealth1 ) && ( GetStage FGD07Kidnap == 40 )
SetStage FGD07Kidnap 45
endif
if ( GetDisposition Player >= 70 ) && ( GetStage FGD07Kidnap == 40 )
SetStage FGD07Kidnap 45
endif
endif
if ( GetStage FGD07Kidnap == 50 ) && ( willtalk == 1 ) && ( GetRestrained == 1 )
set currenthealth to ajumkajinref.getav health
if ( currenthealth <= talkhealth2 ) && ( GetStage FGD07Kidnap == 50 )
SetStage FGD07Kidnap 55
endif
if ( GetDisposition Player >= 90 ) && ( GetStage FGD07Kidnap == 50 )
SetStage FGD07Kidnap 55
endif
endif
End |