Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[Resolved] where?

Status
Not open for further replies.
I am not sure what you are asking. If you are asking about battle formulas, check Game_Battler 3, def attack_effect and def skill_effect.

Search around in Game_Battler, Game_Enemy & Game_Actor for better understanding.
 
no, it's not that. i found it, it's good.

it was in Game_Actor line 2##, under the n = parts. never mind my script request topic "simple request" then. now that i got it.

now i have another ?:

i changed mdef = int / str * pdef

however, i need the program to be more EXACT!

the char had 52 str, 60 int, and 43 pdef.

when it calculated 60/52 as 1.15..., it rounded it to 1 before it multiplied 43!!!

the equation should be about 49, but it calculated 43! how can make it not round until the END of the equation? rather than every step to the nearest whole integer?

SOOOO sorry ya'll! my mathematical part brain temporarily died there for a sec

A TIP TO ALL WITH THIS PROBLEM: just multiply the parts by the precision, then cancel out the multiplication!

e.g.
inprecise: mdef = int / str * pdef
precise: mdef = int * 1000 / str * pdef / 1000

reasoning: rather than 1.15..., it comes out as 1,150, which the claculator CAN work with! then, once you get 49,000, rather than 49, the / 1000 returns it to normal!
 
Status
Not open for further replies.

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top