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.