the modifyer system is complete, here is the basic format of the modifyer system as well as a screen shot of the elixer item being used.
PHP Code:
// Elixer modifyer
//fills up hp and mp
If ($modifyer == 22){
if ($playeri1 == $itemid)
$playeri1 = 0;
elseif ($playeri2 == $itemid)
$playeri2 = 0;
elseif ($playeri3 == $itemid)
$playeri3 = 0;
elseif ($playeri4 == $itemid)
$playeri4 = 0;
elseif ($playeri5 == $itemid)
$playeri5 = 0;
else
{
rpgerror("You do not have this item");
exit;
}
$playernewhp = $playerhpmax;
$playernewmp = $playermpmax;
$effect = "$playername\'s hp and mp is filled up";
}
that is the basic of the modifers. There is a list of almost 100 variables that can be used in modifyers giving you the ability to make your items do practiccaly whatever you want.
in this example of the elixer modifyer of 22 the first part ensures that the item is removed from the equiment as it is being used in battle. it also verifies the user has that item making sure that he/she does not fake out the browser via url queries.
the 2nd part is the actual proccess of the item.
$playernewhp = $playerhpmax;
(assigns the new value for hp to be the max amount of hp for that character, basicaly filling up his/her hp)
$playernewmp = $playermpmax;
(same as last line eccept for mp)
$effect = "$playername\'s hp and mp is filled up";
(gives the text for the item description, so that it will say the item used then a short description of what it did. In this example it says the users's hp and mp are filled up.)
thats all there is to makeing a modifyer. They are pretty simple file edits which are on the file called rpgmodifyers.php kept in the admin folder.
in the screenshot it shows the item elixer being used.