Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> [Help] When run, drain SP, when not running, regen SP, when drained, disable run, However if fully drained, it no longer wants to regen :(
Taiine
post Oct 18 2010, 01:06 PM
Post #1


Level 17
Group Icon

Group: Revolutionary
Posts: 333
Type: Mapper
RM Skill: Advanced




So. I have a small issue with a Common Event that helps control running.

In my game, SP is energy, used for normal special attacks as well as running. However my running event has a little quirk.
So, you can run, and it drains the players SP, you stop or walk, and it slowly regens. If it becomes fully drained, the players run key is disabled, so you are forced to walk it until you regen enough to run again. However, once drained, the SP appears unable to regen at all.

I'm unsure what is causing it to stop regening when your SP becomes fully drained. I have the players SP set to a variable, and set so if the var is <= 3 disable running, else, enable it. I have another event in game that simply tells me what the variable is currently at (roughly telling me how much SP I have to debunk this) and yes, it does indeed go up and down as I run and stop... However, once drained, the variable becomes stuck at 3. Use a potion to restore SP? The variable is still stuck at 3.

my common event


The part highlighted in yellow is the prob. If I remove that, the players SP can be fully drained, but still regen when you stop... however with nothing to disable the running, well the system becomes rather pointless.
There is nothing in the branch telling SP to not regen once it hits 3 or below. Just to disable running key so you can't run (and that is in no way alone tied to the SP)

I tried this making the event a parallel as well as what you see, the SP just wont regen once drained, and I am boggled as to why.


__________________________

an RMXP Game utilizing Blizz-ABS


Concept Projects: DASH! The Masters Game | Finny Adventures (temp title)
My first RMXP Script: Taiine's Solo Player Custom Menu System v0.6 (UPDATED 13th of Nov 10)

Go to the top of the page
 
+Quote Post
   

Posts in this topic
- Taiine   [Help] When run, drain SP, when not running, regen SP, when drained, disable run   Oct 18 2010, 01:06 PM
- - RzrBladeMontage   Could you post a demo of this? It's easier for...   Oct 18 2010, 10:37 PM
- - LS-Sir   Heres a system for you. It drains the SP as your r...   Oct 25 2010, 01:44 AM
- - Taiine   QUOTE (LS-Sir @ Oct 25 2010, 02:44 A...   Oct 26 2010, 08:25 AM
- - LS-Sir   Just so you know - I have no idea what kind of eve...   Oct 27 2010, 04:47 AM
- - Taiine   Well, I'd recommend sticking with what is bein...   Oct 27 2010, 04:48 PM
- - LS-Sir   Ok look mate. I didn't know what system you we...   Oct 27 2010, 05:46 PM
- - RzrBladeMontage   Okay both of you can calm down now. It was just a ...   Oct 27 2010, 07:04 PM
- - Taiine   The only scripting in there is Input.press?(Input...   Oct 28 2010, 01:32 AM
- - RzrBladeMontage   What if you tried a conditional branch that checke...   Oct 28 2010, 03:25 AM
- - Taiine   That's what the whole thing should be doing. I...   Oct 28 2010, 12:52 PM
- - lilcooldude69   did u make a state for the regen to work if u look...   Oct 28 2010, 08:50 PM
- - Taiine   Ili it is very hard to understand you. The screen ...   Nov 2 2010, 06:04 AM
- - lilcooldude69   sorry bout the interpreter thing i forgot you were...   Nov 10 2010, 03:30 AM
- - Taiine   That changes nothing sadly :/ *sigh* looks like I ...   Nov 10 2010, 08:53 AM
- - lilcooldude69   can you send me the demo and i will play with, ano...   Nov 10 2010, 07:42 PM
- - Taiine   I posted a demo, check my 2nd post, and again, it...   Nov 10 2010, 08:48 PM
- - lilcooldude69   so is it okay that it regens only if your walking?...   Nov 11 2010, 03:07 AM
- - Taiine   No I wanted it so if your standing still or walkin...   Nov 11 2010, 12:44 PM
- - lilcooldude69   QUOTE (Taiine @ Nov 11 2010, 12:44 PM) No...   Nov 11 2010, 11:07 PM
- - Taiine   I'm not taking off the running part of the scr...   Nov 12 2010, 06:42 PM
- - Night_Runner   Taiine, getting fired up! I seriously don...   Nov 12 2010, 11:00 PM
- - lilcooldude69   QUOTE (Taiine @ Nov 12 2010, 06:42 PM) I...   Nov 13 2010, 01:52 AM
- - Taiine   Yep sure am Night Runner! And lilcooldude69, ...   Nov 13 2010, 05:55 PM
- - lilcooldude69   QUOTE (Taiine @ Nov 13 2010, 05:55 PM) Ye...   Nov 15 2010, 09:11 AM
- - Rukiri   Easiest way to do this. Switches: Is_Running Vari...   Nov 15 2010, 05:15 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 25th May 2013 - 07:56 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker