
Isn't that sexy? Everything character-related processes well. Item descriptions are available in tooltips when you hover your mouse over them.
A developer's blog for an browser-based online RPG that will have a significant multiplayer aspect.
<?xml version="1.0"?>
<ddata>
<player>
<hp>7</hp>
<sp>12</sp>
<encounter>0</encounter>
<initiative>0</initiative>
<x>0</x>
<y>0</y>
<dungeon>0</dungeon>
</player>
</ddata><?xml version="1.0"?>
<ddata>
<player>
<hp>17</hp>
<sp>2</sp>
<encounter>0</encounter>
<initiative>16</initiative>
<x>0</x>
<y>2</y>
<dungeon>1</dungeon>
</player>
<cohort>
<id>1</id>
<name>Generic</name>
<type>human</type>
<hp>30</hp>
<sp>10</sp>
<initiative>11</initiative>
<attack>
<min>1</min>
<max>4</max>
<properties>
<prop>martial</prop>
</properties>
<closerange>1</closerange>
<midrange>0</midrange>
<farrange>0</farrange>
</attack>
<xpdrop>100</xpdrop>
<gpdrop>300</gpdrop>
<itemdrops>
<item>
<id>1</id>
<rate>20</rate>
</item>
<item>
<id>2</id>
<rate>1</rate>
</item>
</itemdrops>
<stats>
<str>14</str>
<dex>10</dex>
<con>12</con>
<int>10</int>
<wis>10</wis>
<cha>10</cha>
</stats>
</cohort>
<monster>
<id>3</id>
<name>Zombah!</name>
<type>undead</type>
<type>human</type>
<range>1</range>
<hp>2</hp>
<sp>10</sp>
<initiative>12</initiative>
<attack>
<min>1</min>
<max>4</max>
<properties>
<prop>martial</prop>
</properties>
<closerange>1</closerange>
<midrange>0</midrange>
<farrange>0</farrange>
</attack>
<attack>
<min>2</min>
<max>6</max>
<spcost>2</spcost>
<properties>
<prop>fire</prop>
</properties>
<spcost>0</spcost>
<closerange>0</closerange>
<midrange>1</midrange>
<farrange>1</farrange>
</attack>
<xpdrop>100</xpdrop>
<gpdrop>30</gpdrop>
<itemdrops>
<item>
<id>1</id>
<rate>20</rate>
</item>
<item>
<id>2</id>
<rate>1</rate>
</item>
<item>
<id>4</id>
<rate>1000</rate>
</item>
</itemdrops>
<stats>
<str>10</str>
<dex>6</dex>
<con>0</con>
<int>12</int>
<wis>8</wis>
<cha>9</cha>
</stats>
</monster>
</ddata>
function gfmodulec($sdata)
{
global $GCHAR, $GDATA, $charlook, $GSWITCH, $GVAR, $COMBAT, $COMBATORDER, $NUMBER_OF_FLAGS, $NUMBER_OF_ENEMIES, $U, $PLAYABLE, $COOK, $VISIBLE, $SELECTABLE, $socache;
// Create a random file for inclusion and deletion; return its name.
$randomfilename = GAME_ROOT."/temp/".kcenc(microtime()."a".rand(1,10000)).".inc.php";
$fp = fopen($randomfilename, "w");
fwrite($fp, $sdata);
fclose($fp);
include($randomfilename);
unlink($randomfilename);
}