Skip part of the event?

● ARCHIVED · READ-ONLY
Started by ElvenNeko 52 posts Page 3 of 3 View original ↗
  1. ElvenNeko said:
    Syntax error - unexpected token.
    A syntax error means you typed something wrong, probably in the script box
  2. AquaEcho said:
    A syntax error means you typed something wrong, probably in the script box
    1726753451855.png
  3. AquaEcho said:
    You know what I typed isn't Javascript, right? It was paraphrased event commands
    Ah. Now i do know. Is this right? It still turns on after one second of pressing though.
    1726854768629.png
  4. You don't need the Input.isLongPressed part if you're checking if cancel is pressed and then incrementing another variable. Change the 10 to 60 or 90 or 120 to adjust the length of how long the button has to be pressed down. Also you might want to make it >=10 in case a frame is skipped.
  5. AquaEcho said:
    You don't need the Input.isLongPressed part if you're checking if cancel is pressed and then incrementing another variable. Change the 10 to 60 or 90 or 120 to adjust the length of how long the button has to be pressed down. Also you might want to make it >=10 in case a frame is skipped.
    Thank you so much! It worked! I would like to add you to the titles in the future patch, as i do with people who help me solve issues, unless you don't want that for some reason.

    I only failed to do the > part, because no matter what option i chose there are no such symbol.

    Also, is it possible to block escape (keyboard key) as well? It seems like i open menu when trying to use at as a cancel.

    Noticed interesting thing when i put main event into autorun instead of parallel process. It somehow works now and event is moving to the page via self switch, but first it plays the event to the last part, and only after switches to the second page.
  6. You can add me to your credits if you'd like, but it is not necessary. Just credit me as AquaEcho if you do.
    ElvenNeko said:
    I only failed to do the > part, because no matter what option i chose there are no such symbol.
    >= is equivalent to this
    1727044940397.png
    ElvenNeko said:
    Also, is it possible to block escape (keyboard key) as well? It seems like i open menu when trying to use at as a cancel.
    That's going to require a plugin to overwrite the function of the esc key
    ElvenNeko said:
    Noticed interesting thing when i put main event into autorun instead of parallel process. It somehow works now and event is moving to the page via self switch, but first it plays the event to the last part, and only after switches to the second page.
    Yes, an autorun event will run its full code to the end and can't be interrupted.
  7. I am stupid. There are event command that disables menu acsess. So, with it, and with script command written by @caethyril here: https://forums.rpgmakerweb.com/inde...-their-own-thread.46341/page-153#post-1471375

    It is now possible to skip anything except for the scrolling text, and make it with either single press or hold of the button. Thanks again for the help, and, hopefully, it will also be useful to someone who will google same question in the future.
  8. ISC said:
    The truth is that I have the engine set to my native language. But you're right, to provide better help, event screenshots are necessary. I'll try to change the language of RPG Maker MZ (it seems there's no direct option for it, I'll investigate).

    As for the mechanic, I did it this way:

    Autorun event with:
    • Disable menu
    • Switch "Skip Button" = On
    • Switch "Scene Start" = On
    • Erase Event
    Parallel map event "Scene". Activation Switch: Scene Start

    • Set movement route -> Player (Wait)
    • Move down
    • Move down
    • Move down
    • Move right
    • Move right
    • Move right
    • Show image(1) ...
    • Move image(1) ...(wait)
    • Text Box
    Parallel common event "SkipScene" . Switch: Skip Scene
    • If the "ok" button is pressed
      Switch "Scene Start" = Off
      Erase image(1)
      Transfer Player ...
      Switch "Skip Button" = Off
    • End
    Obviously, this assumes that the player is the one moving through the scene and not an event. As you can see, the player's click is blocked by the movement's Wait (same for the image). The initial autorun also disables the menu to avoid accidental openings.

    If this is what the requester is asking for, I'll share the code after switching the language.
    I had marked the 'disable menu' as the first command here. My bad, from now on I will include screenshots to be clearer.
  9. @AquaEcho do you know what can cause this error? I successfully used the entire process to make 4 events skippable, and everything worked fine, but on the 5-th it started showing this. It seems like the script that blocking movement causing this, but... i never changed it, just copy-pasted.
    This.jpg

    The event looks like this - 1727212291949.png
  10. That error implies you're trying to apply moveByInput to something that's not the player. Do you always use the script in a common event? Unless you're calling that common event on more than one map it shouldn't be a common event.
  11. AquaEcho said:
    That error implies you're trying to apply moveByInput to something that's not the player. Do you always use the script in a common event? Unless you're calling that common event on more than one map it shouldn't be a common event.
    Yes, i always do use it in common event, never in global.
    Weirdly enough, cutting and pasting the code back solved the issue. And i still have no idea what else it could be applied to... and why pasting it in the very same place in the event solved everything. But at least it works now.