GraceCB

Untitled

Oct 26th, 2021 (edited)
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. scn MyScriptName
  2.  
  3. Int Phase1
  4. Int Phase2
  5.  
  6. begin GameMode
  7. printc "script has been checked again"
  8. if Phase1 == 0
  9. printc "Phase is 0"
  10. player.additem Caps001 1
  11. set Phase1 to 1
  12. printc "cap added, phase set to 1"
  13. elseif Phase1 == 1
  14. printc "phase is 1"
  15. player.restoreav health 25
  16. set Phase1 to 2
  17. ;set this phase beyond a valid value so that the next elseif block catches phase2 being 1
  18. set Phase2 to 1
  19. printc "phase 1 complete health restored, phase 2 set"
  20. elseif Phase2 == 1
  21. printc "phase is 2"
  22. DogmeatREF.restoreav health 30
  23. set Phase2 to 0
  24. set Phase1 to 0
  25. printc "phase 2 complete, dogmeat health restored, phase 1 and 2 set to 0, script will loop
  26. endif
  27. end
  28.  
Add Comment
Please, Sign In to add comment