SCTX |
scn SE06DarkSeducerSCRIPT
short hatePlayer ; set to 1 after player hits them during battle (when allied with other side)
ref combatRef
begin OnHit player
; when the player hits me, all dark seducers hate the player (if allied to other side)
if getstage SE06 >= 100 && getstagedone SE06 80 == 1
player.setfactionrank SE06GoldenSaintFaction 0
set hatePlayer to 1
endif
end
begin OnDeath
; count seducers killed
set SE06.DeadSeducers to SE06.DeadSeducers + 1
; all dead?
if SE06.DeadSeducers >= SE06.TotalSeducers && getstage SE06 < 150
setstage SE06 140
endif
end
begin OnStartCombat
; scripted "start combat" voice if fighting golden saints
set combatRef to GetCombatTarget
if combatRef.getInFaction SE06GoldenSaintFaction == 1
if getRandomPercent <= 20
sayTo combatRef SE06ShoutStartCombat
endif
endif
end |