Hover-over, seperate Menu/Diary?

Hi, first of all! 


I really hope I'm posting in the right thread, I couldn't find a tutorial that explained my specific idea/problem. I'll try to make this as clear as possible, I'm not a total newbie to the RPG Maker but I'm not a pro either, so please bear with me. ;;


What I'm trying to create is somewhat of a second menu so to say. It'd be part of my mainstory and would function as a diary, which you can open through your inventory (at least that's what I'm trying to go for) and would show pictures with information about characters and whatnot. I want it to have a moving selector, for which I actually found a tutorial, but I'm afraid it would be to much for the RM to handle. But anyways, do you know what I mean? I bet it's possible but my skill level is just not high enough yet to figure it out myself, sorry! D:


Thanks so much for helping, I hope this makes sense and is actually posted in the right place! ;;


Edit: I forgot to mention that I would like the selected part to have a different color than the rest if you hover over it and I have no idea how to do that ;;
The only way you can do this is via a common event called when the object is used, and the common event uses a lot of show picture commands. Or, you will need a script. If you decide to go that route, let us know and we can move it to script requests.


On another note, what hover over? ACE doesn't have mouse support without using a script.
Yes, I thought about creating a common event aswell, I'm not experienced enough to mess with scripts, haha! I mean, I have a basic understanding of what I need to do but I'd rather hear the opinions of more skilled users.


Ah, sorry, I don't know how else to describe it. I just wanted to make the selected part to change color, but I think I know how to do it, I was just confused for a second, I'm very sorry!
In my opinion in the end you WILL use scripts...Even with a common event and show picture, if you don't want to refer to the game message as the only way to display text and you don't want to use a different picture for every text (or to arrange pictures with alphabetical characters to create a text) you have to use at least a script call...


That said it doesn't mean it is impossible and, depending on how you are going to do it, it can be quite easy. Everything is up to you but to help you I will probably need more informations like: what exactly you want to write in your diary? Do you want to write descriptions related to game events? If yes, HOW do you access to those informations? Are they stored in a variable? Are they handled using a switch? What about the pictures? Are they related to the selected content? Do you want your pictures to change if the contents change? and many other things...


These things can help us helping you (It sounds strange but it is not a bad joke).
Ahhh, I totally get what you're saying. I just hoped I could avoid scripts at all, but tbh it wouldn't hurt using them.


Yeah I'd want to create a different picture for each information since I'm better at art than anything else. The diary would include information picked up through the game such as character informations, quest informations and written down cutscenes. I'd use a switch for every gathered information, it's not that important to collect them it would just give you access to some bonus material. I'd just heavily rely on pictures and them to change since they're easier for me to create and would fit better to the style of the game
Well, you can use script calls which are a bit different from scripts (they are short the short version of a script). But I have to warn you: using a different picture everytime something changes will require a lot of space.


Anyway back to the topic. I think something like this might work:

  1. create your images and give them similar names with numbers in the end (or in the beginning, up to you. The most important thing is that you name all of them in a similar way). Example: diary_01, diary_02, diary_03. etc. Example2: 01_diary, 02_diary, 03_diary, etc.
    DO NOT MIX THESE EXAMPLES! -> NOT LIKE THIS: diary_01, 02_diary, 03diary, etc
  2. Create a parallel process to show your diary entries that shows different entries based on the button pressed (Example: When the right arrow key is pressed go to the next entry, when the left arrow key is pressed go to the previous entry).
  3. Create Conditional Branches to check if buttons are being pressed and let it increase a variable according to the button pressed. (If you are following my example then the right arrow key will add 1 to your variable and the left arrow key will subtract 1) and turn a switch (self switches are fine, in the example I will use Self Switch A) on that said if you refreshed the image.
  4. Let your event create a window using a script call. Add this in your script call:

    @diary_win = Window_Base.new(0, 0, Graphics.width, Graphics.height)


    It will create a window with the same size of your game window.

  5. Now you have your window, a check for buttons and a switch that tells you if you need to refresh your diary entry. All we need is to put actual diary entries in it. First of all let's create a conditional branch to check if the switch (in my example Self Switch A) is on. If it is then you need to change your image so put another script call.


    @entry_image = "Graphics/Pictures/diary_"
    @entry_image += your_variable_here.to_s
    @pic = Bitmap.new(@entry_image)
    @src = Rect.new(0, 0, @pic.width, @pic.height)
    @ret = Rect.new(0, 0, @pic.width, @pic.height)
    @diary_win.contents.stretch_blt(@ret, @pic, @src)
    $game_self_switches[[@map_id, @event_id, 'A']] = false


    Note, if you are using a common event you won't be able to use self switch A so don't use the last line of this code. Just add a Control Switch command to turn the switch off after refreshing the image. Where I wrote "your_variable_here" you have to change it with the appropriate variable.

  6. It should now show diary entries and swap them when you press the designed arrow key. Note that using this code will mantain your pictures dimension as it is. Of course, using a similar method you can show more entries at the same time and usa a semi-transparent picture to "select" them. To do so you will probably need to refresh the selection too (maybe when using the up and fown arrow key), but since it's always the same picture you can do it without a script call (just use the show picture command).ù



I hope you get an idea of what I mean. Unfortunatly now I am in a hurry and I cannot be more explicit. But tell me if there is anything you need and I will try to help you.

Original thread: https://forums.rpgmakerweb.com/threads/hover-over-seperate-menu-diary.70999/