SCTX |
scn SE46Script
;SEAtrabhiMania, SEAtrabhiDementia, SEHorkvirBearArmMania, SEHorkvirBearArmDementia, SEJzidzoMania, SEJzidzoDementia
;SEJastiraNanusMania, SEJastiraNanusDementia, SEUrulGroAgamphMania, SEUrulGroAgamphDementia all have
;scripts on them to track when they die for this quest
;used to track which double is dead 0-Neither dead, 1-Mania dead, 2-Dementia dead
short HorkvirVAR
short JastiraVAR
short JzidzoVAR
short AtrabhiVAR
short UrulVAR
short alldead
short rewardVAR
;used to track which side the player has chosen
short sidechosen ;1 is Dementia, 2 is Mania
Begin GameMode
;creates a leveled amount of gold for the player as reward for killing mania/dementia npc in split
if ( player.GetLevel >=26 ) && ( rewardVAR < 600 )
set rewardVAR to 1200
elseif ( player.GetLevel >= 20 ) && ( player.GetLevel <= 25 ) && ( rewardVAR < 500 )
set rewardVAR to 1000
elseif ( player.GetLevel >= 15 ) && ( player.GetLevel <= 19 ) && ( rewardVAR < 400 )
set rewardVAR to 800
elseif ( player.GetLevel >= 10 ) && ( player.GetLevel <= 14 ) && ( rewardVAR < 300 )
set rewardVAR to 600
elseif ( player.GetLevel >= 5 ) && ( player.GetLevel <= 9 ) && ( rewardVAR < 200 )
set rewardVAR to 400
elseif ( player.GetLevel >= 1 ) && ( player.GetLevel <= 4 ) && ( rewardVAR < 100 )
set rewardVAR to 200
endif
;following blocks set a stage when either mania/dementia version of npc is killed, increments a variable to track when all of them are killed
if ( GetStage SE46 < 70 )
if ( GetStageDone SE46 20 == 0 ) && ( sidechosen > 0 )
if ( HorkvirVar > 0 )
SetStage SE46 20
set alldead to ( alldead + 1 )
endif
endif
if ( GetStageDone SE46 30 == 0 ) && ( sidechosen > 0 )
if ( JastiraVAR > 0 )
SetStage SE46 30
set alldead to ( alldead + 1 )
endif
endif
if ( GetStageDone SE46 40 == 0 ) && ( sidechosen > 0 )
if ( JzidzoVAR > 0 )
SetStage SE46 40
set alldead to ( alldead + 1 )
endif
endif
if ( GetStageDone SE46 50 == 0 ) && ( sidechosen > 0 )
if ( AtrabhiVAR > 0 )
SetStage SE46 50
set alldead to ( alldead + 1 )
endif
endif
if ( GetStageDone SE46 60 == 0 ) && ( sidechosen > 0 )
if ( UrulVAR > 0 )
SetStage SE46 60
set alldead to ( alldead + 1 )
endif
endif
endif
;these cover if the player kills one of the NPCs after stage 10 but before stage 15
if ( sidechosen == 0 ) && ( GetStage SE46 > 0 ) && ( GetStage SE46 < 15 )
if ( GetDeadCount SEHorkvirBearArmDementia == 1 ) || ( GetDeadCount SEJastiraNanusDementia == 1 ) || ( GetDeadCount SEJzidzoDementia == 1 ) || ( GetDeadCount SEAtrabhiDementia == 1 ) || ( GetDeadCount SEUrulgoAgamphDementia == 1 )
SetStage SE46 210
endif
endif
if ( sidechosen == 0 ) && ( GetStage SE46 > 0 ) && ( GetStage SE46 < 15 )
if ( GetDeadCount SEHorkvirBearArmMania == 1 ) || ( GetDeadCount SEJastiraNanusMania == 1 ) || ( GetDeadCount SEJzidzoMania == 1 ) || ( GetDeadCount SEAtrabhiMania == 1 ) || ( GetDeadCount SEUrulgoAgamphMania == 1 )
SetStage SE46 210
endif
endif
;sets stage when all are killed
if ( GetStageDone SE46 70 == 0 )
if ( alldead == 5 )
SetStage SE46 70
endif
endif
End |