A revised codez.
rem base PC/NPC type
type Character
Index as word rem object number
Name as string
pType as byte rem player type - player=0, NPC=1, Ally=2, Enemy=3, Dragon=4
Filename as string rem filename of .x file
Texturename as string rem filename of texture
NumAnimations as word
CurrentAnimation as word
Weapon as word rem ItemList index of equipped weapon
Armor as word
Helmet as word
XPos as float
YPos as float
ZPos as float
XRot as float
YRot as float
ZRot as float
Health as integer
MaxHealth as integer
State as word rem normal=0, poisoned=1, ONFIRE!!=2, ...
Level as integer
Experience as integer
Accuracy as integer rem accuracy for ranged attacks
Energy as word rem run energy for player, time delay for special attacks, etc
endtype
rem player type
type Player
Char as Character rem base player data
Gloves as word rem ItemList index of equipped gloves, ...
Boots as word
Accessory as word
Amulet as word
Cape as word
Weight as word rem collective weight of items + 150(?)
Alignment as integer
Money as integer
endtype
dim Inventory(40) as Item rem ItemList indices of items held by player
rem NPC type
type NPC
Char as Character
iItem as Item rem Item held by NPC
Script as string rem file containing conversation script (?)
endtype
rem Anything that can fight and is not player
type Enemy
Char as Character
eType as byte rem type of enemy - human=0, monster types needed...
Tier as byte rem tier for type of items dropped - handled in death script, higher the tier, better the items
AI as byte rem AI type
Aggressive as boolean rem will attack player(1) or not(0)
endtype
rem Your bestest bud.
type Dragon
Char as Character
Stage as byte rem stage of growth - egg=0, baby=1, ...
Alignment as integer
Hunger as word
Strength as word
endtype
dim DragonAttacks(20) as integer rem ....Need a better plan
I am totally not making Black & White as an RPG. It just seems like it.
I will live forever or die trying.