It's been a while since i diddled in dark basic pro, but i'm making a game engine for my games right now, and i'm working on items, and each item has a "Flag" associated that effects the way each item behaves later in code, however i need multiple flags for this type, and i know it is impossible to put arrays in UDTs, but is there a work around?
What i'm working with:
TYPE StatT
stamina as integer
wisdom as integer
intelligence as integer
dexterity as integer
ENDTYPE
type PlayerT
health as integer
x as float
y as float
inventory as integer
equip as integer
stat as statT
endtype
type flagT
value as integer
true as boolean
endtype
remstart
ITEM Type Documentation:
Name
the name that the game will display
Effect
0-Potion/Stat Modifier
1-Armor/Accessory
2-Weapon
3-Quest Item
4-Rare Item
5-Useless Item
Flag (0-9)
Modifier for stats of an item, more soon
remend
type ItemT
name as string
effect as integer
dim flag(9) as flagT
endtype