SP+ when Defending v1.00
Version: 1.00
Author: NAMKCOR
Date: October 26, 2007
Version History
Planned Future Versions
- open to suggestions for improvement
Description
adds SP to the actor (or possibly enemy) when they defend
Features
- easy to configure
- percent or flat rate SP gain
- set for actors only, or allow enemies as well
Screenshots
N/A
Instructions
simply configure the values as instructed and the script does the rest
Script
#=============================================================================
# SP+ when Defending v1.00
#-----------------------------------------------------------------------------
# Created By: NAMKCOR
# Created for the Websites: Chaos Project, RPG Maker Resource Kit
# (www.chaosproject.co.nr; www.rmrk.net)
# If this script is hosted on any other website, then it is stolen,
# please contact me at the address given below
# Requested by: MrMoo (RMRK)
#-----------------------------------------------------------------------------
# If you find any Bugs/Incompatability issues with this script, please contact
# me at the following e-mail address: Rockman922@aol.com, and
# please be descriptive with your e-mail subject, as I delete spam on sight.
#-----------------------------------------------------------------------------
# Function:
# allows actors (and possibly enemies) to recover SP when defending
#
# Compatability:
# most likely compatible with SDK (untested)
# no known issues at the moment
#
# Instructions to modify:
# Comments and instructions for the individual customizations will
# be given right where they are located.
# Only real skills needed are reading, typing, and copy&paste
#
# Instructions for use:
# simply change the below values
# as instructed and the script will do the rest
#
#-----------------------------------------------------------------------------
# Version History:
# 1.0 - completed system
#=============================================================================
class Scene_Battle
alias make_basic_action_result_original make_basic_action_result
def make_basic_action_result
#==========================================================================
# These values are here for you to configure :D
#-------------------------------------------------------------------------- #
# @SP_to_add = the number (or percent) of SP you want recovered when
# the actor (or possibly enemy) defends
# @is_percent = determines if @SP_to_add is a percent or not
# @actors_only = determines if enemies can heal SP when defending or not
#==========================================================================
@SP_to_add = 25
@is_percent = false
@actors_only = false
#==========================================================================
# DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING
#==========================================================================
if @active_battler.current_action.basic == 1
if @is_percent
if @actors_only
if @active_battler.is_a?(Game_Actor)
recover_sp = @active_battler.maxsp * @SP_to_add / 100
end
end
else
if @actors_only
if @active_battler.is_a?(Game_Actor)
recover_sp = @SP_to_add
end
else
recover_sp = @SP_to_add
end
end
@active_battler.damage = -recover_sp
@active_battler.sp += recover_sp
@active_battler.damage_pop = true
end
make_basic_action_result_original
end
end
Credit
Thanks
- MrMoo (requesting it )
Support
If you find any Bugs/Incompatability issues with this script, please contact me at
the following e-mail address: Rockman922@aol.com, and please be descriptive
with your e-mail subject, as I delete spam on sight.
Known Compatibility Issues
incompatble with RTAB
Author's Notes
yay for script requests
Restrictions
Created for the Websites: Chaos Project, RPG Maker Resource Kit
(
www.chaosproject.co.nr; www.rmrk.net)
If this script is hosted on any other website, then it is stolen, please contact me at either of the locations given
If you use this script in your game, please link me to the topic
I love to see what my work is used for
do NOT use this script in a commercial game unless you get my permission first