|
||
|
|
Dragon Star PHP RPG Engine - Core Engine Nuts and BoltsOverviewThis page deals with the various ways that this game works and figures out how the game play progresses. This is meant for those number geeks that want to know how to maximize their characters! GeneralPXP (Potential eXperience Points)PXP is a measurement of how dangerous a combatant is, and hence is also the amount of experience earned if completely defeated by another combatant. This is calculated using four measures:
A fighter may earn 100% of an opponents PXP if the oppenent starts with 100% of its life and the only actions to affect the opponent are caused by the fighter. All actions affecting an opponent grant a share of the PXP the opponent has to the combatant responsible for the action. In fact, healing yourself or your party allows a fighter to earn XP off thier own party. This should help clerics not fall so far behind earning XP in combat. Simply this means that if you are the only one responsible for killing a monster with 100% HP, then you get 100% of its PXP. But if it has 50% HP, then you only get 50% of its PXP. And if two fighters damage the monster for 50% of its HP, they split the PXP 50-50. As a scenario, though, let's say that a party consisting of a single fighter fights another party of two: a cleric and a mage. While the fighter wails on the mage, the cleric heals the mage. When it is said and done, the cleric has healed the mage for three times his HP and the fighter has damaged the mage for four times his HP. This is a net loss of 100% of the mage's HP and he dies. At this point, the mage owes 700% of his PXP. However, if a character owes more than 100% of his PXP, the percentages are scaled down so the sum is 100%. This means that the fighter would get 4/7 of the mage's PXP and the cleric would get the other 3/7. By chance, the mage would also get a percentage of the fighter's PXP based on the damage caused to the fighter, even though he died. CombatFight OrderThe order of fight is determined in a fairly constant manner. There are two major parts to the calculation: the fighter's speed and the number of attacks the fighter is to perform. The fighters' speeds are randomized +-10% and all combatants are ordered from highest speed to slowest speed. In addition, players entitled to more than one attack receive additional speed entries as a fraction of thier speed rating using the formula (base speed * attack number/total number of attacks), ie a person with 100 speed and 4 attacks will have speed ratings of 100 (100*4/4), 75 (100*3/4), 50 (100*2/4), and 25 (100*1/4). All these ratings after ordering determine the order of combat. Attacking and Skill SuccessA fighter attacking another combatant must successfully hit the target in order to cause damage. This is determined using a ratio (effective accuracy/(effective accuracy+effective dodge)). In essence, a random number is chosen between 1 and accuracy+dodge. If the number is less than or equal to accuracy, then the target is hit. This provides for a couple of desired game outcomes:
Attack and Skill DamageAfter making a successful hit, damage is distributed between all hit targets. In the case of group or party attacks, the damage is calculated with a straight (effective strength-effective block)formula, with a minimum damage of 1. If the attack is a ranged attack, then the damage is calculated using a linear tapering formula ((effective strength-effective block)*(range-abs(target+-offset))/range), with a minimum damage of 1. Dead members of the target party still count as an offset even though no damage occurs (they are dead already!). If the accuracy roll for that target was a 1, the strength is doubled. Next, elemental attributes are applied and the target receives the calculated damage (or healing) rounded up to the nearest whole number. Skills vs. WeaponsThe main difference between skills and weapons are that skills cause a set effect with no modification based on any other stats, while attacking causes the weapon's stats to affect the fighter's effecitve stats. As a fighter levels, his strength will add to the damage caused, while skills will remain constant. Casting SuccessThe chance for a negative spell to affect another is directly correlated to power and resistance. There are two scenarios:
Casting DamageDepending on if the caster's power check was 100%, 50%, or 0% successful, the spell will cause 100%, 50%, or 0% of its rated effect. Item Use SuccessItems have a succes ratio associated with them. Some will always work. Others will rarely work. Item Use DamageItems have the same effects as spells and act like spell damage without the power/resistance check. |
|