Dash Stamina

Dr.Yami

。◕‿◕。
Developer
Joined
Mar 5, 2012
Messages
1,003
Reaction score
757
First Language
Vietnamese
Primarily Uses
Other
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

Download & Manual

Get them here

Credit

Yami
 
Last edited by a moderator:

Nicke

Fortune seeker
Veteran
Joined
Apr 4, 2012
Messages
549
Reaction score
552
First Language
Swedish
Primarily Uses
RMMV
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. :)
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,306
Reaction score
1,575
First Language
English
Primarily Uses
RMMZ
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!
 

Chaos Avian

Abyssal Wing
Restaff
Joined
Jul 16, 2012
Messages
3,230
Reaction score
785
First Language
English
Primarily Uses
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
 

Solistra

Veteran
Veteran
Joined
Aug 15, 2012
Messages
593
Reaction score
247
Primarily Uses
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.
 

StarkinGyra

Adventurer
Member
Joined
Oct 13, 2012
Messages
219
Reaction score
9
First Language
English
Thats awesome. I like limiting the amount the player can dash.
 

Liak

Veteran
Veteran
Joined
Mar 13, 2012
Messages
1,788
Reaction score
270
First Language
German
Primarily Uses
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. :)
 

ShadowFox

Adventurer
Member
Joined
Mar 13, 2012
Messages
255
Reaction score
10
First Language
English
Primarily Uses
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?
 

Dr.Yami

。◕‿◕。
Developer
Joined
Mar 5, 2012
Messages
1,003
Reaction score
757
First Language
Vietnamese
Primarily Uses
Other
Yeah updated.

Added recovery frames. Added stamina variable. Fixed recover problem when holding dash key.
 

ShadowFox

Adventurer
Member
Joined
Mar 13, 2012
Messages
255
Reaction score
10
First Language
English
Primarily Uses
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.
 
Last edited by a moderator:

Dr.Yami

。◕‿◕。
Developer
Joined
Mar 5, 2012
Messages
1,003
Reaction score
757
First Language
Vietnamese
Primarily Uses
Other
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 .
 

ShadowFox

Adventurer
Member
Joined
Mar 13, 2012
Messages
255
Reaction score
10
First Language
English
Primarily Uses
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
 
Last edited by a moderator:

Liak

Veteran
Veteran
Joined
Mar 13, 2012
Messages
1,788
Reaction score
270
First Language
German
Primarily Uses
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?
 

Non Ya

Villager
Member
Joined
Dec 5, 2012
Messages
18
Reaction score
1
Primarily Uses
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.
 
Last edited by a moderator:

Titanhex

Do-It-All
Veteran
Joined
Jan 3, 2013
Messages
577
Reaction score
216
First Language
English
Primarily Uses
N/A
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.
 
Last edited by a moderator:

Dr.Yami

。◕‿◕。
Developer
Joined
Mar 5, 2012
Messages
1,003
Reaction score
757
First Language
Vietnamese
Primarily Uses
Other
Updated new version. Added recovery method and rest area feature.
 

heavenlysynner

Villager
Member
Joined
Feb 9, 2013
Messages
8
Reaction score
0
First Language
English
Primarily Uses
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.
 

Allmyfault

Villager
Member
Joined
Jul 22, 2012
Messages
29
Reaction score
2
First Language
English
Primarily Uses
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.
 

ShinGamix

DS Style 4Ever!
Veteran
Joined
Mar 18, 2012
Messages
3,905
Reaction score
451
First Language
April Fools
Primarily Uses
N/A
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.
 

ShadowFox

Adventurer
Member
Joined
Mar 13, 2012
Messages
255
Reaction score
10
First Language
English
Primarily Uses
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)
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,062
Members
137,575
Latest member
akekaphol101
Top