Common Events and Changing Screens

I have this planting event that triggers a common event (parallel process) that is set to wait some time and then turn the switch off. The plant type is controlled by variables, so isn't really important here. What's important is that the common event is either resetting when i leave the screen and come back, or doesn't continue running when the player leaves the map. But that was why I used a common event in the first place, so that the player could plant something and go off and do other things while they waited.

The events are more complicated than this, but the simpler version is:

-------------------------------------------------------------------------------------------------------------

Plotx Event:

Page 1

Show Choices:1,2,3,4 (plant types)

When [1](repeats with slight differences for 2,3, and 4)

  Conditional Branch [item] in inventory

     Change items [item]

     Control Variables: [plotx] = 1

     Control Switches: [plotx] = on

Page 2(repeated for plant types 2,3, and 4)

(grown plant graphic)

Event Condition Variable [Plotx] is 1 or above

Text: Picked [1]!

Change Items: [item], +2

Control Variables: [Plotx] = 0

Page n (Last)

(plant sprout graphic)

Event Condition Switch [Plotx] = on

---empty---

Common Event (Plotx):

Trigger: Parallel Process

Condition Switch: [Plotx]

(repeated for each variable possibility)

Conditional Branch: Variable [Plotx] == n

  Wait "n" frames

  Control Switches: [Plotx] = off 

-------------------------------------------------------------------------------------

Now, I'm sure there's a better way of doing it, but it seemed like this way should have worked out fine. However, when I leave the screen for a reasonable time and come back, nothing is grown. As if I've got to stay in the farming map for the plants to grow. Is this just how common events work? Because I was under the impression that common events were special in that they kept going regardless of the screen you're in. So based on that understanding, I can only assume I've set it up wrong somehow. Can someone please enlighten me?
if I recall correctly, common events restart when you leave the map. You can use some variables to keep track of how much time has passed instead of using just a big "wait".
That's a fantastic idea! Makes for more work, but I think it's worth it.

Now it's a question of how to implement that... lol Guess I better get to it.
Also, a screenshot would have been much easier to read, and much quicker to provide. Next time, please use screenshots.


How to take a Screenshot:


You've heard people say to take a screenshot, but how does one take a screenshot of their game? Simple, while the game is running, hit the Prt Scr button on your keyboard, which is located right next to your F12 key. If you're using a laptop, you might have to use the Fn key in combination with the Prt Scr key to get it to work.

Now that you've pressed the button, it's time to paste this screenshot into an image editing software. If you don't have anything fancy such as Adobe Photoshop, GIMP or Paint.NET, no worries; you can use MS Paint instead. Open up your image editing software, create a new file, and then hit ctrl+v on your keyboard, or simply right click on the screen and select paste. This should instantly paste the screenshot into your image editing software. You can go ahead and crop the image to suit your needs, or if you don't even know what that means, you can just upload it as it is.

Save the image as a PNG, or if you really need to, as a high quality JPG.


How to upload the image to the forums


Now that you have you have an image on your computer you'd like to show us, how can you get it to show up on the forums? Firstly, you need to find an image hosting site, photobucket.com or imageshack.us are popular ones. If you have another image uploading website, great - use that one! Either way, upload it to the site, and then get the direct link. Don't get the resized link, or the thumbnail link, but the direct URL. You'll know you have the direct URL if the URL ends with the file extension you saved your image in (which will hopefully be .png).



Once you have this direct URL to your image, simply use the IMG tags in your forum post and paste the URL in between them. If this image is big, please leave the image in spoiler tags.

IMG tags:
image.png
Shaz, I would have provided the screenshot but like I said the actual events were much more complex, and I didn't think the additional data was really worth trying to sort out.

Next time, I may create a mock-up event to provide a screenshot of instead. I just didn't think about it here, as it was quicker for me to just write it out. However, I concede that for people reading it, the screenshot of it would have been easier to read. My apologies.

**For anyone following this thread, I used a variable system- I created a loop which first went through all the variable plant possibilities and then looped a "wait" command of 60 frames and then added 1 to a "PlotxTime" variable. This way, the most time loss from changing screens could only be at most just under a second per screen, which is fairly negligible. Thanks Hudell, for the inspiration! My issue here is solved. 😀

For the screenshot of the basic idea

Original thread: https://forums.rpgmakerweb.com/threads/common-events-and-changing-screens.44995/