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.

evasion help, please

I really need help with evasion, I'd really like it to be a big part of my battle system so I need help with 2 things.

1: How do you display it in the status screen/equip screen?

2. How do I make it so it actually does what it seems to, in other words, if someone's evade is 30, will it really avoid 30% of all attacks all the time? if not, how can I tweak the battle system to make it work correctly?
 
I can't help you with the first question.

Currently a character's chance to evade in percent is: His Evasion + 8 * (His Agility / Attacker's dexterity)

If you want to tweak the battle system so that a character evades just it's Evasion in percent, first go to the script editor and then click on Game_Battler 3. Line 73 should say "eva = 8 * self.agi / attacker.dex + self.eva". Change that line to "eva = self.eva". Then still in Game_Battler 3, find line 158 which should say "eva = 8 * self.agi / user.dex + self.eva" and change that to "eva = self.eva".

Note that unless you make a skill based on dexterity, the only role dexterity now has is to effect critical hit rate.
 
okay right now I had some help from a friend with this and he got me as far as this:

in window_base I added:
when 7
parameter_name = "Evasion"
parameter_value = actor.eva
under the intelligence one

and in window_status I added

draw_actor_parameter(@actor, 96, 412, 7)

under the same parameter except 6 instead. I altered the 412, it was a different number for intelligence.. and yet now it still is not showing in the window.

in addition, I can't seem to move how the stats are displayed, any new parameters I add don't have a single effect. Can anyone help me out with this cause I'm stuck, I'm definately no scripter..
 

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