| This is the transcript of a script file, which runs certain tasks in the game upon execution. |
| Details | |
|---|---|
| Type | Decompiled script |
| Editor ID | BCTrooperScript
|
| Form ID | 00115CB8 |
This script is related to the NCR troopers inside Boulder City.
scn BCTrooperScript
short bDoOnce
begin OnReset
if GetQuestCompleted VMS20
Disable
MarkForDelete
endif
end
begin OnStartCombat player
if (LieutenantMonroeRef.GetDead == 0) && (bDoOnce == 0)
LieutenantMonroeRef.AddScriptPackage BCLieutenantMonroeAlerted
set bDoOnce to 1
endif
if (VMS20.bEnemyNCR == 0)
set VMS20.bEnemyNCR to 1
SetEnemy BoulderCityNCRFaction PlayerFaction
SetEnemy BoulderCityNCRFaction BoulderCityGreatKhanFaction
;SetEnemy BoulderCityGreatKhanFaction PlayerFaction 1 1
SetAlly BoulderCityGreatKhanFaction PlayerFaction
endif
if GetQuestRunning VMS20
if (VMS20.bEnemyGK == 2)
SetStage VMS20 110
else
SetObjectiveDisplayed VMS20 10 0
SetObjectiveDisplayed VMS20 15 0
SetObjectiveDisplayed VMS20 20 0
SetObjectiveDisplayed VMS20 60 0
SetObjectiveDisplayed VMS20 70 0
SetObjectiveDisplayed VMS20 40 1
endif
endif
end
begin OnDeath
if GetQuestRunning VMS20
SetObjectiveDisplayed VMS20 10 0
SetObjectiveDisplayed VMS20 15 0
SetObjectiveDisplayed VMS20 20 0
SetObjectiveDisplayed VMS20 60 0
SetObjectiveDisplayed VMS20 70 0
SetObjectiveDisplayed VMS20 40 1
endif
set VMS20.nDeathsNCR to VMS20.nDeathsNCR + 1
if VMS20.nDeathsNCR == 6
set VMS20.bTroopersDead to 1
if (BCJessupRef.GetDead == 0)
SetObjectiveCompleted VMS20 40 1
SetObjectiveDisplayed VMS20 80 1
else
set VMS20.bBoulderCityOutcome to 5
SetStage VMS20 100
endif
endif
end