View previous topic :: View next topic |
Author |
Message |
Chronoas

Joined: 18 Sep 2008 Posts: 37
|
Posted: Thu Aug 11, 2011 8:55 pm Post subject: Hero Elemental Resistance Calculations |
|
|
So, as a work on my WIP game, one of the options in the game data is the way the game calculates resistances with equipment. I've considered using the Multiplication method, but I notice an issue that is oddly very absent from the examples given.
If a character has an 'absorb an element', and has equipment that makes them 'weak to' in some way, it just increases the amount they absorb. Mathematically, a negative * a positive * a positive is ultimately a negative.
The other such example is the character 'absorbs', and additionally has two pieces of equipment that also 'absorb'. Mathematically, a negative * a negative * a negative will ultimately be a negative once again.
Now, the example that is absent seems to be two negatives and a positive. Mathematically, a negative * a negative * a positive will result in a positive. However, logically, a character that absorbs an element and also has a piece of equipment that absorbs an element shouldn't suddenly have both those absorptions cause a massive weakness, should it?
My question is, does it calculate how multiplication would mathematically calculate this, or is there some other aspect at play that would keep it as a negative? And if it does work out mathematically, is that how it is intended to function? |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Fri Aug 12, 2011 9:04 am Post subject: |
|
|
Elemental absorbs are not calculated mathematically. If at least one absorb is in effect, the attack will cure.
two absorbs on the same attack will not cancel each other out and become damage. |
|
Back to top |
|
 |
Chronoas

Joined: 18 Sep 2008 Posts: 37
|
Posted: Fri Aug 12, 2011 11:06 am Post subject: |
|
|
Alright, thank you. See, and that's why that situation really should have an example given.  |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Sat Aug 13, 2011 2:59 am Post subject: |
|
|
Well, OK, I added another example, but the behaviour is documented in the F1 help screen. _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
Chronoas

Joined: 18 Sep 2008 Posts: 37
|
Posted: Sat Aug 13, 2011 8:06 am Post subject: |
|
|
Oh, well that's good to know. Thing is, I generally only check the help if I don't know what a feature does, or if I need to know a keyboard command (like when I'm editing a map). I can honestly say I forgot all about the help menu in this case. Thanks for the help. |
|
Back to top |
|
 |
|