Skyrim – Creating a Banking System

Bank

A Player Guide (Skyrim) to creating a Banking System in a Mod:

  1. 1. Look up a Static Item like a Centurion Sphere.
    2. Copy the folder directory by right-clicking on it, drag the mouse to highlight it, and select Copy.
    3. Paste this on a blank Activator (Twice, because once causes a graphics error). Save it.
    4. Place the Activator in your Mod, preferably in a Bank (Interior Cell).
    5. Add an empty Chest to cell and rename it. Save it. Add an Object Reference to the Chest on top.
    6. Make 3 Message Boxes. One is the Master with 2 Sub Menus.
    7. The Master Message Box: Write: “Would you like to Deposit or Withdraw Gold, M’lord?”
    8. Below this line, add: “Deposit”, then “Withdraw”, “Open an Account?” & “Exit.”
    9. Create a Key (Rename an existing Key) and Save it.
    10. Lock the Chest (“Needs a Key”) with the Key as the opener on the Chest.
    11. On the First Sub Message Box, write: “Deposit?” followed by: “10,” “100,” “1000,” “10,000.” & “Exit.”
    12. On the Second Sub Message Box, write: “Withdraw?” followed by: “10,”, “100,” “1000,” “10,000.” & “Exit.”
    13. Under each option in the Master Message Box, use: “Getitemcount” + “Key” >= 1 for “Deposit” & “Withdraw.”
    14. For under the “Open an Account?” use “< 1” for getitemcount. This allows access if the Player has a key.
    15. Don’t add anything under “Exit.” This exits the Menu.
    16. Look up the Sub Menu #1 (Deposit). Under each numbered amount (10, 100, 1000, 10000) added “GetGold” + target: Runs On: Player.
    17. On Sub Menu #2 (Withdraw): (GetGold or Getitemcount) each amount target: “Runs on Reference” + Chest Reference ID under “Select” + “>=” + the amount (10, 100, 1000, 10000).
    18. Add Script to Activator:

ObjectReference Property Bank Auto
MiscObject Property G1 Auto ; gold coins
Message Property Welfare Auto
Message Property Sub1 Auto
Message Property Sub2 Auto
Actor Property PC Auto
Key Property CD Auto

Event OnActivate(ObjectReference akActionRef)

PC=(Game.GetPlayer())

Int Msg = Welfare.Show()
if Msg == 0 ; add or Deposit gold
; if PC getitemcount (CD) >= 1

Int Deposit = Sub1.Show()
if Deposit == 0 ; +10
; if Player has 10 gold
Bank.AddItem(G1, 10)
PC.RemoveItem(G1, 10)

elseif Deposit == 1 ; +100
; if Player has 100 gold
Bank.AddItem(G1, 100)
PC.RemoveItem(G1, 100)

elseif Deposit == 2 ; +1000
; if Player has 1000 gold
Bank.AddItem(G1, 1000)
PC.RemoveItem(G1, 1000)

elseif Deposit == 3 ; +10k
; if Player has 10k gold
Bank.AddItem(G1, 10000)
PC.RemoveItem(G1, 10000)

elseif Deposit == 4 ; exit
endif
;
elseif Msg == 1 ; withdraw or remove gold

; if PC getitemcount (CD) >= 1
Int Withdraw = Sub2.Show()
if Withdraw == 0 ; take out -10 gold
; bank has 10 gold

Bank.RemoveItem(G1, 10)
PC.AddItem(G1, 10)

elseif Withdraw == 1 ; -100g
; bank has 100 gold
Bank.RemoveItem(G1, 100)
PC.AddItem(G1, 100)

elseif Withdraw == 2 ; -1000g
; bank has 1000 gold
Bank.RemoveItem(G1, 1000)
PC.AddItem(G1, 1000)

elseif Withdraw == 3 ; -10000g
; bank has 10k gold
Bank.RemoveItem(G1, 10000)
PC.AddItem(G1, 10000)

elseif Withdraw == 4 ; exit
endif
;
elseif Msg == 2 ; open account with Bank? it costs 100g
; if PC getitemcount (CD) < 1
; PC has 100 gold
PC.AddItem(CD, 1)
PC.RemoveItem(G1, 100)
;
elseif Msg == 3 ; exit
endif
endEvent

  1. Save it. Fill in Properties: ObjectReference (Chest), G1 (Gold coins), CD (Key), Messages (Main, + 2 Sub Menus). Leave Actor empty.
    20. Save and Test in-game. The Banker will accept gold only if the Player has the amount, and will withdraw funds if they exist in the container. The key unlocks the Chest near the Activator if Player wants to access his account; it also prevents access without purchasing an account (unless key is missing from Player).

M7 2019.

Similar Posts:


Leave a Reply

Your email address will not be published.