Gold and Exp Plus
Authors: game_guy
Version: 1.3
Type: Exp and Gold Add On
Key Term: Battle Add-on
IntroductionIn some RPG's I'm sure you've seen some items or equipment that increases the
percent of Experience and Gold you recieve. This script gives weapons and
armors Exp and Gold % that increase the exp and gold you gain.
Features
- Takes percent defined and adds it to exp gained
- Takes percent defined and adds it to gold gained
- works for weapons and armors
ScreenshotsN/A
DemoThis is the demo for the Default Battle System not Blizz ABS
Demo
ScriptThis is for teh Default Battle System
#==============================================================================#
# Gold and Experience Percent Add On
#==============================================================================#
=begin
Intro:
In some RPG's I'm sure you've seen some items or equipment that increases the
percent of Experience and Gold you recieve. This script gives weapons and
armors Exp and Gold %.
What it does is take the percent you defined for the weapon or armor
and makes it a percent. Than it takes the expereince or gold and gets the percent
defined and adds it to it.
Instructions. Go to the BEGIN CONFIG and follow those instructions.
IT IS RECOMMENDED TO USE A NUMBER FROM 1-100 unless you want an item that doubles
the exp or gold you gain.
=end
module RPG
class Weapon
def gold_plus
case id
#========================================================#
# BEGIN CONFIG
#========================================================#
#========================================================#
# when weapon_id then return gold gain in percent
#========================================================#
when 1 then return 5
end
return 0
end
def exp_plus
case id
#========================================================#
# when weapon_id then return exp gain in percent
#========================================================#
when 1 then return 100
end
return 0
end
end
class Armor
def gold_plus
case id
#========================================================#
# when armor_id then return gold gain in percent
#========================================================#
when 1 then return 5
end
return 0
end
def exp_plus
case id
#========================================================#
# when armor_id then return exp gain in percent
#========================================================#
when 1 then return 5
end
#========================================================#
# END CONFIG
#========================================================#
return 0
end
end
end
class Game_Actor
def gold_plus
n = 0
weapon = $data_weapons[@weapon_id]
armor1 = $data_armors[@armor1_id]
armor2 = $data_armors[@armor2_id]
armor3 = $data_armors[@armor3_id]
armor4 = $data_armors[@armor4_id]
n += weapon.gold_plus if weapon != nil
n += armor1.gold_plus if armor1 != nil
n += armor2.gold_plus if armor2 != nil
n += armor3.gold_plus if armor3 != nil
n += armor4.gold_plus if armor4 != nil
return n
end
def exp_plus
n = 0
weapon = $data_weapons[@weapon_id]
armor1 = $data_armors[@armor1_id]
armor2 = $data_armors[@armor2_id]
armor3 = $data_armors[@armor3_id]
armor4 = $data_armors[@armor4_id]
n += weapon.exp_plus if weapon != nil
n += armor1.exp_plus if armor1 != nil
n += armor2.exp_plus if armor2 != nil
n += armor3.exp_plus if armor3 != nil
n += armor4.exp_plus if armor4 != nil
return n
end
end
class Scene_Battle
def start_phase5
@phase = 5
goldpercent = 0
$game_system.me_play($game_system.battle_end_me)
$game_system.bgm_play($game_temp.map_bgm)
goldpercent += $game_party.actors[0].gold_plus if $game_party.actors[0] != nil
goldpercent += $game_party.actors[1].gold_plus if $game_party.actors[1] != nil
goldpercent += $game_party.actors[2].gold_plus if $game_party.actors[2] != nil
goldpercent += $game_party.actors[3].gold_plus if $game_party.actors[3] != nil
exppercent = 0
exppercent += $game_party.actors[0].exp_plus if $game_party.actors[0] != nil
exppercent += $game_party.actors[1].exp_plus if $game_party.actors[1] != nil
exppercent += $game_party.actors[2].exp_plus if $game_party.actors[2] != nil
exppercent += $game_party.actors[3].exp_plus if $game_party.actors[3] != nil
exp = 0
gold = 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
val = gold
val *= goldpercent
val = val / 100
gold += val
val = exp
val *= exppercent
val = val / 100
exp += val
treasures = treasures[0..5]
for i in 0...$game_party.actors.size
actor = $game_party.actors[i]
if actor.cant_get_exp? == false
last_level = actor.level
actor.exp += exp
if actor.level > last_level
@status_window.level_up(i)
end
end
end
$game_party.gain_gold(gold)
for item in treasures
case item
when RPG::Item
$game_party.gain_item(item.id, 1)
when RPG::Weapon
$game_party.gain_weapon(item.id, 1)
when RPG::Armor
$game_party.gain_armor(item.id, 1)
end
end
@result_window = Window_BattleResult.new(exp, gold, treasures)
@phase5_wait_count = 100
end
end
This is for Blizz ABS
#==============================================================================#
# Gold and Experience Percent Add On for BLizz ABS
#==============================================================================#
=begin
Intro:
In some RPG's I'm sure you've seen some items or equipment that increases the
percent of Experience and Gold you recieve. This script gives weapons and
armors Exp and Gold %.
What it does is take the percent you defined for the weapon or armor
and makes it a percent. Than it takes the expereince or gold and gets the percent
defined and adds it to it.
Instructions. Go to the BEGIN CONFIG and follow those instructions.
IT IS RECOMMENDED TO USE A NUMBER FROM 1-100 unless you want an item that doubles
the exp or gold you gain.
=end
module RPG
class Weapon
def gold_plus
case id
#========================================================#
# BEGIN CONFIG
#========================================================#
#========================================================#
# when weapon_id then return gold gain in percent
#========================================================#
when 1 then return 5
end
return 0
end
def exp_plus
case id
#========================================================#
# when weapon_id then return exp gain in percent
#========================================================#
when 1 then return 100
end
return 0
end
end
class Armor
def gold_plus
case id
#========================================================#
# when armor_id then return gold gain in percent
#========================================================#
when 1 then return 5
end
return 0
end
def exp_plus
case id
#========================================================#
# when armor_id then return exp gain in percent
#========================================================#
when 1 then return 5
end
#========================================================#
# END CONFIG
#========================================================#
return 0
end
end
end
class Game_Actor
def gold_plus
n = 0
weapon = $data_weapons[@weapon_id]
armor1 = $data_armors[@armor1_id]
armor2 = $data_armors[@armor2_id]
armor3 = $data_armors[@armor3_id]
armor4 = $data_armors[@armor4_id]
n += weapon.gold_plus if weapon != nil
n += armor1.gold_plus if armor1 != nil
n += armor2.gold_plus if armor2 != nil
n += armor3.gold_plus if armor3 != nil
n += armor4.gold_plus if armor4 != nil
return n
end
def exp_plus
n = 0
weapon = $data_weapons[@weapon_id]
armor1 = $data_armors[@armor1_id]
armor2 = $data_armors[@armor2_id]
armor3 = $data_armors[@armor3_id]
armor4 = $data_armors[@armor4_id]
n += weapon.exp_plus if weapon != nil
n += armor1.exp_plus if armor1 != nil
n += armor2.exp_plus if armor2 != nil
n += armor3.exp_plus if armor3 != nil
n += armor4.exp_plus if armor4 != nil
return n
end
end
if BlizzABS::VERSION < 2.51
raise "Blizz ABS Version isnt high enough. Now Closing."
end
class BlizzABS::Processor
def gold_result(enemy)
if enemy.gold != 0
gold = enemy.gold
if $tons_version != nil
if $tons_version >= 6.4 && TONS_OF_ADDONS::DIFFICULTY
gold = gold * $game_system.gold_rate / 100
end
if $tons_version >= 6.5 && $game_system.PASSIVE_SKILLS
$game_party.actors.each {|actor| gold *= actor.gold_rate}
gold = gold.to_i
end
end
goldpercent = 0
goldpercent += $game_party.actors[0].gold_plus if $game_party.actors[0] != nil
goldpercent += $game_party.actors[0].gold_plus if $game_party.actors[1] != nil
goldpercent += $game_party.actors[0].gold_plus if $game_party.actors[2] != nil
goldpercent += $game_party.actors[0].gold_plus if $game_party.actors[3] != nil
val = gold
val *= goldpercent
val = val / 100
gold += val
return gold
end
return 0
end
def exp_result(enemy)
if enemy.exp != 0
exp = enemy.exp
if $tons_version != nil
if $tons_version >= 6.4 && TONS_OF_ADDONS::DIFFICULTY
exp = exp * $game_system.exp_rate / 100
end
if $tons_version >= 6.5 && $game_system.PASSIVE_SKILLS
$game_party.actors.each {|actor| exp *= actor.exp_rate}
exp = exp.to_i
end
end
exppercent = 0
exppercent += $game_party.actors[0].exp_plus if $game_party.actors[0] != nil
exppercent += $game_party.actors[0].exp_plus if $game_party.actors[1] != nil
exppercent += $game_party.actors[0].exp_plus if $game_party.actors[2] != nil
exppercent += $game_party.actors[0].exp_plus if $game_party.actors[3] != nil
val = exp
val *= exppercent
val = val / 100
exp += val
($BlizzABS.actors + $BlizzABS.pets).each {|b|
b.battler.exp += exp if b.valid? && !b.battler.cant_get_exp?}
end
return exp
end
end
InstructionsIn the script.
CompatibilityNot tested with SDK. Should work with most things.
Compatible with Blizz ABS now I released teh plugin.
Not tested with Side View Animated Battle System
Credits and Thanks
Author's NotesEnjoy!