Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Exp Share type of thing

hey everyone i plan on having a 3 man party in battle but i want the other characters with me ( plan on having 6 in party but 3 battling) and i want my reserve characters or even my characters in the party switch screen to also gain experience, maybe about half of what in battle characters gain

EXAMPLE
Arshes, bob and Smith are in the battle
Gloria, Hilda and Suzie are in the reserve/party switch screen

Arshes finishes the battle and they get 465 exp
so I want Gloria,Hilda and Suzie to get either the same or half the exp so around 232 exp each

This is to prevent those low level reserve characters if you want to/need to switch to another member for a certain storyline
 
Take a look at this one from Slipknot. Don't know if it will work with your battle system, but you never know, unless you try. I think you have to paste it underneath any battle system that you're using. Or anything that changes in battle.


#=============================================================
# ? After Battle Changes
#------------------------------------------------------------------------------
# Slipknot
# 1.1
# 15/02/06
#------------------------------------------------------------------------------
=begin
Version 1.1
- Fixed experience split.
- In the result window, now appear the total experience.
=end
#=============================================================

module Battle_End_Options
#--------------------------------------------------------------------------
# ? Split experience received?
#--------------------------------------------------------------------------
Split_Exp = true
#--------------------------------------------------------------------------
# ? Full recover when actor increase level?
#--------------------------------------------------------------------------
Level_Up_Recover = true
#--------------------------------------------------------------------------
# ? Phase 5 wait time
#--------------------------------------------------------------------------
End_Frames = 70
#--------------------------------------------------------------------------
end

#------------------------------------------------------------------------------
# Begin Scene_Battle Edit
#------------------------------------------------------------------------------
class Scene_Battle
#--------------------------------------------------------------------------
include Battle_End_Options
#--------------------------------------------------------------------------
def start_phase5
@phase = 5
$game_system.me_play($game_system.battle_end_me)
$game_system.bgm_play($game_temp.map_bgm)
exp = gold = old_exp = 0
treasures = []
for enemy in $game_troop.enemies
unless enemy.hidden
exp += enemy.exp
gold += enemy.gold
if rand(100) < enemy.treasure_prob
if enemy.item_id > 0
treasures.push($data_items[enemy.item_id])
end
if enemy.weapon_id > 0
treasures.push($data_weapons[enemy.weapon_id])
end
if enemy.armor_id > 0
treasures.push($data_armors[enemy.armor_id])
end
end
end
end
treasures = treasures[0..5]
psize = $game_party.actors.size-1
old_exp = exp
if Split_Exp
can_get = 0
0.upto(psize) do |x|
actor = $game_party.actors 
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top