Dash Stamina

● ARCHIVED · READ-ONLY
Started by Dr.Yami 20 posts View original ↗
  1. Dash Stamina


    Introduction

    This script provides stamina feature for dashing on map. Dashing will comsume stamina and be disable if run our of stamina.

    Features

    - Provides Stamina.

    - A small window shows stamina.

    Screenshots

    Spoiler
    kz2Gp.png
    Download & Manual

    Get them here

    Credit

    Yami
  2. Seems like a nice addition. You should implement potions (items) that will increase/decrease stamina and maybe the stamina will affect the party in battle? Just a suggestion. :)
  3. I see you added a disable switch in there - very good idea, Yami :)

    I recommend anyone who uses this to let players run as much as they want in towns/safe areas to not cause unnecessary frustration!
  4. This could work well for on-screen enemy encounters that are faster than the actor's normal speed as well. Want to run from a big scary dragon? Well now you can wi- Oh you just ran out of stamina... Well err, good luck fighting that dragon :p
  5. Stamina doesn't update if the player is holding down the dash key but not moving -- that seems counter-intuitive to me, since the player should theoretically be resting if they aren't moving regardless of the state of the dash button. Other than that, this seems very nice, though.
  6. Thats awesome. I like limiting the amount the player can dash.
  7. I don't know very much about scripting, but it is generally possible to bind numbers like the stamina in this script to variables? That way, the player could do all kinds of things to change stamina. For example, I was immediately reminded of Skyward Sword, where you also have a stamina bar. It's used not only for running, but also for climbing faster and various other things that are exhausting, and you could restore your stamina by collecting certain items on your way. All these things were easily doable with stamina being controlled by a variable. :)
  8. Awesome script.

    2 questions though.

    How would I disable or permanently the window that says how much stamina you have and is there a way to have the stamina increase when the character levels up?
  9. Yeah updated.

    Added recovery frames. Added stamina variable. Fixed recover problem when holding dash key.
  10. Still wondering how I can work the variable to increase with each level for this script.

    Also thanks

    Edit:

    I noticed something, the enable window part of the script does not work.
  11. ShadowFox said:
    Still wondering how I can work the variable to increase with each level for this script.

    Also thanks

    Edit:

    I noticed something, the enable window part of the script does not work.
    Okay fixed :D .
  12. Just wondering if this idea I have for this script is possible or not.

    At the beginning of my game (After the tutorial levels), the player is asked several questions.

    Depending on the answers (Which are multiple choice) the player will be able to have specific things happen within the game. (EG loose job experience or keep Job Experience)

    I have started doing the same type of thing with the stamina, although I have not fully written out the options the player has to choose from within the game but I have jotted them down on a text file for my game.

    Here are the options:

    Option 1 is to have the stamina stay as it is.

    Option 2 is to have the stamina increase at a random number (say between 5 and 55) each time the character levels up

    Option 3 is to have the stamina link with the characters agility stat

    Option 4 is to have the stamina both link with the character's agility stat as well as increase a random number (say between 5 and 55) each time the character levels up
  13. You could do that with variables and stats, maybe. Is there any chance to run a common event when leveling-up where you can modify variables and update the dash variable accordingly?
  14. How do i recall it for conditional branch? for example:

    if I was pushing button X the stamina goes down until i stop pressing the button... i know its set to when it dash then stamina drops but i was wondering the script call code to where I can control the stamina to go down if conditional branch is true.
  15. I'm having an issue with this. I've fixed it, but consider adding this to your system.

    When I hide/disable the dash bar using the Switch, then re-enable it, it doesn't show the window until I enter and exit another scene, such as scene menu or scene save.

    This can be a big problem when trying to enable and disable the bar to keep it from becoming intrusive.

    To fix this, I change Window_Stamina's method

    def update

    and find the line

       self.hide if !$game_switches[YES::DASH::DISABLE_SWITCH]

    and replace it with:


        !$game_switches[YES::DASH::DISABLE_SWITCH] ? self.hide : self.show

    Also how about implementing something like this:

      #--------------------------------------------------------------------------  # new method: adjust stamina  #--------------------------------------------------------------------------  def adj_stamina(value)    @stamina += value  end
    Though, if it was my UI I'd make adjusting that variable a lot easier and accessible for non-scripters.
  16. Updated new version. Added recovery method and rest area feature.
  17. Is there a way to use this as a skill cost? For instance, I am using an ABS right now, specifically Falcao Pearl, and I would like to only have one skill cost, energy, which is consumed by every action, including running. This stamina system would obviously be perfect for it.
  18. Now if only someone could make it so that after running x amount of steps with stamina you get a permanent increase. This of course would be in small amounts that over time increase in size.
  19. Allmyfault said:
    Now if only someone could make it so that after running x amount of steps with stamina you get a permanent increase. This of course would be in small amounts that over time increase in size.
    so stamina levels? sounds awesome to me.
  20. Need some help.

    I have set the script to disable the stamina bar, BUT when I load up the main menu and quit it, the stamina window appears for a split second before vanishing.

    How do I make it so that the stamina window is either IN the main menu OR not showing at all?

    (With a number switch (or a true/false option) to control which option it is)