dootthaloop
Member
This request should be quick and simple, I just need to know like the title says, if there is a script to regain MP over time. I searched the forums already... nothing.
#_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_
#_/ â—†Slip Damage - KGC_SlipDamageExtension â—†VX â—â€
#_/ â—‡ Last Update: 2008/03/29 â—‡
#_/ â—†Translation by Mr. Anonymous â—â€
#_/-----------------------------------------------------------------------------
#_/ This script allows you to make states with "slip damage" or continual
#_/ damage/recovery outside of battle. This effect is accompanied by a screen
#_/ flash to indictate everytime the actor recieves damage/recovery.
#_/ Recall the "Poisoned" state in Pokemon.
#_/=============================================================================
#_/ â—†Instructions For Usage â—â€
#_/ To make use of this function, you must insert the <slip> tag into the
#_/ "Notes" box located in the States section of the database.
#_/
#_/ Format: <slip [HP/MP] Modifier Rate (%), Steps>
#_/ Where HP/MP: Designate HP or MP damage/recovery.
#_/ Where Modifier: Use [ - ] or damage or [ + ] for recovery.
#_/ Where Rate: The desired amount of damage/recovery.
#_/ Where %: [Optional] You may insert % after rate for Max HP or Max MP.
#_/ Where Steps: The amount of steps it takes for the effect to kick in.
#_/
#_/ Ex: <slip HP -5%, 5>
#_/ For every 5 steps, 5 percent of the actor's max hp is lost.
#_/
#_/ Ex: <slip MP +20, 10>
#_/ For every 10 steps, 20 MP is recovered.
#_/
#_/ Ex: <slip MP -10%>
#_/ After every turn in battle, 10 percent of MP is lost.
#_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_
#==============================================================================#
# ★ Customization ★ #
#==============================================================================#
module KGC
module SlipDamageExtension
# â—†Damage Indictation Flash â—â€
# This allows you to change the color of the flash that happens when the
# actor loses or gains health due to the Slip Damage state.
DAMAGE_FLASH_COLOR = Color.new(255, 0, 0, 64)
# This allows you to change the duration (in frames) the flash remains
# on-screen.
DAMAGE_FLASH_DURATION = 4
end
end
#------------------------------------------------------------------------------#
$imported = {} if $imported == nil
$imported["SlipDamageExtension"] = true
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * #
# Unless you know what you're doing, it's best not to alter anything beyond #
# this point, as this only affects the tag used for "Notes" in database. #
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * #
# Whatever word(s) are after the separator ( | ) in the following lines are
# what are used to determine what is searched for in the "Notes" section of a
# skill to see if it is an Steal skill.
# Default Slip Damage State tag is <slip>
module KGC::SlipDamageExtension
# Regular Expression Module
module Regexp
# State Module
module State
# Slip Damage tag string
SLIP_DAMAGE = /<(?:SLIP|slip)\s*([HM]P)?\s*([\-\+]?\d+)([%ï¼…])?
(?:\s*,\s*([\-\+]?\d+))?>/ix
end
end
end
#==============================================================================
# â– RPG::State
#==============================================================================
class RPG::State
#--------------------------------------------------------------------------
# â—‹ 「スリップダメージ拡張ã€