How to call/change the value of actor parameters in RGSS3

MusicTF

Soundtrack Composer
Veteran
Joined
Mar 30, 2015
Messages
102
Reaction score
8
First Language
English
Primarily Uses
What variables are the parameters for each actor stored in, and how would one change them in the script editor? I am familiar with ruby syntax and all that, I just can't find how to call the actor parameters 
 

newbword

Villager
Member
Joined
Dec 23, 2015
Messages
7
Reaction score
0
First Language
Indonesian
Primarily Uses
RMMV
Correct me if I'm wrong. You can call the actor parameters by creating a method that calls them like:

#--------------------------------------------------------------------------# * Access Method by Parameter Abbreviations#--------------------------------------------------------------------------def mhp; param(0); end # MHP Maximum Hit Pointsdef mmp; param(1); end # MMP Maximum Magic Pointsdef atk; param(2); end # ATK ATtacK powerdef def; param(3); end # DEF DEFense powerdef mat; param(4); end # MAT Magic ATtack powerdef mdf; param(5); end # MDF Magic DeFense powerdef agi; param(6); end # AGI AGIlitydef luk; param(7); end # LUK LUcKdef hit; xparam(0); end # HIT HIT ratedef eva; xparam(1); end # EVA EVAsion ratedef cri; xparam(2); end # CRI CRItical ratedef cev; xparam(3); end # CEV Critical EVasion ratedef mev; xparam(4); end # MEV Magic EVasion ratedef mrf; xparam(5); end # MRF Magic ReFlection ratedef cnt; xparam(6); end # CNT CouNTer attack ratedef hrg; xparam(7); end # HRG Hp ReGeneration ratedef mrg; xparam(8); end # MRG Mp ReGeneration ratedef trg; xparam(9); end # TRG Tp ReGeneration ratedef tgr; sparam(0); end # TGR TarGet Ratedef grd; sparam(1); end # GRD GuaRD effect ratedef rec; sparam(2); end # REC RECovery effect ratedef pha; sparam(3); end # PHA PHArmacologydef mcr; sparam(4); end # MCR Mp Cost Ratedef tcr; sparam(5); end # TCR Tp Charge Ratedef pdr; sparam(6); end # PDR Physical Damage Ratedef mdr; sparam(7); end # MDR Magical Damage Ratedef fdr; sparam(8); end # FDR Floor Damage Ratedef exr; sparam(9); end # EXR EXperience Rate as listed inside class Game_BattlerBase, or try the call methods in Vocab section:

# Parametersdef self.param(param_id)$data_system.terms.params[param_id]end Though it may be limited(?) to param(0) to param(7). I'm not so sure, but you can test and try.

Changing them in the script editor is by creating a new def method

Code:
def name_of_method(value)self.param(0) += value#or#$data_system.terms.params[0] += valueend
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:
attack on titan final season is airing tomorrow, I'm excited and scared at the same time!

Forum statistics

Threads
105,882
Messages
1,017,230
Members
137,607
Latest member
Maddo
Top