OK, so basically I made a common event and an event on the map that both said if a certain button was pressed do the specified action and wait 10 frames, but you know, MV being MV decides it wants to do it's own thing, it either completely ignores the event scripts or runs everything at once even though it was specifically told not to, how am I supposed to actually use it if it's actively undermining the script set for it?
MV Refusing to Cooperate, What Do?
RPG Maker MV SupportHey! Try this script in the conditional branch: Input.isPressed('ok') or Input.isPressed('cancel').
ok = key "Z"
cancel = key "X"
ok = key "Z"
cancel = key "X"
If an event doesn't work as you believed it would work, then that means that you believed something that simply isn't true.
Please show us a screenshot of what you have done, and explain to us what you want it to do - then we can tell you where you made mistakes in the events.
I also suggest you follow the link to the starting point in my signature and work through the tutorials listed there, especially the eventing tutorials.
There are several things that might have happened there depending on what you tried to do - all of them common to new users who don't understand what the commands really do in the events (for example, the button pressed checks if the button is pressed in the frame the conditional branch is executed only, it doesn't wait for the player to do something).
Please show us a screenshot of what you have done, and explain to us what you want it to do - then we can tell you where you made mistakes in the events.
I also suggest you follow the link to the starting point in my signature and work through the tutorials listed there, especially the eventing tutorials.
There are several things that might have happened there depending on what you tried to do - all of them common to new users who don't understand what the commands really do in the events (for example, the button pressed checks if the button is pressed in the frame the conditional branch is executed only, it doesn't wait for the player to do something).
Well, I'm not exactly a new user, I've been "putting up" with MV pretty much since it released, and have used 2000 and XP in the past and am still using Ace.
Anyway, this type of common event and event on map mix has worked flawlessly on countless other games (although they were ported from Ace mostly, it did work for the projects made under MV from the start), It's just this project it seems to be being weird with, I'll upload a screenshot when I can but for now I can't
Anyway, this type of common event and event on map mix has worked flawlessly on countless other games (although they were ported from Ace mostly, it did work for the projects made under MV from the start), It's just this project it seems to be being weird with, I'll upload a screenshot when I can but for now I can't
If you're mixing common events and map events, there is a difference between Ace and MV that I learned only recently.
With Ace, you can only call common events if they have the trigger set to "none", the engine would not execute a call to a common event set to parallel/autorun.
That security measuire does not exist in MV - you can call common events that are set to parallel process. Unfortunately because that is more error-prone than a call to a CE with no trigger, and it does start reacting strangely because after it is called once, it expects the switch to be onl for future uses of the same call (naturally since it is only supposed to be run with the switch active).
Better check all your called common events and make sure they do not have any trigger in them manually.
With Ace, you can only call common events if they have the trigger set to "none", the engine would not execute a call to a common event set to parallel/autorun.
That security measuire does not exist in MV - you can call common events that are set to parallel process. Unfortunately because that is more error-prone than a call to a CE with no trigger, and it does start reacting strangely because after it is called once, it expects the switch to be onl for future uses of the same call (naturally since it is only supposed to be run with the switch active).
Better check all your called common events and make sure they do not have any trigger in them manually.
Thanks for the telling me that but my common events are activated from switches, would this make any difference?
Without SEEING the common event and map event, we can only guess. Descriptions usually don't provide enough information. Please show screenshots of both of your events - make sure you capture the entire event window and don't crop it. Alt+PrintScreen will do this nicely. Then we can see exactly what you're trying to do and how you're trying to do it, which will make it easier to identify the problem.
Sorry for the delay, was busy, but this is the code that refuses to work
and what do you expect that event to do?
That event will always end up on char= 1 when it is finished, no matter what you press - because the last if checks for char <=4 and sets char to 1 no matter what button you pressed until then.
EDIT:
If that is supposed to allow you to scroll through 1 to 4 by button press, you completely messed up the branches. You need to reorder the checks for that to work, and the increase by 1 doesn't make any sense at all if it should only happen when the char is 1 or 0.
For example there is no way that can ever get you to char = 3...
That event will always end up on char= 1 when it is finished, no matter what you press - because the last if checks for char <=4 and sets char to 1 no matter what button you pressed until then.
EDIT:
If that is supposed to allow you to scroll through 1 to 4 by button press, you completely messed up the branches. You need to reorder the checks for that to work, and the increase by 1 doesn't make any sense at all if it should only happen when the char is 1 or 0.
For example there is no way that can ever get you to char = 3...
I'm slightly confused because you said that you called a common event but no common event call is here. Also the way the <=4 and <=2 are set into each other one will ways trigger the other.
Sorry for the SUPER late reply but I never got any emails to say someone had replied as usually happens, I'm trying to do them all seperately now and I'll let you know how that goes.
EDIT: It works now, MV was just punishing me for trying to take a shortcut
EDIT: It works now, MV was just punishing me for trying to take a shortcut
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/mv-refusing-to-cooperate-what-do.74154/