09-08-2011, 04:32 AM
PATCHES
A few patches that can be used with the ABS...
PK8's Title Skip 2
Code:
#============================================================================
# * Scene Title
#============================================================================
class Scene_Title
#--------------------------------------------------------------------------
alias mrmo_abs_punk_makeobject punk_makeobject
#--------------------------------------------------------------------------
# * Command: New Game
#--------------------------------------------------------------------------
def punk_makeobject
# Make Global Objects
$ABS = MrMo_ABS.new
$game_companions = []
# Change Animation Size
for an in $data_animations
next if an == nil
frames = an.frames
for i in 0...frames.size
for j in 0...frames[i].cell_max
frames[i].cell_data[j, 1] /= $ABS.ANIMATION_DIVIDE
frames[i].cell_data[j, 2] /= $ABS.ANIMATION_DIVIDE
frames[i].cell_data[j, 3] /= $ABS.ANIMATION_DIVIDE
end
end
end
# Perform the original call
mrmo_abs_punk_makeobject
$game_companions = [] if $game_companions.nil?
# Set companion position
for companion in $game_companions
next if companion == nil
companion.moveto($data_system.start_x, $data_system.start_y)
companion.move_random
companion.map_id = $game_map.map_id
end
end
end
Multi-Patch 1 - Bestiary & Passive Skills
Code:
#==============================================================================
# ** MrMo's ABS Ultimate - Multi Patch Script #1
# Momomo's Demon Picturebook and Passive Skills DVV
#------------------------------------------------------------------------------
# by DerVVulfman
# version 1.0
# 09-07-2011
# RGSS / RPGMaker XP
#------------------------------------------------------------------------------
# Place Momomo's Demon Picture Book (aka the Bestiary) and/or DerVVulfman's
# Passive Skills script above MrMo's ABS Ultimate, and then place this
# script below all three.
#
# Use two values below as on/off switches as described.
# One value is used to hide enemies from view in the bestiary.
#==============================================================================
BESTIARY_SKIP = [1] # IDs of enemies never visible in the Bestiary
BESTIARY_PATCH = true # If true, the bestiary system is turned on
PASSIVE_PATCH = true # If true, the passive effects system is turned on.
#==============================================================================
# ** MrMo's ABS
#------------------------------------------------------------------------------
# This class performs action battle field map processing.
#==============================================================================
class MrMo_ABS
#--------------------------------------------------------------------------
# * Treasure(Enemy)
#--------------------------------------------------------------------------
if BESTIARY_PATCH == true
alias momomo_treasure treasure
def treasure(enemy)
# Add Enemy Encounter Information
unless BESTIARY_SKIP.include?(enemy.id)
$game_party.add_enemy_info(enemy.id, 0) unless enemy.hidden
end
# the original call
momomo_treasure(enemy)
end
end
#--------------------------------------------------------------------------
# * Treasure Level and Experience
# actor : actor
# exp : experience points
#--------------------------------------------------------------------------
if PASSIVE_PATCH == true
def treasure_level(actor, exp)
return if actor.cant_get_exp? == true
last_level = actor.level
new_exp = exp
# Experience Rate (100%)
exp_rate = 100
# Cycle through the actors and use the new 'passive exp rate'
$game_party.actors.each {|act| exp_rate *= act.passive_exp_rate}
actor.exp += (new_exp * exp_rate / 100).to_i
if actor.level > last_level
if MrMoABS::HEAL_ON_LEVEL
actor.hp = actor.maxhp
actor.sp = actor.maxsp
end
#Show LEvel Up if need to
actor.damage = MrMoABS::DMG_TXT_LEVEL if MrMoABS::DISPLAY_LEVELUP
Audio.me_play("Audio/ME/" + MrMoABS::LEVELUP_MUSIC.to_s, 100, 100) if MrMoABS::LEVELUP_MUSIC != ""
end
end
end
end
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
Above are clickable links