Advertisement
ThoraldGM

Fallout 4: Scavver mod menu

Nov 3rd, 2017
562
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.18 KB | None | 0 0
  1. Scriptname ScavverMessageScript extends ObjectReference
  2. { It just works. }
  3.  
  4. ; SCAVVER MOD BY @THORALDGM | [email protected] | SCRIPT UPDATED 20160711
  5.  
  6. ; -----------------------------------------------------------------------------
  7. ; PROPERTIES
  8. ; -----------------------------------------------------------------------------
  9.  
  10. ObjectReference Property pScavver Auto Const Mandatory
  11.  
  12. GlobalVariable Property pgvScavverAddsPerks Auto Mandatory
  13. GlobalVariable Property pgvScavverBeardTime Auto Mandatory
  14. GlobalVariable Property pgvScavverHasMapMarker Auto Mandatory
  15. GlobalVariable Property pgvScavverNoteRead Auto Mandatory
  16. GlobalVariable Property pgvScavverStatusSniffer Auto Mandatory
  17.  
  18. Message Property pScavverBeardMessage Auto Const Mandatory
  19. Message Property pScavverBookMessage Auto Const Mandatory
  20. Message Property pScavverDevMessage Auto Const Mandatory
  21. Message Property pScavverStatMessage Auto Const Mandatory
  22. Message Property pScavverTheftMessage Auto Const Mandatory
  23.  
  24. Quest Property pScavverQuest Auto Const Mandatory
  25.  
  26. ; -----------------------------------------------------------------------------
  27. ; EVENT: ON ACTIVATE
  28. ; -----------------------------------------------------------------------------
  29.  
  30. Event OnActivate(ObjectReference akActionRef)
  31. int ButtonPressed ; Do not show menu until quest has been started
  32.  
  33. If pgvScavverNoteRead.GetValue() == 0 ; If note has never been read
  34. pgvScavverNoteRead.SetValue(1) ; Mark note as read
  35. pScavverQuest.Start() ; Start quest (default is stage 10, NO marker)
  36. EndIf
  37.  
  38. ButtonPressed = pScavverBookMessage.Show() ; Now show the menu
  39.  
  40. If ButtonPressed == 0
  41. If pgvScavverHasMapMarker.GetValue() == 0
  42. Debug.Notification("SCAVVER: MAP MARKER ON")
  43. pgvScavverHasMapMarker.SetValue(1)
  44. pScavverQuest.SetStage(11) ; Stage 11 is Find the Scavver WITH marker
  45. pScavverQuest.SetActive() ; Make the quest marker active
  46. Else
  47. Debug.Notification("Scavver marker is already shown.")
  48. EndIf
  49. ElseIf ButtonPressed == 1
  50. If pgvScavverHasMapMarker.GetValue() == 1
  51. pScavverQuest.SetStage(10) ; Stage 10 is Find the Scavver WITHOUT marker
  52. pScavverQuest.SetActive(false) ; Make the quest marker inactive
  53. pgvScavverHasMapMarker.SetValue(0)
  54. Debug.Notification("SCAVVER: MAP MARKER OFF")
  55. Else
  56. Debug.Notification("Scavver marker is already hidden.")
  57. EndIf
  58. ElseIf ButtonPressed == 2
  59. If pgvScavverStatusSniffer.GetValue() == 0
  60. ButtonPressed = pScavverDevMessage.Show()
  61.  
  62. If ButtonPressed == 0
  63. Debug.Notification("SCAVVER: DEV NOTIFICATIONS ON")
  64. pgvScavverStatusSniffer.SetValue(1)
  65. EndIf
  66. Else
  67. Debug.Notification("Scavver dev mode is already on.")
  68. EndIf
  69. ElseIf ButtonPressed == 3
  70. If pgvScavverStatusSniffer.GetValue() == 1
  71. pgvScavverStatusSniffer.SetValue(0)
  72. Debug.Notification("SCAVVER: DEV NOTIFICATIONS OFF")
  73. Else
  74. Debug.Notification("Scavver dev mode is already off.")
  75. EndIf
  76. ElseIf ButtonPressed == 4
  77. ButtonPressed = pScavverStatMessage.Show()
  78. ElseIf ButtonPressed == 5
  79. If pgvScavverAddsPerks.GetValue() == 1
  80. Debug.Notification("SCAVVER: REWARD PERKS OFF")
  81. pgvScavverAddsPerks.SetValue(0)
  82. Else
  83. Debug.Notification("Scavver reward perks are already off.")
  84. EndIf
  85. ElseIf ButtonPressed == 6
  86. If pgvScavverAddsPerks.GetValue() == 0
  87. pgvScavverAddsPerks.SetValue(1)
  88. Debug.Notification("SCAVVER: REWARD PERKS ON")
  89. Else
  90. Debug.Notification("Scavver reward perks are already on.")
  91. EndIf
  92. ElseIf ButtonPressed == 7
  93. ButtonPressed = pScavverTheftMessage.Show()
  94.  
  95. If ButtonPressed == 0
  96. pScavver.RemoveAllItems(Game.GetPlayer())
  97. EndIf
  98. ElseIf ButtonPressed == 8
  99. String BeardMsg = "Scavver beard rate: updated."
  100. ButtonPressed = pScavverBeardMessage.Show()
  101.  
  102. If ButtonPressed == 0
  103. pgvScavverBeardTime.SetValue(30240)
  104. BeardMsg = "Scavver beard rate: Game Week." ; 8.4 hours
  105. ElseIf ButtonPressed == 1
  106. pgvScavverBeardTime.SetValue(4320)
  107. BeardMsg = "Scavver beard rate: Game Day." ; 1.2 hours
  108. Else
  109. ; Not a button, do nothing
  110. EndIf
  111.  
  112. Debug.Notification(BeardMsg)
  113. ElseIf ButtonPressed == 9
  114. ; Exit menu
  115. EndIf
  116. EndEvent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement