Do common events called from an item really work differently than other calls? (why!)

   Ok, so in my game I rely on a lot of custom evented systems, many of which work in the background. I guess I just haven't gotten far enough in my game to notice it before as I haven't been testing any of the newly discovered faulty systems (I mean they run on the same basis as others that start running in the background as soon as the game starts up, so there was really no reason to think that it would act any different.) But I just noticed today that an event that runs based on using an item causes my game to freeze.

   The first thing I think is that I must have accidentally set the event trigger to autorun instead of parallel process but when I check it it's already set to parallel. So I spend 20 minutes or so comparing it to similar events that I know work properly to see if I've done something differently, after a bit of frustration I decide I'll try something random and set the event to run from the beginning of the game like some of the other systems... and it works perfectly fine then! So then I think it's got to be something to do with the event that activates the item event, but all that's in that is control self switch (on) so then I decide I'll have a skill activate that event instead of an item... and that works fine to... only activating the event through an item causes the game to freeze apparently. Someone please explain to me why the bloody hell this is because it does not make any sense at all that it should work that way to me.

Spoiler


Item that causes game to freeze when used



Similar effects on skill that works perfectly fine for some reason



the event that calls the system to run



evented system
As you should be able to see from the screens this is a very simple system, which kind of makes it worse that I can't see what it is that's wrong with it. Any help at all is greatly appreciated.
I've moved this thread to VX Ace Support. Please be sure to post your threads in the correct forum next time. Thank you.
You're using a Wait Frame in a Parallel Process Event, first off. No matter what happens, when you transfer to a new map, the Frame Count on a current "Wait Frame" command is always reset. What you could try instead is using two variables, one named Playtime1 and Playtime 2, then set Playtime1 equal to your Playtime, plus however long you intend for your status effect to stay. 1500 Frames comes out to exactly 25 seconds, so you would set Playtime1 to += 25. Then, run a Conditional Branch to have Playtime2 become equal to Playtime1, and during that Conditional Branch, have all of the Events necessary that you want to run. If you need help with this, feel free to ask any further questions, but this was the first noticeable problem that I encountered with your Common Event.
@Shaz Sorry about that...

@ Arin-Senpai I've actually got the script tweaked to not reset wait commands on a transfer, because I have so many events running in the background that rely on them to determine how much time passes in between updates and the variables would quickly become tedious... I'm going to try your suggestion anyway though just to make sure that the freezing doesn't have anything to do with the wait commands/if it'll be a workaround for it. I kind of doubt it though because like I said it works fine as long as it's not called from an item...
explain a little bit about the freeze. does it freeze immediately when using the item?

or it show the show message you put in common event then freeze?

also i think you need to reset the variable 29 to 0 when it reach 12.

btw putting that common event in fresh project (without any script). and see does it still freeze. since script can also make that happen.
It freezes right after using the item, it goes out of the menu screen but cannot move. The event continues to process... it just treats it like an autorun event instead of a parallel process. So I guess it doesn't actually freeze but it isn't working like it's supposed to either and causes you to be able to do nothing for 5 minutes until it runs it's course. Yeah, I do need to reset the variable. I was playing around with removing different things to try and pinpoint the cause of the problem and I guess I forgot to add that to the end when I was setting it up to screenshot it...

As for testing it, I have sort of tested it on a fresh project (there was one script because the event uses said script as a dependency) and it does still freeze up under those circumstances. This is the script that the event code depends on: http://www.rpgmakervxace.net/topic/14084-survival-system/ and I would have to guess that it is somehow causing this freeze as a different parallel process set to use an item does not cause said problem.

I don't know, usually when I have a conflict I can kind of find where it goes, but this one just sort of baffles me.
i tried recreating your common event. and it works fine. no freezing.

(with fresh project + survival script)

could you post the demo of your fresh project with survival script that have the same issues. maybe i or someone can find what's wrong.
Your item is calling the common event that is set to parallel process, this is NOT the way to do it. You have a common event that turns on the switch that makes that parallel process run, so why is your item not calling that common event?


In short, make your item call common event Antitoxin, not Antitoxin Effect.
I feel stupid... close and let die quickly please...
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/do-common-events-called-from-an-item-really-work-differently-than-other-calls-why.19428/