I need some help with a script. I want a quest stage to update once 3 NCPS have been killed. To do this I thought I could use a script that counts the NCPS as they die.
As per normal my scripts are recycled from other quests in Oblivion…so I took the following script from the Battlehorn plugin that monitors when you have killed the 4 attackers.
scn DLCBattlehornMarauderSCRIPT
begin OnHit player
; trigger next phase of battle if player attacks
setstage DLCBattlehornCastle 20
end
begin OnDeath
set DLCBattlehornCastle.AttackersDead to DLCBattlehornCastle.AttackersDead + 1
if DLCBattlehornCastle.AttackersDead >= 4
setstage DLCBattlehornCastle 28
endif
end
begin OnHit player
; trigger next phase of battle if player attacks
setstage DLCBattlehornCastle 20
end
begin OnDeath
set DLCBattlehornCastle.AttackersDead to DLCBattlehornCastle.AttackersDead + 1
if DLCBattlehornCastle.AttackersDead >= 4
setstage DLCBattlehornCastle 28
endif
end
I tried to amend it to this:
scn MiscPONassassinSCRIPT
begin OnDeath
set FH.AttackersDead to FH.AttackersDead + 1
if FH.AttackersDead >= 3
setstage 1MiscPON 30
endif
end
begin OnDeath
set FH.AttackersDead to FH.AttackersDead + 1
if FH.AttackersDead >= 3
setstage 1MiscPON 30
endif
end
I know I’m missing something ..and I believe it’s the line: set FH.AttackersDead to FH.AttackersDead + 1
The CS isn’t recognising the bit that says AttackersDead…do I have to define this elsewhere? Or is there a better script I can use?