StendhalRefactoringRP: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Danter
imported>Danter
Line 94: Line 94:
* Holy strong vs Dark
* Holy strong vs Dark
The Holy and Dark elements will also be used in healings, depending on if the target is a good or an evil creature the dark and holy elements will heal or damage the target.<br>
The Holy and Dark elements will also be used in healings, depending on if the target is a good or an evil creature the dark and holy elements will heal or damage the target.<br>
<br>
Here is some speculative formulas for how magic might be working
<pre>
risk_to_hit = 2 * source[INT] - target[INT] + target[DEF]/2 + roll[1D20] -10

if risk_to_hit > 0:
attacker part = 0,8 * ((roll[1D100]/100) * source[MATK]^2) * (ELEMENT * 0,2) + 4 * source[MATK] * (ELEMENT*0,2)
maxdamage = source[MATK]^2 + 4 * (ELEMENT)
defender_part = 0.6 * (roll[1D100] / 100) * target[DEF]^2 + 2 * target[DEF] * shield + target[DEF] *
armor + 0,5 * target[DEF]* helmet + 0,5* target[DEF] * legs + 0,5 * target[DEF] * boots

damage = ( ( ((attacker_part - defender_part) / maxdamage) * (maxdamage / source[MATK]) ) *
(1 + (target[WEAK] * 0,01)) ) * (1 - target[STRONG] * 0,01)


ELEMENT = The elemental power of the skill that is used (Equivelant to the ATK the equipped weapon has, but for magic).
WEAK = The element that is weak to the skill that is used. (beeing strong in one element makes you weak to another)
STRONG = Is the target strong against the element casted upon him?
</pre>

These Formulas is based on that all creatures have an elemental resistance to all the elements in the game: <br>
* An elemental resistance below 0 means that you gain extra damage from that element -100 means you recive the double damage.
* An elemental resistance of 0 means that there is no change in damage from that element, or the element that is strong against it.<br>
* An elemental resistance of 100 means that the target is immune to that form of damage, but also weak against the element strong against it and lastly,<br>
* An elemental resistance of 100+ means that you absorbs some of that element (ie you get healed) having 200 means that instead of getting damaged you get healed the entire damage cast upon you, but you are also very weak against the oposing element.

<br>
<br>
Check over at the class section for spells that might be added
Check over at the class section for spells that might be added