| This is the transcript of a script file, which runs certain tasks in the game upon execution. |
| Details | |
|---|---|
| Type | Decompiled script |
| Editor ID | BennySCRIPT
|
| Form ID | 0011A0C0 |
This is Benny's script during the quest Ring-a-Ding-Ding! after he has spoken to the Courier.
scn BennySCRIPT
Begin OnDeath
BennyREF.AddItem VPlatinumChip 1
VTopsAmbushTriggerREF.disable
if GetObjectiveDisplayed VMQTops 10
SetObjectiveCompleted VMQTops 10 1
endif
if getobjectivedisplayed vmqtops 5
setobjectivecompleted vmqtops 5 1
endif
if GetObjectiveDisplayed VMQTops 18
setObjectiveCompleted VMQTops 18 1
endif
SetObjectiveCompleted VMQTops 42 1
SetStage VMQTops 43
if VStoryState < 20
set VStoryState to 20
endif
set VStoryEventBennyKilledCasino TO 1
set VStoryEventBennyFled to 0
set VMQTops.BennyFleeing to 0
if Player.GetItemCount VPlatinumChip == 0
SetObjectiveDisplayed VMQTops 43 1
endif
if Player.GetInCell 2ETopsPresidentialSuite == 1
set VMQTops.bElevatorDisabled to 0
endif
VTopsAmbushTriggerREF.Disable
VTopsAmbushTriggerREF.MarkforDelete
if GetObjectiveDisplayed VMQTops 65
SetObjectiveCompleted VMQTops 65 1
endif
if GetObjectiveDisplayed VMQTops 20 && GetObjectiveCompleted VMQTops 20 == 0
SetObjectiveDisplayed VMQTops 20 0
endif
; Spawn Vulpes on Strip outside if he wasn't killed in Nipton
end
BEGIN OnActivate
; Don't let the player talk to Benny on his way to the suite for the seduction scene.
if VMQTops.BennySeduce == 1&& GetDeadCount Benny == 0 ;&& VMQTops.BennyIsInSuite == 0 ; commented out for testing bugfix
Return
else
Activate
endif
END
BEGIN OnStartCombat Player
SetObjectiveCompleted VMQTops 10 1
if GetObjectiveDisplayed VMQTops 18 == 0
SetObjectiveDisplayed VMQTops 42 1
endif
if getobjectivedisplayed vmqtops 5
setobjectivecompleted vmqtops 5 1
endif
END