Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
#--------------------------------------------------------------------------
# * Get Maximum Value of Parameter EDITED
#--------------------------------------------------------------------------
def param_max(param_id)
return 9999 if param_id == 0 # MHP
return 999 if param_id == 1 # MMP
return 510 if param_id == 2 # ATK
return 255 if param_id == 3 # DEF
return 510 if param_id == 4 # MAG
return 255 if param_id == 5 # MIN
return 510 if param_id == 6 # AGI
return 255 if param_id == 7 # LUK
return super
end
i just dont know where to code in the return 9999
since it probably has no default maximum
i tested something and did 1,777,800,902 damage
Just add "value = 9999 if value > 9999" like so:
#--------------------------------------------------------------------------
# * Calculate Damage
#--------------------------------------------------------------------------
def make_damage_value(user, item)
value = item.damage.eval(user, self, $game_variables)
value *= item_element_rate(user, item)
value *= pdr if item.physical?
value *= mdr if item.magical?
value *= rec if item.damage.recover?
value = apply_critical(value) if @result.critical
value = apply_variance(value, item.damage.variance)
value = apply_guard(value)
value = 9999 if value > 9999 <------------(add it in this line)
@result.make_damage(value.to_i, item)
end
I think this should work. I hope I helped
Dude thank you, dealing 2 billion damage or something can ruin combat
caps just help to keep things challenging.
You should post a new question, as this is not related to the original post