Call menu during messages

Discussion in 'JS Plugin Releases (RMMV)' started by Krimer, Nov 10, 2018.

  1. Krimer

    Krimer Veteran Veteran

    Messages:
    136
    Likes Received:
    102
    Location:
    Kiev, Ukraine
    First Language:
    Ukrainian
    CallMenu.js
    ver. 1.4.6
    by Krimer


    Introduction
    Call menu during messages\choices on map by pressing one of the standard menu keys ESC, X, Insert, NUM 0.

    Script
    pastebin

    Author's Notes
    I created this plugin some time ago, but it did not have own topic, so i decided to create one :)
    I tried to fix most compatibility problems. But tell me if you find something.

    Feel free to use it as you wish
     
    Last edited: Apr 23, 2019
    #1
  2. Krimer

    Krimer Veteran Veteran

    Messages:
    136
    Likes Received:
    102
    Location:
    Kiev, Ukraine
    First Language:
    Ukrainian
    Update to version 1.4.3
    - Some minor bug and compatibility fixes
     
    #2
  3. Yitzi Litt

    Yitzi Litt Made Nepenthe — An RPG that's one giant dad-joke Veteran

    Messages:
    103
    Likes Received:
    29
    Location:
    Planet Earth
    First Language:
    english
    Primarily Uses:
    RMMV
    could you give a use-case example?
     
    #3
  4. Krimer

    Krimer Veteran Veteran

    Messages:
    136
    Likes Received:
    102
    Location:
    Kiev, Ukraine
    First Language:
    Ukrainian
    Any game without direct control on the player. Like VNs or some mini-games when game playing yourself most of the time.
    Something like this - link
    Or just for player sake, when your game has ton of texts, and to give them save-load any time. Or if you have something important to check in menu like status or reputation, etc. But most of the time its for save-load purpose.
    And yea, for using this you need to build your project with a thought - "Player can open menu any time", and block menu sometimes or build events specifically if needed.
    Sorry my English not that good so i'm bad on explaining :)
     
    Last edited: Nov 16, 2018
    #4
  5. C.W. Plainview

    C.W. Plainview Veteran Veteran

    Messages:
    143
    Likes Received:
    45
    First Language:
    English
    Hey Krimer. I've been using this plugin for a text adventure game I am building, and it's been great. However, I'm having a small issue with items and spells that have message common events tied to them. Say I have a potion that heals HP. I call the menu during a message to access inventory and use the potion. The potion will heal HP and then the game goes back to the original message I called the menu on, but if I also have a message event tied with the potion (example: "You have drank the potion and restored some health"), then there is a delay in that message appearing. You know how when you call the menu during a message, then exit the menu, the message redisplays? Well, in this case, the potion message won't display until AFTER the old message redisplays after exiting the menu. And if I have Show Choices, then the message won't display until after I select a choice.

    I think part of the problem is that my original message event is a parallel event. I have most of my events as parallel events because, being a text adventure game with no player movement on a map, I don't know of any other way to trigger these events. It should be noted that the potion message works fine in common events with NO parallel trigger. But I don't want to build my entire game with just common events. The only conceit I can think of is to have Show Choices for item and spell access alongside the other choices the player has when navigating the game, but I would like to avoid this also.

    Thanks and have a great day.
     
    #5
  6. Krimer

    Krimer Veteran Veteran

    Messages:
    136
    Likes Received:
    102
    Location:
    Kiev, Ukraine
    First Language:
    Ukrainian
    @C.W. Plainview Hi, it's happening because you showing that item message with a common event. It's added to queue and waiting until it's can be executed. So most of the time it's after all your current commands in event. This is how a common event works.
    So to fix it you need a different plugin(s). Something like a Yanfly Gab Window(separate message window) but with function to call it directly from an item, not from a common event. I will not provide this feature in this plugin, sorry. Because i don't want to mess with standart executing order for that, it will have influence to other people who don't need this feature and other possible problems.
    I can try to create some addons, but I can't promising it. So best choice will be to start searching solution by yourself.
     
    #6
  7. C.W. Plainview

    C.W. Plainview Veteran Veteran

    Messages:
    143
    Likes Received:
    45
    First Language:
    English
    I understand. Thanks for your insight. I did find an alternative, though it means having to abandon this plugin: simply present an "open menu" choice that runs an event that opens the menu. Item messages and saving and everything works great this way.
     
    #7
  8. Parallax Panda

    Parallax Panda Got into VxAce ~2014 and never stopped... Veteran

    Messages:
    695
    Likes Received:
    1,035
    Location:
    Fukuoka, Japan
    First Language:
    Swedish
    Primarily Uses:
    RMMV
    Hey @Krimer , I just wanted to tell you that I think this is a fantastic and almost essential plugin for making a decent visual novel in MV. Thank you very much for making, updating and sharing it (for free to boot!) :kaoluv:

    I hope to use this in a commercial game and I wanted to ask you if you have any preferences on how you'd like to be credited? If at all?
     
    #8
  9. Krimer

    Krimer Veteran Veteran

    Messages:
    136
    Likes Received:
    102
    Location:
    Kiev, Ukraine
    First Language:
    Ukrainian
    @Parallax Panda No problem :) I'm glad it's usefull for you. As for the credits it's not necessary, so do as you wish :)
     
    #9
    Parallax Panda likes this.
  10. Parallax Panda

    Parallax Panda Got into VxAce ~2014 and never stopped... Veteran

    Messages:
    695
    Likes Received:
    1,035
    Location:
    Fukuoka, Japan
    First Language:
    Swedish
    Primarily Uses:
    RMMV
    @Krimer
    I'd credit you as "Krimer" then (since that's the only name I know you by).

    Also, I've noticed that whenever you access the menu while you're displaying a 「Show Choices menu」, upon exiting back from the main menu the cursor will always reset to the default choice. This can feel a little wonky if you've moved it. It's not game breaking or anything, but it's surely something that the player would notice in a choice heavy game. Is it possible to make this more seamless? Like, make the game remember what choice you're currently pointing at before opening the menu so nothing will have changed when you return?
     
    #10
  11. Krimer

    Krimer Veteran Veteran

    Messages:
    136
    Likes Received:
    102
    Location:
    Kiev, Ukraine
    First Language:
    Ukrainian
    @Parallax Panda It's because how scene change in RPG maker works. It destroys old windows and creates new one when scene change is happpens. But ok, i can do it :) Check new version.


    Plugin updated to new version 1.4.5
    - added last selected choice function.
    Now player last selected choice will be restored after closing game menu. But it will not restore after player load the game.
     
    #11
    Parallax Panda likes this.
  12. Parallax Panda

    Parallax Panda Got into VxAce ~2014 and never stopped... Veteran

    Messages:
    695
    Likes Received:
    1,035
    Location:
    Fukuoka, Japan
    First Language:
    Swedish
    Primarily Uses:
    RMMV
    @Krimer
    Thanks! That's a small but great improvement! :kaoluv:
     
    #12
  13. kako05

    kako05 Veteran Veteran

    Messages:
    93
    Likes Received:
    4
    First Language:
    Australian
    Primarily Uses:
    RMMV
    Really a great plugin, but is it possible to not remove pictures upon entering the menu? It's awkward when character busts disappears. Or at least delete pic when save menu is called? Otherwise, an awesome plugin for the non-standard rpgm game.
     
    #13
  14. Krimer

    Krimer Veteran Veteran

    Messages:
    136
    Likes Received:
    102
    Location:
    Kiev, Ukraine
    First Language:
    Ukrainian
    @kako05 Standard pictures stay as is when you call menu. Unless you are using other plugins to show some pictures with their own functions then its their problem and can be solved only there.
     
    #14
  15. kako05

    kako05 Veteran Veteran

    Messages:
    93
    Likes Received:
    4
    First Language:
    Australian
    Primarily Uses:
    RMMV
    Oh, you're right. Sorry. It's a misunderstanding.
     
    #15
  16. kako05

    kako05 Veteran Veteran

    Messages:
    93
    Likes Received:
    4
    First Language:
    Australian
    Primarily Uses:
    RMMV
    Previous versions worked fine (the ones in old thread), but this one crashes the game when trying to access the menu during choice dialog. The culprit is http://daimonioustails.weebly.com/game-time-mspamwebsite.comml
    Could you take a look if it's possible to fix easy? Maybe I could get a link to 1.4.3 to test that version?
     
    #16
  17. Krimer

    Krimer Veteran Veteran

    Messages:
    136
    Likes Received:
    102
    Location:
    Kiev, Ukraine
    First Language:
    Ukrainian
    @kako05 site is unavailable in my country, but i managed to get the plugin with vpn :)
    Fixed the problem in new version, try it
     
    #17
  18. kako05

    kako05 Veteran Veteran

    Messages:
    93
    Likes Received:
    4
    First Language:
    Australian
    Primarily Uses:
    RMMV
    Thanks! Works great :)
     
    #18
  19. RyanBram

    RyanBram Veteran Veteran

    Messages:
    184
    Likes Received:
    151
    First Language:
    Indonesian
    Primarily Uses:
    RMMV
    Hi, @Krimer. Thank you very much for sharing this plugin to us.

    Do you mind to add feature (plugin command, script call, or switch) to enable/disable menu access during message?
    E.g: In normal scene, opening menu during message is not allowed, but in cutscene/conversation scene, opening menu during message is allowed.

    I prefer to use switch, because I can easily make common event for VN game by activating every switch automatically
     
    Last edited: Jun 26, 2019
    #19
  20. Krimer

    Krimer Veteran Veteran

    Messages:
    136
    Likes Received:
    102
    Location:
    Kiev, Ukraine
    First Language:
    Ukrainian
    Sure, will do when i have time
     
    #20
    Parallax Panda and RyanBram like this.

Share This Page