Senin, 29 April 2013

Script Atk + Spi = Critical Stats

Seperti yang dibilang dari post sebelumnya....

Intro (wajib untuk refreshing =w=)

Don't look at title, but the Video !




Do Nothing... And DIE....

Okay, silent is not golden










See? Lol Patapon.... I play this!
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 .5635435435 Just use it

Tidak ada komentar:

Posting Komentar