Storing RPG data (inventory, spells, etc.)
by John Knerr 5th · in Torque Game Builder · 12/23/2008 (7:40 am) · 0 replies
I am working on a dungeon crawler RPG (a la Etrian Odessey) and I will need to create a lot of data for the items, spells, etc. Each weapon, for instance, would have a number of different attributes:
Weapon Name
Menu Icon
Battle Graphic
Damage
Accuracy
Type
Element
Cost
etc.
etc.
In the game these attributes will need to be referenced during battles (when factoring total attack damage, for instance), in shop menus, inventory menus, etc. What would be the best way of storing/retrieving all this information? Should I just use arrays or would it be better to go with scriptObjects/datablocks/etc.?
Also, there will be a large number of graphics needed for this game, for example each weapon has a menu icon and an in-battle graphic. The menu icons only really need to be loaded up when they are to be displayed in the inventory menu and the battle graphics will only need to be loaded up (on per character) at the start of a battle. They could be unloaded thereafter. What would be the best way to handle the loading/unloading of those graphics?
I am still fairly new to TGB and learning, so forgive me if these questions are overly simple. Anyways, thanks in advance.
Weapon Name
Menu Icon
Battle Graphic
Damage
Accuracy
Type
Element
Cost
etc.
etc.
In the game these attributes will need to be referenced during battles (when factoring total attack damage, for instance), in shop menus, inventory menus, etc. What would be the best way of storing/retrieving all this information? Should I just use arrays or would it be better to go with scriptObjects/datablocks/etc.?
Also, there will be a large number of graphics needed for this game, for example each weapon has a menu icon and an in-battle graphic. The menu icons only really need to be loaded up when they are to be displayed in the inventory menu and the battle graphics will only need to be loaded up (on per character) at the start of a battle. They could be unloaded thereafter. What would be the best way to handle the loading/unloading of those graphics?
I am still fairly new to TGB and learning, so forgive me if these questions are overly simple. Anyways, thanks in advance.
About the author