Banker

The banker is another storage option for the player but unlike the storage container the banker is exclusive to the player. No other player can access another player’s bank. The banker is actually just another AC_Inventory_Storage component on our player controller. Being accessed through a UI that is opened when interacting with a BP_Interactable_Bank blueprint in our world.

Being that the banker is actually attached to the player this means that the bank is accessible across maps, like most games like to do.

Adding Bankers to the World

To add a banker to your world, navigate to the Blueprints/Interactables/ folder and drop a copy of BP_Interactable_Bank into the world. That is it, the player will be able to interact and use the bank through this actor in your world now.

By default you should see a gray cube when placing it. You can replace this mesh with your own static mesh, or if you would like to show a humanoid hide the cube and add a skeletal mesh instead.

The demo content includes an example of a humanoid banker for you, the BP_Interactable_BankerNPC located in the Demo/Interactables/Banker/ folder.This uses the manny character as an example.

Changing Slot Counts

Changing the slot counts for the bank is handled in the Bank Configuration on the details tab of the AC_InventorySystem component you attached to your player controller. The bankSlots is the variable. Set the value of this variable to the number of slots you wish to appear in the bank.

You can also set up specialty slots, and buyable slots and even starter gear that appears in the bank in this same location.

Customizing the Player Bank Window

The UI_TargetStorage in the UIs/Storage/ folder is used when showing the contents of the player bank. This widget is also used for storage, loot and treasure containers so take precaution when making changes to it.

You can see how it uses this target storage window by viewing the BP_Interactable_Bank blueprint.

For the player bank you can customize the default Window Title Text, Icon, Open and Close Sounds using the variables on the Configure / Bank / Bank Window section of the AC_InventorySystem component you added to your player controller.

To customize these values for each banker you can use the BankerWindowTitle, BankerWindowIcon, BankerWindowOpenSound, and BankerWindowCloseSound variables found inside the UIs category of each BP_Interactable_Bank instance you place in your world.

View the Sounds chapter to learn how to customize the other sounds.