Yanfly scripts - Custom system settings.

Dark_Metamorphosis

What a horrible night to have a curse.
Veteran
Joined
Nov 23, 2012
Messages
2,192
Reaction score
382
First Language
Swedish
Primarily Uses
Hi ladies and gents!

So, I have some questions regarding some of Yanfly's scripts. I will put a link to all the scripts further down below in case you need reference.

I need some help regarding if It's possible to call some script calls in order to change the functions of various settings outside the script.

The thing is that I'm a bit split with how I want my battle screen to flow. If I change it to one setting I feel like It's a bit too slow, and if I change it to a faster setting I feel like newbies to the game will have a hard time keeping track of things. So what I want to do is to combine them both, and set a preference depending on the player's choice.

First of, I will add a snippet of the first script that I want this to work with: 

Yanfly Core Engine

Link to script

    #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

    # - Adjust Animation Speed -

    #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

    # By default, the animation speed played in battles operates at 15 FPS

    # (frames per second). For those who would like to speed it up, change this

    # constant to one of these values:

    #   RATE   Speed

    #     4      15 fps

    #     3      20 fps

    #     2      30 fps

    #     1      60 fps

    #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

    ANIMATION_RATE = 2
As you can see, this will change the speed of the animations.

Yanfly Battle Engine:

Link to script



    #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

    # - General Battle Settings -

    #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

    # These settings are adjusted for the overall battle system. These are

    # various miscellaneous options to adjust. Each of the settings below will

    # explain what they do. Change default enemy battle animations here, too.

    #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

    BLINK_EFFECTS      = false  # Blink sprite when damaged?

    FLASH_WHITE_EFFECT = true   # Flash enemy white when it starts an attack.

    SCREEN_SHAKE       = false  # Shake screen in battle?

    SKIP_PARTY_COMMAND = true   # Skips the Fight/Escape menu.

    AUTO_FAST          = false   # Causes message windows to not wait.

    ENEMY_ATK_ANI      = 36     # Sets default attack animation for enemies.



 

This will change the skill window to not wait for the animation.

 

 

Now this is where the thing I have in mind comes to place:

 

Yanfly system options:

Link to script:


    CUSTOM_VARIABLES ={

    # -------------------------------------------------------------------------

    # :variable   => [switch, Name, Colour1, Colour2, Min, Max,

    #                 Help Window Description

    #                ], # Do not remove this.

    # -------------------------------------------------------------------------

      :variable_1 => [ 1, "Custom Variable 1", 9, 1, -100, 100,

                      "Help description used for custom variable 1."],

 

-

 



 

With this you can set your own variables to be part of the system options screen, and I want to see if there's a way to set the previous options I listed above into this system options screen.

 

For example; Have a variable set 1-3 that will change the animation speed from Slow - Default - Fast (15fps, 30fps, 60fps) with script calls.

 

Or use a switch ON and OFF that will change the Auto fast to off and on.

 

Would something like this be possible, and if so can you lead me in the right direction?

 

It would solve a lot for me since It would benefit new players - Be able to read what some of the enemies skills do. And Seasoned players (or people that wants to finish battles quicker) with a faster animation rate and a skill message window that doesn't wait for the skill.

 

I hope this is possible, and I hope It's not too much work for anyone that might be able to help me with this.

 

Thanks!

 

Best Regards!

~Dark.
 
Last edited by a moderator:

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
Get Yanfly's system menu script. It pretty much does what you want as they can change the animation speed in that.
 

Dark_Metamorphosis

What a horrible night to have a curse.
Veteran
Joined
Nov 23, 2012
Messages
2,192
Reaction score
382
First Language
Swedish
Primarily Uses
Get Yanfly's system menu script. It pretty much does what you want as they can change the animation speed in that.
Well I am using the System options script. But there's no way by default to change the animation speed (Only remove the animations all together).
 

FeaR616

Veteran
Veteran
Joined
Nov 22, 2014
Messages
277
Reaction score
52
First Language
german
Primarily Uses
sure it is possible. 

the values you want to change are within modules, this makes very easy access from everywhere you want! you can change them in script calls like this: YEA::CORE::ANIMATION_SPPED = X

for ON / OFF options in the system menu script, I made it, that the "custom switch" leads to common events in within the common event I change the values.

hope this guides you into the right direction. =)
 

Dark_Metamorphosis

What a horrible night to have a curse.
Veteran
Joined
Nov 23, 2012
Messages
2,192
Reaction score
382
First Language
Swedish
Primarily Uses
sure it is possible. 

the values you want to change are within modules, this makes very easy access from everywhere you want! you can change them in script calls like this: YEA::CORE::ANIMATION_SPPED = X

for ON / OFF options in the system menu script, I made it, that the "custom switch" leads to common events in within the common event I change the values.

hope this guides you into the right direction. =)
Not really no, I have tried to put it in now but I'm not sure how I will be able to change the script calls around when adding a new value to the min-max in the system options. Do I need to set this up in a common event?
 

FeaR616

Veteran
Veteran
Joined
Nov 22, 2014
Messages
277
Reaction score
52
First Language
german
Primarily Uses
okay, for system menu options with switches, like ON and OFF settings, you add in the script something like this

:switch_autosave => [ 12, "Autosave", "OFF", "ON", "Turn ON or OFF the Autosave Feature." ],12 is the switch ID I use, to turn this switch ON and OFF. now I have a common event that runs parallel and have a conditional branch which checks, if switch 12 is ON or OFF.

if it is ON, I made a script call which assigns a true to my value, in your case YEA::BATTLE::AUTO_FAST = true.

if the switch is OFF, make a script call  to turn it off: YEA::BATLLE::AUTO_FAST = false

with the variables it is the same thing. 

:variable_animSpeed => [ X, "Animation Speed", 10, 2, 1, 3, "Changes animation speed to 60, 30 or 20 FPS." ],in common event you can check what value the variable with ID X and change the animation speed.

the easiest way would be a short script call I think..

case $game_variables[X]when 1 YEA::CORE::ANIMATION_SPEED = 1 # 60FPSwhen 2 YEA::CORE::ANIMATION_SPEED = 2 # 30FPSwhen 3 YEA::CORE::ANIMATION_SPEED = 3 # 20FPSendthis should work, if not, let me know! =)
 

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

Latest Threads

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,854
Messages
1,016,998
Members
137,562
Latest member
tamedeathman
Top