Game Development Reference
In-Depth Information
#--------------------------------------------------------------------------
# * Access Method by Parameter Abbreviations
#--------------------------------------------------------------------------
def mhp; param(0); end # MHP Maximum Hit Points
def mmp; param(1); end # MMP Maximum Magic Points
def atk; param(2); end # ATK ATtacK power
def def; param(3); end # DEF DEFense power
def mat; param(4); end # MAT Magic ATtack power
def mdf; param(5); end # MDF Magic DeFense power
def agi; param(6); end # AGI AGIlity
def luk; param(7); end # LUK LUcK
def hit; xparam(0); end # HIT HIT rate
def eva; xparam(1); end # EVA EVAsion rate
def cri; xparam(2); end # CRI CRItical rate
def cev; xparam(3); end # CEV Critical EVasion rate
def mev; xparam(4); end # MEV Magic EVasion rate
def mrf; xparam(5); end # MRF Magic ReFlection rate
def cnt; xparam(6); end # CNT CouNTer attack rate
def hrg; xparam(7); end # HRG Hp ReGeneration rate
def mrg; xparam(8); end # MRG Mp ReGeneration rate
def trg; xparam(9); end # TRG Tp ReGeneration rate
def tgr; sparam(0); end # TGR TarGet Rate
def grd; sparam(1); end # GRD GuaRD effect rate
def rec; sparam(2); end # REC RECovery effect rate
def pha; sparam(3); end # PHA PHArmacology
def mcr; sparam(4); end # MCR Mp Cost Rate
def tcr; sparam(5); end # TCR Tp Charge Rate
def pdr; sparam(6); end # PDR Physical Damage Rate
def mdr; sparam(7); end # MDR Magical Damage Rate
def fdr; sparam(8); end # FDR Floor Damage Rate
def exr; sparam(9); end # EXR EXperience Rate
Mind you, buffs and debuffs only apply for the first eight in the list (in other words, MHP through LUK).
So, States Work in the Same Way, Right?
Mostly. You can declare .add_state(X) , where X is the database entry for the state you wish to use. The number of
turns a state will last is determined by the state's properties in the Database. So, if we have the default list of states
(of which there are 25), we can make an attack that poisons the user and damages the enemy as follows:
a.add_state(2); a.atk*4 - b.def*2 .
It is good to note that you only really need to use the commands when you want to apply effects to both the user
and the target. If you have a healing spell that also increases AGI, you can cover that just fine with a damage formula
and the Add Buff Effect (or you could use a Recover HP effect for the healing part of the spell as well).
With all that said, let's take a peek at the States tab of the Database (Figure 3-16 ).
 
Search WWH ::




Custom Search