Nicke 150 Posted October 7, 2013 (edited) XS - Stamina System Version 1.0c IntroductionThis script will add a Stamina System to the game. It will effect how long the player can dash around the map.Features Control the stamina easily with built in methods or with variables. An HUD that will show the stamina values to the player. (Fade effect) Custom pictures for the gauge. Items can also effect the stamina. You can make a potion that will permanently increase max stamina etc. Both the system and the HUD can be enabled/disabled by a switch ingame. And more! Screenshots How to UseInstructions how to use it can be find inside the script.To install this script, open up your script editor and copy/paste this script to an open slot below Materials but above Main. Remember to save.ScriptGet the script here. Put these above: Core Script and the Numeric Class. Optional: Download example pictures for the HUD. Need to be located in "Graphics/Picture" folder.UpdatesReleased 1.0c: Fixed a bug where the window/pictures would sometimes create itself more then once which would cause lag. And more minor bug fixes. CreditDo credit me, Nicke, if you are planing on using this script. Thanks.Can be use in a commercial project. Edited May 9, 2014 by Nicke 2 JiM and Mogtillo reacted to this Share this post Link to post Share on other sites
Mogtillo 3 Posted October 7, 2013 Pretty nice script. Share this post Link to post Share on other sites
+ Kizami 3 Posted October 8, 2013 Yayyyy, I was waiting for an script like this; best of all, it is greatly customizable. Thank you Nicke, another great script! Share this post Link to post Share on other sites
Nicke 150 Posted October 8, 2013 Thanks! I forgot to add the example images which can be downloaded if needed now. Share this post Link to post Share on other sites
Venka 0 Posted October 8, 2013 Small heads up: Your VARS constant isn't linked to the script, the script calles var1 and 2 for info Share this post Link to post Share on other sites
Nicke 150 Posted October 9, 2013 Thanks, released 1.0a now which fixes a few minor things. Share this post Link to post Share on other sites
Nicke 150 Posted October 11, 2013 Released 1.0b! See details in the first post. Share this post Link to post Share on other sites
Nicke 150 Posted October 15, 2013 Grab the script again if you wish, I have fixed a bug in battle. Share this post Link to post Share on other sites
scu11y3000 0 Posted December 18, 2013 I'm confused on how to turn this on. I've set it to where it shows in the bottom right corner in the settings but it doesn't show up. Share this post Link to post Share on other sites
Nicke 150 Posted December 20, 2013 (edited) Did you enabled the switches as instructed in the script? ID 10 and 11. Edited December 20, 2013 by Nicke Share this post Link to post Share on other sites
Perijoy 4 Posted December 24, 2013 I've only recently found out about your scripts but they are AMAZING , you seem to have everything I need already scripted out. Anyways to the question, is there a way to make this script rely only on variables and disable the dash part of the script? Well done and keep up the awesome work . Share this post Link to post Share on other sites
Chaos17 31 Posted January 3, 2014 Hi, It seems I've a compatibility problem with your script and Moghunter weather script. Here's the bug report : This is the "bugged" line : @stamina = (@stamina + value).clamp(0, @max_stamina) if operator == :add Here're the scripts : MOG_Weather_EX : http://pastebin.com/MhrGe9MB Share this post Link to post Share on other sites
Nicke 150 Posted May 9, 2014 Hello, pretty old post but I've released 1.0c now which fixes a major bug. Share this post Link to post Share on other sites
Warinabottle 0 Posted May 21, 2014 (edited) I seem to run into an error whenever I attack or guard in battle when using this script. Script 'XS - Stamina System' line 220: NoMethodError occurred. undefined method `stamina' for #<RPG::Skill:0x7dfe6a0> Sorry if it's a rookie error, I'm rather new to this whole thing. Anyways, when I removed these lines 207 - 224 of the script, I no longer got that error. And I'm just using it for the run energy, however it's nice to have options and I don't know the consequences of removing those lines of script. Any help would be appreciated if you can. Edited May 21, 2014 by Warinabottle Share this post Link to post Share on other sites
flimbo 1 Posted July 19, 2014 I seem to run into an error whenever I attack or guard in battle when using this script. Script 'XS - Stamina System' line 220: NoMethodError occurred. undefined method `stamina' for #<RPG::Skill:0x7dfe6a0> Sorry if it's a rookie error, I'm rather new to this whole thing. Anyways, when I removed these lines 207 - 224 of the script, I no longer got that error. And I'm just using it for the run energy, however it's nice to have options and I don't know the consequences of removing those lines of script. Any help would be appreciated if you can. I had the same issue, and *hopefully* fixed it by adding , after this code... class RPG::Item < RPG::UsableItem def stamina # // Method to add stamina attribute for items. @note.scan(/<(?:STAMINA|stamina):\s(\d+)>/i) return ($1.to_i > 0 ? $1.to_i : 0) end def max_stamina # // Method to add max stamina attribute for items. @note.scan(/<(?:MAX_STAMINA|max_stamina):\s(\d+)>/i) return ($1.to_i > 0 ? $1.to_i : 0) end end ...This code: class RPG::Skill < RPG::UsableItem def stamina # // Method to add stamina attribute for items. @note.scan(/<(?:STAMINA|stamina):\s(\d+)>/i) return ($1.to_i > 0 ? $1.to_i : 0) end def max_stamina # // Method to add max stamina attribute for items. @note.scan(/<(?:MAX_STAMINA|max_stamina):\s(\d+)>/i) return ($1.to_i > 0 ? $1.to_i : 0) end end I suppose this code is to notetag itens/skills to increase stamina on use. I'm an absolute beginner on RGSS3, so use this with extreme care 1 Chaosian reacted to this Share this post Link to post Share on other sites