problem with a variable...

Hello!


I have a problem:


I have an event...let's say "Event A" which end with those variable's changes:


UQ8TLix.jpg



Now, after this, there is "Event B" set like this:


lytPWuH.jpg



The problem is that a Lot of people stated that Event B won't trigger ( while others apparently got it with no problem at all....);


Event A is the only one where that variable change so I can't really have hosed up somewhere else....


Is it possible that sometimes the change don't register correctly? What could have caused it? Should I put a "wait" inbetween the variable's changes?
is there is 2nd page for the "event B" ? and also it's player touch not parallel or autorun for it to auto start 
also can u give me more details about what are you trying to do exactly ? so i can suggest solutions
is there is 2nd page for the "event B" ?

Yes, the event have a page 1, but is triggered by a self switch, which is turned off at the end of page 1;

and also it's player touch not parallel or autorun for it to auto start 
also can u give me more details about what are you trying to do exactly ? so i can suggest solutions

Not sure what you mean...The event start in authomatic when the player step on the cell; it's just a simple event, when you step on in, an adiacent npc turn and start a dialog with you.


What I don't understand is why some people can't trigger it, while other, including myself, have no problem with it >.<
So if i understand you correctly 
this "event B" the players needs to step on it to start a convo right ? and requirement is that "helith_meet" variable to be 1+ 
and it work for u just fine but it doesnt for others ?
So if i understand you correctly 
this "event B" the players needs to step on it to start a convo right ? and requirement is that "helith_meet" variable to be 1+ 
and it work for u just fine but it doesnt for others ?

Yes, the only condition is that helith_meet is at 1 or more;


And yes again, it work just fine for me and others, while it doesn't trigger for someone else...that's the weird thing...Could it be that, since there are a couple of variable's changes one after an other, it don't register correctly sometimes?
nope that cant be  I kinda did alot of variable changes at same time with no prob at all 
well try doing with switches ? "event A" activate a switch which it is a requirement for "event B" to be enabled 
I basicly same so yea try that 
nope that cant be  I kinda did alot of variable changes at same time with no prob at all 
well try doing with switches ? "event A" activate a switch which it is a requirement for "event B" to be enabled 
I basicly same so yea try that 

Ye, I suppose I'll go for it since I'm using that variable for that specific event only, thanks.
tell me if it worked or not  😮 
@seyfer110 If you haven't solved the problem with that, and for all future cases, I strongly suggest not to cut away vital information from the event.


In a lot of cases where events don't work as intended, the cause is a problem with page priority - and you cut away the page numbers from your screenshots.


Page numbering and page sorting is extremely important to the logic of events...
@seyfer110 If you haven't solved the problem with that, and for all future cases, I strongly suggest not to cut away vital information from the event.


In a lot of cases where events don't work as intended, the cause is a problem with page priority - and you cut away the page numbers from your screenshots.


Page numbering and page sorting is extremely important to the logic of events...

"event B" have 2 pages, but the first page is triggered by a self switch which is turned off at the end of it, so I don't see how that can be the problem;


anyway, i'll try to go with the switch instead of variable, hoping to fix the issue.


If I was able to reproduce the bug I could probably find it's cause...but I can't >.<


That's why I asked here.
so I don't see how that can be the problem;


That's why I asked here.



If you know where the problem is, you usually don't ask - and if you don't know where the problem is, then you need to give all information avaiblable.


I can think of several ways how the wrong page structure can influence what happens here - most cases are unlikely or extremely basic beginner errors, but without seeing the full screens we can't check for them. And in a lot of cases the error IS in an area where the poster didn't think it could be - otherwise he might have found it on his own.


But the areas where you don't think an error can be are the areas you never check - and sometimes when you can't find the cause of an error that is because it is where you don't think to check...
If page 1 is conditioned by a self switch, where is that self switch turned on?  It can't be on page 1, because that won't run until the self switch IS turned on.  If it IS running somehow, and has an Erase Event command, then the event won't be there anymore, so changing the variable won't have any effect.  See how I have to grasp at straws and just throw ANY old idea out there because you've withheld information?  Nobody wants to play twenty-questions to find the cause of the problem because you don't want us to have the same information that's available to you.


I suggest you post FULL shots of both pages of that event, as well as the event that changes the variable.  If you have stuff that you don't want us to see because it's offensive, blur it out.  Otherwise, there's nothing wrong with us seeing the rest of your event window - nobody is going to steal your ideas.


Alt+PrintScreen is the best way to take a screenshot - it provides all the information on the window that we need to see, and omits the desktop background which can cause the image to be too small to read clearly.  No need for any manual cropping.
This is page 1.


vAEPd6u.jpg



The self switch is turned on elsewhere, with the "Multiple Event Self-Switch Control" script, which allow to control self switch from different event ( Really usefull! )


If the self switch was still on, then page 1 event will happen again, but it don't, so I'm pretty much sure it's off =P


( Now you won't see "page2" tab because I'm testing it in an other location)


As I said before, using a switch instead of the variable will probably do the trick, but at this point I'm curious to know the reason of why with the variable, sometime it don't work...
I think the problem might be in how you set up your pages. Pages in the engine always run the highest numbered page that is valid. So if page 2 is valid, it will always run page 2, no matter what page 1 is. So no, if the self switch is still on, page 1 will not always run if there is a page 2, because if page 2 is valid that is what runs instead.


Also, variable 2 is a really bad variable to use. Many scripts use that in their settings, and if you didn't check or set that up first, the script could be overwriting what you set in the variable.
Please give that event a sprite graphic for testing - if it becomes visible, then you know the conditions are fulfilled.


Because with the event like it is at the moment, the player can't tell where he has to go to trigger that event, and it will also be impossible to determine if the event has been activated (conditions fulfilled) or not.


Additionally, try using regular switches instead of self-switches here - there might be a compatibility problem with the plugin you're using, because self-switches are not supposed to be turned on by something other than the event itself (that's where the "self" comes from. If you need switches to control other events, that is what the regular switches are intended for.


That is also why you can name regular switches but not self-switches - it is assumed that you need the names to remembar what a regular switch is used for, but as a self-switch regularly cannot be used outside the event, you don't need special references or names for their functions.


Additionally, please be more carefull with your answers as you created confusion here:

is there is 2nd page for the "event B" ?


Yes, the event have a page 1, but is triggered by a self switch, which is turned off at the end of page 1;



You were asked if the event has a second page and answered yes, but the screenshot shows only a single page for that event.


Either your screenshot is wrong or your answer was.


A page in another event is not the same as a page in the same event - that is not nitpicking, because there is an important difference: only one page of an event can be active, but two pages in two different events can be active at the same time.


And please show us the event(s) that activate those switch and set the variable - if this event isn't active for every player, then those other events have a problem.
Can you post a link to the script that lets you change other event's self switches?


When asked for a screenshot, please post the WHOLE event window without cropping it.  We can't see what event that is you're editing, and you say you turn off the self switch at the end of page 1, but I don't see a command that does that - you wouldn't need to use the script to change an event's own self switch, but I can't see because the event's id is not included in the screenshot.


You might think you know what information needs to be shown, but if you really did know that, you'd know what was causing the problem and how to solve it.  See how 'guessing' at what we needs to see has resulted in us having to ask further questions, and for more screenshots, which means extra work for you, and extra work for us.  We're back to the twenty-questions game because you're trying to restrict what we can see.  Really, stop hiding stuff - if you want us to help you, you have to give us ALL the information you have available.
let's try again, 1 last time...


This is EVENT A:


BvsM0p4.jpg



What I blurred is just dialogs, scrolling up there is nothing else but dialogs.


The only relevant variable change is "0025:helith_meet", which is needed to trigger page 2 of Event B


This event start with no problem at all; what am I concerned about is if it's possible that it skip the variable change, for unknown reason.


This is Event B page 1 ( mostly irrelevant, it start with no problem. )


9kmbXUA.jpg



To answer Shaz question, I've attached a txt file with the script and the selft switch changes are those "selfA etc"


now to the problematic issue:


This is Event B page 2


eagdZ0z.jpg



Again, what I blurred out is only dialogs;


it appears that sometimes, the event don't trigget correctly... the Only condition is that variable "helith_meet".


The "weird" thing is that for me it works just fine, most of people don't have any problem with it, while a couple of people reported that the event don't trigger...

View attachment switch control.txt
I've asked you twice now for FULL screenshots (not cropped) and you just refuse to give them.  Events have numbers, not letters.  Saying "This is event A" tells me nothing about whether that event is being affected by the script calls at the bottom of the page.


So I'm sorry, I'm not asking any more.  I'm done.  Hopefully someone will be able to help you out on the partial information you're willing to provide.
@seyfer110 Your self-switch script works with IDs, and as Shaz told already, once again you cropped out the ID numbers of the events so that we can't check if everything is correctly set.


And beside that, there is no command visible that can turn on the self-switch A required in the second screenshot - I specifically asked to show us where you activated that self-switch:

And please show us the event(s) that activate those switch and set the variable - if this event isn't active for every player, then those other events have a problem.



we can only help you if you do what we say and answer our questions - please read what we write, and ask if you don't understand what we want from you.


Because if you refuse to give vital information for solving a problem, then it will not get solved.
And I've already told you more than once that page one is working just fine, but you just won't read and instead keep thinking that the problem lies there...nvm, don't "waste" your time anymore  

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-a-variable.72804/