Intro (wajib untuk refreshing =w=)
Don't look at title, but the Video !
See?
Maksudnya kembangin kemampuan kalian pada saat membuat game... Jangan puas segitu aja.. Masih bisa dikembangin? Kembangkan itu!!!
Script nya
module AtkToCri
APPCR = 10
# Agility Points Per Hit Ratio- how many attack points you need for a single
# hit point bonus. Always rounds down.
CRA_CAP = 100
# Hit Ratio From Attack Cap - max amount of HIT points can be added by hit ratio
CRI_CAP = 1000
# True Max EVA cap, recommend you just cap out the bonus attack and keep raw
# hitratio numbers low instead of having a true hard cap
# having this over 100 essentially means no cap
end
class Game_Actor
alias cri_before_atk cri
def cri
n = cri_before_atk # get raw hit ratio
raw_atk = [actor.parameters[2, @level] + actor.parameters[4, @level] + @atk_plus, 0].max
bonus_cri = [raw_atk / AtkToCri::APPCR*0.25, AtkToCri::CRA_CAP].min
# get bonus Crit, capped at HRA_CAP
n += bonus_cri # add atk bonus crit
n = [n, AtkToCri::CRI_CAP].min # reduces atk to the absolute cap, if necessary
return n # returns the modified hit ratio
end
end
Seperti itulah.... Manfaatnya?
Buat yang tipe penyihir atau Stats utama di Spirit jadi punya Critical.....
Okay... Cyaa~
Q : Koq scriptnya persis ama yang Agi ke Ev..... *shoted
A : Feel my Magnum .56
Tidak ada komentar:
Posting Komentar