here are some # sign variables.
blah#
size#
thisisapoundsignvariable#
happy?
..
anyway there are 4 kinds of variables in DBP -- integer, float, string, and type.
integer variables have no symbol after their names. so x, y, numberofpeople are all integer variables. integers cannot have numbers after a decimal point. these are integers: -5, 12, 344, -452432. they are also more accurate when you get into bigger numbers (like 100000 and more).
float variables are the "# sign variables". they have a # at the end of their name. i put some at the top of this post. floats can have numbers after the decimal point, like 3.5 and 0.1123. however floats are not very accurate with very large numbers -- they go into something called "scientific notation" which looks like 5.34242e+014. confusing and inaccurate.
strings are text. they have a $ after their name. so name$, and command$ are string variables. they hold text, and when you give them a value you put what you want to put in them inside quote marks. so you do name$="Smokie McPot". there are a bunch of DBP functions and commands to manipulate strings. you can also add strings together, so "a "+"b" will give you "a b".
types are special variables that are what you're looking for. they allow you to have several variables in one thing. you first have to define the type, like:
type potion
name$, life_to_give_back
endtype
then you can make an array of types.
dim potions(10) as potion
then you have to assign the variables. you access the variables in types using a period like this:
potions(0).name$="Cure 1"
potions(0).life_to_give_back=10
potions(1).name$="Cure 2"
potions(1).life_to_give_back=30
and so on.
i just really hope these 10 minutes of typing were not in vain. which i have the unfortunate feeling that they were.
stop looking at me!