Great thank you for that. It outputs the random ocean monsters, but it also echoes out "array" , so it echoes out like this, "eel, shark, Array, eel, Array".
Is there anything I can do to stop that? Any more help GREATLY appreciated, thank you for the code. Derek
here is the actual array.
Code:
$monsters = array
(
'Ocean'=>array
(
'octalisk'=>array
(
'name'=>'octalisk',
'hp'=>100,
'damageLow'=>1,
'damageHigh'=>15,
'exp'=>10,
'ac'=>'HAVE TO LOOK THIS UP',
'monsterInitiativeModifier'=>'HAVE TO LOOK THIS UP'),
'shark',
'eel'
),
'Desert'=>array
(
'sand_snake'
),
'Forest'=>array
(
'frog',
'lizard',
'spider'
)
);
Last edited by silverglade; 07-31-2010 at 01:33 PM..
|