I know that I keep asking questions here rather than at a site made to answer such questions, but you all are a lot nicer at explaining things than they are.
My question:
I plan to use xml files to store game data for a game I am currently working on to cut down on the SQL calls I have to make. My problem is that I can't seem to find a Tutorial that explains how to deal with a lot of nodes.
So, how would I read something like this:
and insert them into this:
Without knowing for certain how many Items will be needed.
And the Struct being:
And as an afterthought, if they are in a folder called Data and I set them to Compile, how would I access them. I've never really understood how you use embedded stuff...
My question:
I plan to use xml files to store game data for a game I am currently working on to cut down on the SQL calls I have to make. My problem is that I can't seem to find a Tutorial that explains how to deal with a lot of nodes.
So, how would I read something like this:
XML:
<div class="xml" id="{CB}" style="font-family: monospace;"><ol>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><?xml version="1.0" encoding="utf-8" <span style="font-weight: bold; color: black;">?>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><MechList<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><Mech<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><name<span style="font-weight: bold; color: black;">>WarMachine<span style="color: #009900;"><span style="font-weight: bold; color: black;"></name<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><type<span style="font-weight: bold; color: black;">>1<span style="color: #009900;"><span style="font-weight: bold; color: black;"></type<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><id<span style="font-weight: bold; color: black;">>1<span style="color: #009900;"><span style="font-weight: bold; color: black;"></id<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><weapon1<span style="font-weight: bold; color: black;">>1<span style="color: #009900;"><span style="font-weight: bold; color: black;"></weapon1<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><weapon2<span style="font-weight: bold; color: black;">>1<span style="color: #009900;"><span style="font-weight: bold; color: black;"></weapon2<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><weapon3<span style="font-weight: bold; color: black;">>1<span style="color: #009900;"><span style="font-weight: bold; color: black;"></weapon3<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><weapon4<span style="font-weight: bold; color: black;">>1<span style="color: #009900;"><span style="font-weight: bold; color: black;"></weapon4<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><ammo1<span style="font-weight: bold; color: black;">>1<span style="color: #009900;"><span style="font-weight: bold; color: black;"></ammo1<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><ammo2<span style="font-weight: bold; color: black;">>1<span style="color: #009900;"><span style="font-weight: bold; color: black;"></ammo2<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><ammo3<span style="font-weight: bold; color: black;">>1<span style="color: #009900;"><span style="font-weight: bold; color: black;"></ammo3<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><ammo4<span style="font-weight: bold; color: black;">>1<span style="color: #009900;"><span style="font-weight: bold; color: black;"></ammo4<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><head<span style="font-weight: bold; color: black;">>19<span style="color: #009900;"><span style="font-weight: bold; color: black;"></head<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><cTorso<span style="font-weight: bold; color: black;">>23<span style="color: #009900;"><span style="font-weight: bold; color: black;"></cTorso<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><rTorso<span style="font-weight: bold; color: black;">>20<span style="color: #009900;"><span style="font-weight: bold; color: black;"></rTorso<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><lTorso<span style="font-weight: bold; color: black;">>20<span style="color: #009900;"><span style="font-weight: bold; color: black;"></lTorso<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><rArm<span style="font-weight: bold; color: black;">>15<span style="color: #009900;"><span style="font-weight: bold; color: black;"></rArm<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><lArm<span style="font-weight: bold; color: black;">>15<span style="color: #009900;"><span style="font-weight: bold; color: black;"></lArm<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><rLeg<span style="font-weight: bold; color: black;">>21<span style="color: #009900;"><span style="font-weight: bold; color: black;"></rLeg<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><lLeg<span style="font-weight: bold; color: black;">>21<span style="color: #009900;"><span style="font-weight: bold; color: black;"></lLeg<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><walk<span style="font-weight: bold; color: black;">>5<span style="color: #009900;"><span style="font-weight: bold; color: black;"></walk<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><run<span style="font-weight: bold; color: black;">>8<span style="color: #009900;"><span style="font-weight: bold; color: black;"></run<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><jump<span style="font-weight: bold; color: black;">>5<span style="color: #009900;"><span style="font-weight: bold; color: black;"></jump<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"></Mech<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><Mech<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><name<span style="font-weight: bold; color: black;">>WarMachine - IIC<span style="color: #009900;"><span style="font-weight: bold; color: black;"></name<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><type<span style="font-weight: bold; color: black;">>1<span style="color: #009900;"><span style="font-weight: bold; color: black;"></type<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><id<span style="font-weight: bold; color: black;">>2<span style="color: #009900;"><span style="font-weight: bold; color: black;"></id<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><weapon1<span style="font-weight: bold; color: black;">>2<span style="color: #009900;"><span style="font-weight: bold; color: black;"></weapon1<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><weapon2<span style="font-weight: bold; color: black;">>2<span style="color: #009900;"><span style="font-weight: bold; color: black;"></weapon2<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><weapon3<span style="font-weight: bold; color: black;">>2<span style="color: #009900;"><span style="font-weight: bold; color: black;"></weapon3<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><weapon4<span style="font-weight: bold; color: black;">>2<span style="color: #009900;"><span style="font-weight: bold; color: black;"></weapon4<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><ammo1<span style="font-weight: bold; color: black;">>1<span style="color: #009900;"><span style="font-weight: bold; color: black;"></ammo1<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><ammo2<span style="font-weight: bold; color: black;">>1<span style="color: #009900;"><span style="font-weight: bold; color: black;"></ammo2<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><ammo3<span style="font-weight: bold; color: black;">>1<span style="color: #009900;"><span style="font-weight: bold; color: black;"></ammo3<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><ammo4<span style="font-weight: bold; color: black;">>1<span style="color: #009900;"><span style="font-weight: bold; color: black;"></ammo4<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><head<span style="font-weight: bold; color: black;">>19<span style="color: #009900;"><span style="font-weight: bold; color: black;"></head<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><cTorso<span style="font-weight: bold; color: black;">>23<span style="color: #009900;"><span style="font-weight: bold; color: black;"></cTorso<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><rTorso<span style="font-weight: bold; color: black;">>20<span style="color: #009900;"><span style="font-weight: bold; color: black;"></rTorso<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><lTorso<span style="font-weight: bold; color: black;">>20<span style="color: #009900;"><span style="font-weight: bold; color: black;"></lTorso<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><rArm<span style="font-weight: bold; color: black;">>15<span style="color: #009900;"><span style="font-weight: bold; color: black;"></rArm<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><lArm<span style="font-weight: bold; color: black;">>15<span style="color: #009900;"><span style="font-weight: bold; color: black;"></lArm<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><rLeg<span style="font-weight: bold; color: black;">>21<span style="color: #009900;"><span style="font-weight: bold; color: black;"></rLeg<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><lLeg<span style="font-weight: bold; color: black;">>21<span style="color: #009900;"><span style="font-weight: bold; color: black;"></lLeg<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><walk<span style="font-weight: bold; color: black;">>5<span style="color: #009900;"><span style="font-weight: bold; color: black;"></walk<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><run<span style="font-weight: bold; color: black;">>8<span style="color: #009900;"><span style="font-weight: bold; color: black;"></run<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><jump<span style="font-weight: bold; color: black;">>5<span style="color: #009900;"><span style="font-weight: bold; color: black;"></jump<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"></Mech<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><Mech<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><name<span style="font-weight: bold; color: black;">>WarMachine - IIC II<span style="color: #009900;"><span style="font-weight: bold; color: black;"></name<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><type<span style="font-weight: bold; color: black;">>1<span style="color: #009900;"><span style="font-weight: bold; color: black;"></type<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><id<span style="font-weight: bold; color: black;">>3<span style="color: #009900;"><span style="font-weight: bold; color: black;"></id<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><weapon1<span style="font-weight: bold; color: black;">>3<span style="color: #009900;"><span style="font-weight: bold; color: black;"></weapon1<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><weapon2<span style="font-weight: bold; color: black;">>1<span style="color: #009900;"><span style="font-weight: bold; color: black;"></weapon2<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><weapon3<span style="font-weight: bold; color: black;">>3<span style="color: #009900;"><span style="font-weight: bold; color: black;"></weapon3<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><weapon4<span style="font-weight: bold; color: black;">>1<span style="color: #009900;"><span style="font-weight: bold; color: black;"></weapon4<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><ammo1<span style="font-weight: bold; color: black;">>2<span style="color: #009900;"><span style="font-weight: bold; color: black;"></ammo1<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><ammo2<span style="font-weight: bold; color: black;">>1<span style="color: #009900;"><span style="font-weight: bold; color: black;"></ammo2<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><ammo3<span style="font-weight: bold; color: black;">>2<span style="color: #009900;"><span style="font-weight: bold; color: black;"></ammo3<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><ammo4<span style="font-weight: bold; color: black;">>1<span style="color: #009900;"><span style="font-weight: bold; color: black;"></ammo4<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><head<span style="font-weight: bold; color: black;">>19<span style="color: #009900;"><span style="font-weight: bold; color: black;"></head<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><cTorso<span style="font-weight: bold; color: black;">>23<span style="color: #009900;"><span style="font-weight: bold; color: black;"></cTorso<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><rTorso<span style="font-weight: bold; color: black;">>20<span style="color: #009900;"><span style="font-weight: bold; color: black;"></rTorso<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><lTorso<span style="font-weight: bold; color: black;">>20<span style="color: #009900;"><span style="font-weight: bold; color: black;"></lTorso<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><rArm<span style="font-weight: bold; color: black;">>15<span style="color: #009900;"><span style="font-weight: bold; color: black;"></rArm<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><lArm<span style="font-weight: bold; color: black;">>15<span style="color: #009900;"><span style="font-weight: bold; color: black;"></lArm<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><rLeg<span style="font-weight: bold; color: black;">>21<span style="color: #009900;"><span style="font-weight: bold; color: black;"></rLeg<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><lLeg<span style="font-weight: bold; color: black;">>21<span style="color: #009900;"><span style="font-weight: bold; color: black;"></lLeg<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><walk<span style="font-weight: bold; color: black;">>5<span style="color: #009900;"><span style="font-weight: bold; color: black;"></walk<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><run<span style="font-weight: bold; color: black;">>8<span style="color: #009900;"><span style="font-weight: bold; color: black;"></run<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><jump<span style="font-weight: bold; color: black;">>5<span style="color: #009900;"><span style="font-weight: bold; color: black;"></jump<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"></Mech<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><Mech<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><name<span style="font-weight: bold; color: black;">>MasterBlaster<span style="color: #009900;"><span style="font-weight: bold; color: black;"></name<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><type<span style="font-weight: bold; color: black;">>1<span style="color: #009900;"><span style="font-weight: bold; color: black;"></type<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><id<span style="font-weight: bold; color: black;">>4<span style="color: #009900;"><span style="font-weight: bold; color: black;"></id<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><weapon1<span style="font-weight: bold; color: black;">>2<span style="color: #009900;"><span style="font-weight: bold; color: black;"></weapon1<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><weapon2<span style="font-weight: bold; color: black;">>2<span style="color: #009900;"><span style="font-weight: bold; color: black;"></weapon2<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><weapon3<span style="font-weight: bold; color: black;">>1<span style="color: #009900;"><span style="font-weight: bold; color: black;"></weapon3<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><weapon4<span style="font-weight: bold; color: black;">>1<span style="color: #009900;"><span style="font-weight: bold; color: black;"></weapon4<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><ammo1<span style="font-weight: bold; color: black;">>1<span style="color: #009900;"><span style="font-weight: bold; color: black;"></ammo1<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><ammo2<span style="font-weight: bold; color: black;">>1<span style="color: #009900;"><span style="font-weight: bold; color: black;"></ammo2<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><ammo3<span style="font-weight: bold; color: black;">>1<span style="color: #009900;"><span style="font-weight: bold; color: black;"></ammo3<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><ammo4<span style="font-weight: bold; color: black;">>1<span style="color: #009900;"><span style="font-weight: bold; color: black;"></ammo4<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><head<span style="font-weight: bold; color: black;">>19<span style="color: #009900;"><span style="font-weight: bold; color: black;"></head<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><cTorso<span style="font-weight: bold; color: black;">>32<span style="color: #009900;"><span style="font-weight: bold; color: black;"></cTorso<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><rTorso<span style="font-weight: bold; color: black;">>45<span style="color: #009900;"><span style="font-weight: bold; color: black;"></rTorso<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><lTorso<span style="font-weight: bold; color: black;">>32<span style="color: #009900;"><span style="font-weight: bold; color: black;"></lTorso<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><rArm<span style="font-weight: bold; color: black;">>23<span style="color: #009900;"><span style="font-weight: bold; color: black;"></rArm<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><lArm<span style="font-weight: bold; color: black;">>23<span style="color: #009900;"><span style="font-weight: bold; color: black;"></lArm<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><rLeg<span style="font-weight: bold; color: black;">>31<span style="color: #009900;"><span style="font-weight: bold; color: black;"></rLeg<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><lLeg<span style="font-weight: bold; color: black;">>31<span style="color: #009900;"><span style="font-weight: bold; color: black;"></lLeg<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><walk<span style="font-weight: bold; color: black;">>7<span style="color: #009900;"><span style="font-weight: bold; color: black;"></walk<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><run<span style="font-weight: bold; color: black;">>11<span style="color: #009900;"><span style="font-weight: bold; color: black;"></run<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"><jump<span style="font-weight: bold; color: black;">>7<span style="color: #009900;"><span style="font-weight: bold; color: black;"></jump<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"></Mech<span style="font-weight: bold; color: black;">>
<span style="color: #009900;"><span style="font-weight: bold; color: black;"></MechList<span style="font-weight: bold; color: black;">>
and insert them into this:
Code:
Mech[] MechList = new MechList[];
And the Struct being:
Code:
using System;
namespace UnnamedChaos_20.Client
{
public struct Mech
{
#region
public string name;
public short type;
public short id;
public string icon;
public short weapon1;
public short weapon2;
public short weapon3;
public short weapon4;
public short ammo1;
public short ammo2;
public short ammo3;
public short ammo4;
public short heada;
public short ctorsoa;
public short ltorsoa;
public short rtorsoa;
public short rarma;
public short larma;
public short rlega;
public short llega;
public short walk;
public short run;
public short jump;
#endregion
/*add whatever more you need, don't forget to add the atributes though or make the vars public public*/
public Mech(string _name, short _type, short _id, string _icon, short _w1, short _w2, short _w3, short _w4, short _a1,
short _a2, short _a3, short _a4, short _h, short _ct, short _lt, short _rt, short _ra, short _la, short _rl,
short _ll, short _w, short _r, short _j)
{
name = _name;
type = _type;
id = _id;
icon = _icon;
weapon1 = _w1;
weapon2 = _w2;
weapon3 = _w3;
weapon4 = _w4;
ammo1 = _a1;
ammo2 = _a2;
ammo3 = _a3;
ammo4 = _a4;
heada = _h;
ctorsoa = _ct;
ltorsoa = _lt;
rtorsoa = _rt;
rarma = _ra;
larma = _la;
rlega = _rl;
llega = _ll;
walk = _w;
run = _r;
jump = _j;
}
}
}
And as an afterthought, if they are in a folder called Data and I set them to Compile, how would I access them. I've never really understood how you use embedded stuff...