OXS 2.0 TV Sound Bar
Compact sound bar pick for boosting TV, movie, and console audio.
View on Amazon
Bmmplay may earn a commission from qualifying purchases made through these links.
No products in the cart.
Simple enough for a child, powerful enough for a developer
BMM_Archive · July 16, 2026
KAftermathSpoils VX by Kyonides​ Introduction The title tells you what this scriptlet is all about: healing based on the battle aftermath.
HP_TOTAL_TURNS[min_value..max_value] = 100
# * KAftermathSpoils VX * #
# Scripter : Kyonides Arkanthes
# v0.4.0 - 2024-10-19
# This script lets you automatically heal your heroes after winning a battle
# based on the number of battle turns.
module KBattle
# Leave these hashes alone!
HP_TOTAL_TURNS = {}
MP_TOTAL_TURNS = {}
GOLD_TOTAL_TURNS = {}
# If it took too long to defeat the enemy troopers...
HP_TOTAL_TURNS.default = 0
MP_TOTAL_TURNS.default = 0
GOLD_TOTAL_TURNS.default = 0
# Add as many Ranges, i.e. 1..50 as necessary:
HP_TOTAL_TURNS[1..6] = 100
HP_TOTAL_TURNS[7..17] = 75
HP_TOTAL_TURNS[18..35] = 50
HP_TOTAL_TURNS[36..60] = 25
MP_TOTAL_TURNS[1..5] = 100
MP_TOTAL_TURNS[6..15] = 75
MP_TOTAL_TURNS[16..30] = 50
MP_TOTAL_TURNS[31..50] = 25
GOLD_TOTAL_TURNS[1..2] = 150
GOLD_TOTAL_TURNS[3..6] = 120
GOLD_TOTAL_TURNS[7..10] = 100
GOLD_TOTAL_TURNS[11..13] = 80
GOLD_TOTAL_TURNS[14..17] = 60
end
class Range
def <=>(other)
to_a <=> other.to_a
end
end
class Game_Troop
alias :kyon_btl_score_gm_trp_gold_ttl :gold_total
def gold_total
gold = kyon_btl_score_gm_trp_gold_ttl
gp_perc = 0
KBattle::GOLD_TOTAL_TURNS.sort.reverse.each do |min_turns, percent|
next unless min_turns.include?(turns)
gp_perc = percent
break
end
gold + gold * gp_perc / 100
end
end
class Scene_Battle
alias :kyon_btl_score_scn_btl_disp_exp_gold :display_exp_and_gold
def process_aftermath_healing
hp_perc = mp_perc = 0
turns = $game_troop.turn_count
KBattle::HP_TOTAL_TURNS.sort.reverse.each do |min_turns, percent|
next unless min_turns.include?(turns)
hp_perc = percent
break
end
KBattle::MP_TOTAL_TURNS.sort.reverse.each do |min_turns, percent|
next unless min_turns.include?(turns)
mp_perc = percent
break
end
$game_party.members.each do |actor|
next if actor.dead?
actor.hp += actor.maxhp * hp_perc / 100
actor.mp += actor.maxmp * mp_perc / 100
end
end
def display_exp_and_gold
process_aftermath_healing
kyon_btl_score_scn_btl_disp_exp_gold
end
end
# * KAftermathHealing VX * #
# Scripter : Kyonides Arkanthes
# v0.3.1 - 2024-10-01
# This script lets you automatically heal your heroes after winning a battle
# based on the number of battle turns.
module KBattle
# Leave these hashes alone!
HP_TOTAL_TURNS = {}
MP_TOTAL_TURNS = {}
# If it took too long to defeat the enemy troopers...
HP_TOTAL_TURNS.default = 0
MP_TOTAL_TURNS.default = 0
# Add as many Ranges, i.e. 1..50 as necessary:
HP_TOTAL_TURNS[1..6] = 100
HP_TOTAL_TURNS[7..17] = 75
HP_TOTAL_TURNS[18..35] = 50
HP_TOTAL_TURNS[36..60] = 25
MP_TOTAL_TURNS[1..5] = 100
MP_TOTAL_TURNS[6..15] = 75
MP_TOTAL_TURNS[16..30] = 50
MP_TOTAL_TURNS[31..50] = 25
end
class Range
def <=>(other)
to_a <=> other.to_a
end
end
class Scene_Battle
alias :kyon_btl_score_scn_btl_proc_victory :process_victory
def process_aftermath_healing
hp_perc = mp_perc = 0
turns = $game_troop.turn_count
KBattle::HP_TOTAL_TURNS.sort.reverse.each do |min_turns, percent|
next unless min_turns.include?(turns)
hp_perc = percent
break
end
KBattle::MP_TOTAL_TURNS.sort.reverse.each do |min_turns, percent|
next unless min_turns.include?(turns)
mp_perc = percent
break
end
$game_party.members.each do |actor|
next if actor.dead?
actor.hp += actor.maxhp * hp_perc / 100
actor.mp += actor.maxmp *mp_perc / 100
end
end
def process_victory
process_aftermath_healing
kyon_btl_score_scn_btl_proc_victory
end
end
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadDue credit is mandatory! Include this forum in your game credits as well! That's it!
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
OXS 2.0 TV Sound Bar
Compact sound bar pick for boosting TV, movie, and console audio.
View on Amazon
Bmmplay may earn a commission from qualifying purchases made through these links.
No replies yet.
Loading summary...
Bmmplay creator tools
Log in or create an account to use this creator tool.
Join the conversation
Your reaction is ready. Log in and you will return to this page to add it.
Are you sure you want to close this music player?
7-in-2 USB-C Multiport Adapter for MacBook Pro and Air
Slim USB-C hub for HDMI, USB, card access, and everyday laptop expansion.
View on Amazon
Bmmplay may earn a commission from qualifying purchases made through these links.
Community safety