DT's Experience on hit
Version: 1.0.0
Author: DoctorTodd
Date: 4/27/2012
Version History
- Version 1.0.0 2012/26/22 - Original Release
Planned Future Versions
- None planned, you tell me.
Description
Gives the player experience when he/she hits the enemy rather than at the end regardless of hits.
Features
Screenshots
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fdesmond.imageshack.us%2FHimg843%2Fscaled.php%3Fserver%3D843%26amp%3Bfilename%3Dcaptureuk.png%26amp%3Bres%3Dlanding&hash=695b9a25f3d6000933f2684f8271f923e72db98f)
Instructions
Paste above main.
Script
#===============================================================================
#
# DT's Experience on hit
# Author: DoctorTodd
# Date (04/27/2012)
# Version: (1.0.0) (VXA)
# Level: (Simple)
# Email: Todd@beacongames.com
#
#===============================================================================
#
# NOTES: 1)This script will only work with ace.
#
#===============================================================================
#
# Description: Gives the player experience when he/she hits the enemy rather
# than at the end regardless of hits.
#
# Credits: Me (DoctorTodd)
#
#===============================================================================
#
# Instructions
# Paste above main.
#
#===============================================================================
#
# Contact me for commercial use, other wise just credit me and don't repost
# without my permission.
#
#===============================================================================
#
# Editing begins 38 and ends on 39.
#
#===============================================================================
module DTEOH
#Show message when experience is gained?
SMWEG = true
end
#==============================================================================
# ** Game_ActionResult
#------------------------------------------------------------------------------
# This class handles the results of battle actions. It is used internally for
# the Game_Battler class.
#==============================================================================
include DTEOH
class Game_ActionResult
#--------------------------------------------------------------------------
# * Create Damage
#--------------------------------------------------------------------------
def make_damage(value, item)
@critical = false if value == 0
@hp_damage = value if item.damage.to_hp?
@mp_damage = value if item.damage.to_mp?
@mp_damage = [@battler.mp, @mp_damage].min
@hp_drain = @hp_damage if item.damage.drain?
@mp_drain = @mp_damage if item.damage.drain?
@hp_drain = [@battler.hp, @hp_drain].min
@success = true if item.damage.to_hp? || @mp_damage != 0
gain_exp
end
end
#--------------------------------------------------------------------------
# * EXP Acquisition and Level Up Display
#--------------------------------------------------------------------------
def gain_exp
$game_party.all_members.each do |actor|
actor.gain_exp($game_troop.exp_total)
end
display_exp if DTEOH::SMWEG
end
#--------------------------------------------------------------------------
# * Display EXP Earned
#--------------------------------------------------------------------------
def display_exp
if $game_troop.exp_total > 0
text = sprintf(Vocab::ObtainExp, $game_troop.exp_total)
$game_message.add('\.' + text)
end
end
#==============================================================================
# ** BattleManager
#------------------------------------------------------------------------------
# This module manages battle progress.
#==============================================================================
module BattleManager
#--------------------------------------------------------------------------
# * Display EXP Earned
#--------------------------------------------------------------------------
def self.display_exp
nil
end
end
Credit
Thanks
- Thanks to Fable 2 for the idea.
Support
Post here for quickest support, or send an email to Todd@beacongames.com.
Known Compatibility Issues
None known of.
Demo
Download (http://www.filefactory.com/file/69ryngq8pz39/n/EXP_on_hit.exe)
Author's Notes
I have been thinking about Fable 2 recently so I decided to write this.
Restrictions
Check the header of the script.