Originally posted by tonymorgan92
View Post
Announcement
Collapse
No announcement yet.
Action RPG Inventory System
Collapse
X
-
Originally posted by OverRated_AU View PostSo you want a stash that isn't shared? I would create another inventory array in the player inventory component and just have the actor load off that array rather than it's self.
What I did was copy the PlayerInventory inside InventoryManagerComponent, renamed to WarehousePlayerInventory (which inside this has its inventory array to store the items), then just copy-paste-rename-modify some functions like AddItem to control the items in the new WarehousePlayerInventory. Also copying the Container and ContainerSlot, and renaming it to WarehouseContainer. Here, in the OnDrop functions, also modify it slightly and the functions to take the dropped item properly in the WarehousePlayerInventory and its Inventory array.
pretty much just a copy-paste and some modifications to adjust it.
Loading the items from the player (in my case mysql) was just when loading the player, copying the inventory part I had and adjusting it to warehouse, then filling the warehouse inventory array.
In my case I made it player shared (all players in same account can access this storage), so it was adding a new mysql table with a "account id" which is taken when loading the player information, hence pulling the warehouse inventory.
Comment
-
Originally posted by Namesis View Post
Just to follow this up, in case anyone needs it, being called "Player Warehouse, Player Stash, Player Bank, etc"
What I did was copy the PlayerInventory inside InventoryManagerComponent, renamed to WarehousePlayerInventory (which inside this has its inventory array to store the items), then just copy-paste-rename-modify some functions like AddItem to control the items in the new WarehousePlayerInventory. Also copying the Container and ContainerSlot, and renaming it to WarehouseContainer. Here, in the OnDrop functions, also modify it slightly and the functions to take the dropped item properly in the WarehousePlayerInventory and its Inventory array.
pretty much just a copy-paste and some modifications to adjust it.
Loading the items from the player (in my case mysql) was just when loading the player, copying the inventory part I had and adjusting it to warehouse, then filling the warehouse inventory array.
In my case I made it player shared (all players in same account can access this storage), so it was adding a new mysql table with a "account id" which is taken when loading the player information, hence pulling the warehouse inventory.
Comment
-
Originally posted by Imaginalex View PostHello, When has this system last been updated ?Last edited by OverRated_AU; 02-11-2019, 06:53 PM.
Comment
-
Originally posted by Namesis View Post
What's character interaction?
Comment
-
Originally posted by Pirate View PostTemp Fix for the 4.20 White icons in inventory.
Comment
-
Hello, I am trying to combine this package with their Multiplayer TopDown Kit. I have closely followed the specific video and the generic integration video, but both videos show a SET box immediately connected to the "Inventory Manager Component". Yet the current version does not contain this SET box and every "set" option that I have tried off of the "Inventory Manager Component" pin does not produce a working combination. There has been no response from the creator, so I need to reach out to those who have already integrated it to know what must I connect after the "Inventory Manager Component" in the BPs like Inventory Layout and Container_Slot? Thanks in advance for any information.
Comment
-
Originally posted by UUCyberSteve View PostHello, I am trying to combine this package with their Multiplayer TopDown Kit. I have closely followed the specific video and the generic integration video, but both videos show a SET box immediately connected to the "Inventory Manager Component". Yet the current version does not contain this SET box and every "set" option that I have tried off of the "Inventory Manager Component" pin does not produce a working combination. There has been no response from the creator, so I need to reach out to those who have already integrated it to know what must I connect after the "Inventory Manager Component" in the BPs like Inventory Layout and Container_Slot? Thanks in advance for any information.
Comment
Comment