<Ace>Yanfly's Extra parameter formula>> Using "level" in formula creation

Murd

Apprentice
Member
Joined
Jan 28, 2015
Messages
112
Reaction score
7
First Language
Thai
Primarily Uses
Have a few questions regarding the script (you can find the script here ->> https://github.com/Archeia/YEARepo/blob/master/Core/Extra_Param_Formulas.rb

1) Does the formula support using actor or self level besides mentioned params to create a formula (ATK, DEF, AGI, LUK, MAT, MDF)?

If it does, what is the correct wording to use in a formula?

2) Supposedly, 1) is possible, the formula will also affect enemy as well but they don't have level. Is there a way to create a formula that affects only actor or class?

Thank you for your help!
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Have a few questions regarding the script (you can find the script here: )
Where? If you want help with a script, include a link for it. Please don't make us spend time searching for what may or may not be the same version of the same script, when we're the ones helping you.
 

Murd

Apprentice
Member
Joined
Jan 28, 2015
Messages
112
Reaction score
7
First Language
Thai
Primarily Uses

Warpmind

Twisted Genius
Veteran
Joined
Mar 13, 2012
Messages
936
Reaction score
578
First Language
Norwegian
Primarily Uses
Best make a space before the close parenthesis in the original post - the link is broken the way it's written.
 

Another Fen

Veteran
Veteran
Joined
Jan 23, 2013
Messages
564
Reaction score
275
First Language
German
Primarily Uses
@ 1)

The formula is evaluated as plain ruby code, so you can include any valid ruby statement. The evaluation context is the battler itself, you can use  level  and  self.level  alike to access the battlers level.

@ 2)
The formulas are used for both, actors and enemies. To distinguish between those two types, you could use a formula like this:
if self.actor?

  # Formula for actors

else

  # Formula for enemies

end
 
Last edited by a moderator:

Murd

Apprentice
Member
Joined
Jan 28, 2015
Messages
112
Reaction score
7
First Language
Thai
Primarily Uses
@ 1)

The formula is evaluated as plain ruby code, so you can include any valid ruby statement. The evaluation context is the battler itself, you can use level and self.level alike to access the battlers level.

@ 2)

The formulas are used for both, actors and enemies. To distinguish between those two types, you could use a formula like this:

if self.actor?

# Formula for actors

else

# Formula for enemies

end
Thank you, it works very well. May I bother you to add a checking for class_id after check for actor to your example? My scripting knowledge is not quite good. - -"Thanks!
 
Last edited by a moderator:

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,981
Members
137,563
Latest member
cexojow
Top