zSprawl

Villager
Member
Joined
Aug 8, 2013
Messages
13
Reaction score
3
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)
I changed the one line to initialize the window offscreen the first time.

def initialize

    super(-1 * YES::DASH::WINDOW_WIDTH, Graphics.height - 74, YES::DASH::WINDOW_WIDTH, 50)
 

ShadowFox

Adventurer
Member
Joined
Mar 13, 2012
Messages
255
Reaction score
10
First Language
English
Primarily Uses
I finally got it test it then. It seems to have worked.
 

rogeronfire

Warper
Member
Joined
Aug 28, 2013
Messages
1
Reaction score
0
First Language
English
Primarily Uses
Hi, I need some help in removing the window borders and just leaving the green stamina bar + text. Anyone here knows how? 

Any help will be appreciated. 
 

Ewaldar

Villager
Member
Joined
Sep 25, 2013
Messages
27
Reaction score
3
First Language
French
Primarily Uses
Hello,

I have the same request as rogeronfire, I'm looking for a possibility to hide the Window, but not the texts and the bar.

Is it possible ? I think, but I can't ;)

Thanks in advance
 

Dr.Yami

。◕‿◕。
Developer
Joined
Mar 5, 2012
Messages
1,004
Reaction score
763
First Language
Vietnamese
Primarily Uses
Other
put self.opacity = 0 after line @time = $game_player.stamina_backup[:time]
 

Ewaldar

Villager
Member
Joined
Sep 25, 2013
Messages
27
Reaction score
3
First Language
French
Primarily Uses
Thanks, it works !

EDIT : I have an other question : When you walk, the stamina restores really slowly and I'd like to have the same restore speed as not doing anything (like in the Elder Scrolls, if you know).

When you wait or walk the stamina restore same way, and when you run, you loose stamina (already done).

Thanks in advance
 
Last edited by a moderator:

DoNgocNhan

Villager
Member
Joined
Nov 24, 2013
Messages
7
Reaction score
13
First Language
Vietnamese
Primarily Uses
Hello Yami! How I can move it x, y ?
 

Poochinski

Warper
Member
Joined
Dec 2, 2013
Messages
1
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.
I'm curious about this too, as I am using the Pearl also. Could this be possible with your script? 
 

pErijoy

A Sylvan Deity~
Member
Joined
Jul 1, 2013
Messages
7
Reaction score
3
First Language
English
Primarily Uses
Hello!

Awesome script, I've been searching for a script like this for a while now.  :)

By the way would you consider adding 2 variables for the stamina?

For example 1 variable controls current stamina whilst the 2nd variable controls the maximum stamina.

In this case you've already created the 2nd variable in the script, you just need the 1st variable to control maximum variable.

This would be set up like this Current stamina /maximum Stamina E.g 40/40 Stamina.

So in an event it would be -10 variable from stamina if I trigger a certain event leaving 30/40 stamina.

Thanks and please consider this script, this would be so helpful and is quite a vital feature in my game.  ;)   :)
 
Last edited by a moderator:

SilhouetteNoir

Villager
Member
Joined
Sep 22, 2012
Messages
15
Reaction score
2
First Language
English
Primarily Uses
Hello Yami! How I can move it x, y ?
You have to change lines 288:

    Line 288: draw_stamina_bar(x, y, YES::DASH::WINDOW_WIDTH - 24)

Note. The values have to match. For example:     LIne 288: draw_stamina_bar(-6, -6, YES::DASH::WINDOW_WIDTH - 24)
 

SilhouetteNoir

Villager
Member
Joined
Sep 22, 2012
Messages
15
Reaction score
2
First Language
English
Primarily Uses
You have to change lines 288:

    Line 288: draw_stamina_bar(x, y, YES::DASH::WINDOW_WIDTH - 24)

Note. The values have to match. For example:     LIne 288: draw_stamina_bar(-6, -6, YES::DASH::WINDOW_WIDTH - 24)
Be careful. They seem to go out of the border and get chopped off depending where you move it. I don't know how to fix that???
 

Nouin

Villager
Member
Joined
Feb 11, 2014
Messages
13
Reaction score
4
First Language
English
Primarily Uses
This script doesn't work with "Yanfly Engine Ace - Ace Core Engine v1.09"
 
Last edited by a moderator:

Optimized

Villager
Member
Joined
Feb 1, 2014
Messages
13
Reaction score
1
First Language
english
Primarily Uses
Hello yami, first of all love your scripts!! I have a minor issue with stamina when I begin my game with an intro the stamina bar is displayed for 1/2 a second before I can disable it via switch(very first action) not a huge deal just wondering if I can somehow hide it at all, either way great script and thanks
 

Ewaldar

Villager
Member
Joined
Sep 25, 2013
Messages
27
Reaction score
3
First Language
French
Primarily Uses
Hi Yami,

I'm using some of your scripts, and I'd like to thank you for created them ! I now have just one request : is it possible or just tell me how to do it, to make the stamina recover even when you move ? When you don't move, you change the value and this is great, but when you move (even if you don't run) the stamina just recover 1 by 1.

Thanks in advance
 

Zoltor

Regular
Regular
Joined
Jan 18, 2014
Messages
1,550
Reaction score
212
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 [IMG]http://forums.rpgmakerweb.com/public/style_emoticons/default/tongue.png[/IMG]
lmao exactly what I was thinking. I hate the concept of enemies on the map, but atleast this would create limitations/tactics to trying to avoid enemies.
 

eydie666

Villager
Member
Joined
May 1, 2014
Messages
7
Reaction score
0
First Language
English
Primarily Uses
Is there a way I can make a common event check if the stamina is equal to zero? 

I tried 

Conditional Branch: Script: if @stamina <= 0

to make the character wait for 40 frames and rest.

Note: I have no idea about scripting.
 
Last edited by a moderator:

Evgenij

Regular
Regular
Joined
Aug 28, 2013
Messages
349
Reaction score
101
First Language
German
Primarily Uses
N/A
@eydie66

Could you post the script? Its down
 

Evgenij

Regular
Regular
Joined
Aug 28, 2013
Messages
349
Reaction score
101
First Language
German
Primarily Uses
N/A
Try $game_player.stamina <= 0
 

Latest Threads

Latest Profile Posts

An optimal price for an indie game on Steam also needs to be accompanied by an optimal sales discount %. For a solo indie game, I think the optimal price is where it should be low enough that a single Steam card can be used to buy it, after tax. A few cents the wrong direction can potentially mean someone who was gifted a Steam card can't buy the game, then picks something else to buy.
I've been so lazy about doing art but I finally decided to buckle down and get some work done on the party!

aa312ffbcd667933.png

3d554012e96e4526.png
SallyFaceTest.png
Testing the first face in battle!

Forum statistics

Threads
134,684
Messages
1,249,706
Members
177,422
Latest member
Moodesburn1977
Top