Make a characters AGI the percentage for their HIT rate.

Status
Not open for further replies.
Joined
Dec 23, 2013
Messages
68
Reaction score
0
First Language
English
Primarily Uses
Hi everyone, I was looking to see if someone could make me a script that does what the title says.


Say Eric's AGI is 15: His HIT rate would be %15 and it would fluxuate according to his AGI score.


Is this possible? If so, I hope someone can create a script that does this. Thank you.
 

MeowFace

Meow
Veteran
Joined
Feb 22, 2015
Messages
1,034
Reaction score
184
First Language
Meowish
Primarily Uses
Give this a try:


#==============================================================================
# ■ Meow Face Param Change
#------------------------------------------------------------------------------
# AGI to Hit Rate
#==============================================================================
# How to Use:
# [1] Paste this below Material and above Main
#==============================================================================
class Game_BattlerBase
alias meow_hit hit
def hit; [meow_hit + ((param(6)).to_f/100), 1].min; end
end


hit rate is fixed on 100% max in this formula.


if you want it to go over 100%, simply change the 1 before .min to other numbers in the script.
 
Last edited by a moderator:
Joined
Dec 23, 2013
Messages
68
Reaction score
0
First Language
English
Primarily Uses
Thanks alot! Sorry I didn't get back to you sooner. It didn't pop up in my notifictations.


I'll test it real quick then get back to you!
 
Joined
Dec 23, 2013
Messages
68
Reaction score
0
First Language
English
Primarily Uses
Thanks! Quick Q, does this work on enemies as well?


EDIT: Sorry for the DB Post, if needed, merge the two.
 
Last edited by a moderator:

MeowFace

Meow
Veteran
Joined
Feb 22, 2015
Messages
1,034
Reaction score
184
First Language
Meowish
Primarily Uses
You are welcome and yes it should works on all battlers, both enemy and actor.
 
Joined
Dec 23, 2013
Messages
68
Reaction score
0
First Language
English
Primarily Uses
Thank you so much! I'll make sure to credit you.
 

MeowFace

Meow
Veteran
Joined
Feb 22, 2015
Messages
1,034
Reaction score
184
First Language
Meowish
Primarily Uses
You're welcome! ;)
 

Lunarea

Artist
Global Mod
Joined
Mar 1, 2012
Messages
8,840
Reaction score
7,799
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,050
Messages
1,018,548
Members
137,835
Latest member
yetisteven
Top