Advertisement
GrandBulwark

Untitled

Feb 20th, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.51 KB | None | 0 0
  1. Scriptname Bulwark_ThaneChest_Solitude extends ObjectReference
  2. ;Script Authors: GrandBulwark
  3.  
  4. ;V1
  5.  
  6. ;Properties
  7. GlobalVariable Property BulwarkOptOut Auto
  8.  
  9. MiscObject Property Gold001 Auto ;-Just some gold here
  10.  
  11. ObjectReference Property BulwarkStashSolitude Auto ;-Watcher Objects
  12. ObjectReference Property BulwarkStashQasmoke Auto ;-Player Stash
  13.  
  14. Quest Property Favor252 Auto ;-The Quests
  15.  
  16.  
  17. ;Quest Key-------------------------------------------------
  18. ;-Favor252 = Master Property; assigned in instances to one of the below listed quests in the Creation Kit on the references themselves. Not the parent.
  19. ;-Also itself if the case of Solitude X
  20.  
  21. ;-Favor254 = Windhelm X
  22. ;-Favor258 = Falkreath X
  23. ;-Favor255 = Morthal X
  24. ;-Favor256 = Dawnstar X
  25. ;-Favor250 = Markarth X
  26. ;-FreeformRiftenThane = Riften
  27. ;-Favor253 = Whiterun X
  28. ;-Favor257 = Winterhold X
  29.  
  30. ;Container/Watcher Key-------------------------------------
  31. ;-BulwarkStashQasmoke = Stash Chest Chest, set to itself always
  32.  
  33. ;-BulwarkStashSolitude = Master Watcher. Set to to one of the below in the Creation kit again, on the reference not the parent.
  34. ;-Also itself if the case of Solitude X
  35.  
  36. ;BulwarkStashWindhelm X
  37. ;BulwarkStashFalkreath X
  38. ;BulwarkStashMortal X
  39. ;BulwarkStashDawnstar X
  40. ;BulwarkStashMarkarth X
  41. ;BulwarkStashRiften X Handled in Seperate Script, but left for reference
  42. ;BulwarkStashWhiterun X
  43. ;BulwarkStashWinterhold X
  44.  
  45. ;Functions-------------------------------------------------
  46. Function OnCellAttach() ; As soon as this object is in view
  47. If (BulwarkStashQasmoke.GetParentCell().IsAttached() == Game.GetPlayer().GetParentCell().IsAttached())
  48. Debug.Trace("Chest is in same parent cell as player. No Charge, No Movement.")
  49. Elseif (Favor252.IsObjectiveCompleted(15) == True) && (BulwarkStashQasmoke.GetParentCell().IsAttached() != Game.GetPlayer().GetParentCell().IsAttached()) ;Working Set, general Release.
  50. BulwarkStashQasmoke.Moveto(BulwarkStashSolitude)
  51. BulwarkStashQasmoke.Enable()
  52. Debug.Notification("Your stash has been transported")
  53. Utility.Wait(0.1)
  54. Debug.Notification("coutesy of the Jarl, Thane.")
  55.  
  56. Elseif (Favor252.IsObjectiveCompleted(15) == False) && (Game.GetPlayer().GetItemCount(Gold001) >= 50) && BulwarkOptOut.GetValueInt() != 1 && (BulwarkStashQasmoke.GetParentCell().IsAttached() != Game.GetPlayer().GetParentCell().IsAttached())
  57. Game.GetPlayer().RemoveItem(Gold001, 50)
  58. BulwarkStashQasmoke.Moveto(BulwarkStashSolitude)
  59. BulwarkStashQasmoke.Enable()
  60. Debug.Notification("You pay the local carriages 50")
  61. Utility.Wait(0.1)
  62. Debug.Notification("gold to trasport your stash for you")
  63.  
  64. Elseif (Favor252.IsObjectiveCompleted(15) == False) && (Game.GetPlayer().GetItemCount(Gold001) <= 49) && BulwarkOptOut.GetValueInt() != 1 && (BulwarkStashQasmoke.GetParentCell().IsAttached() != Game.GetPlayer().GetParentCell().IsAttached())
  65. Debug.Notification("You couldn't afford to trasfer your stash,")
  66. Utility.Wait(0.1)
  67. Debug.Notification("travel again with 50 Gold to have your Stash shipped.")
  68.  
  69. Elseif (Favor252.IsObjectiveCompleted(15) == False) && (Game.GetPlayer().GetItemCount(Gold001) <= 49) && BulwarkOptOut.GetValueInt() == 1 && (BulwarkStashQasmoke.GetParentCell() != Game.GetPlayer().GetParentCell()) ;Debug Set, Optional file?
  70. BulwarkStashQasmoke.Moveto(BulwarkStashSolitude)
  71. BulwarkStashQasmoke.Enable()
  72. Debug.Notification("Your stash has been trasported by the public carriage system")
  73. Utility.Wait(0.1)
  74. Debug.Notification("coutesy of Temple of the Divines.")
  75.  
  76. Endif
  77. EndFunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement