2.5 questions from a n00b

Hey all,


I have two very n00b-like questions for ya, so go easy on me.


1.  Is there a way to make battle bgm randomized, selecting from certain songs in the library?  I know there are plug ins for this, but I have seem to recall mention of ways to event as well.  I'd like to learn it if possible.

2.  How do I get a text pop up in the menu screen when a party member learns a skill through a skill book?  I tried using a common event for each character and each skill book, but using parallel process causes it to repeat, and the message only shows up after the player leaves the menu screen.  This is not ideal.
 


Follow up question:  What is the variable text call for showing the name of the character who used the item in the text box?  Like, if the book is used on Jim, I want the text box (in the menu screen, mind you) to state that "Jim has learned X skill!".
1) yes, it can be evented - but it's tedious to do it by event.


Basically you need to use control variable to get a random number, and then a series of conditional branches checking which number was rolled and changing the BGM to something different based on the number.


If you do, better make it a common event to be called whereever you want the random BGM to appear.


2) Events cannot be used outside the map or the battlescreen.


If using a skil, do NOT make the called common event a parallel process just call it directly as an effect without a trigger and it won't repeat, just place the correct show text.


You need to identify the actor who used it by a series of conditional branches (usually by using an invisible target state as an additional effect) and then use the regular textcodes with the ID received.
For 1: If you have on screen encounters, just have the call a common event which selects and sets a random battle music before the battle starts. For not onscreen encounters, I think scripting or plugins are required, as last time I checked you can't change the battle BGM mid battle.


For 2: I used Yanfly's gab plug-in or script to do it, but like you said, it will only show up after you leave. You would need a plug-in or script if you really wanted it to show in the menu.


I don't know the follow up answer, sorry.
Thanks Andar and bgillisp!

Seems like I really can't get around using plugins if I want my game to be unique.  They just scare me a little bit.  I need to familiarize myself with the language better.

 
For 2: I used Yanfly's gab plug-in or script to do it, but like you said, it will only show up after you leave. You would need a plug-in or script if you really wanted it to show in the menu.

I thought it could only be used on the map.  I must've missed something in the description, I guess.
I thought it could only be used on the map.  I must've missed something in the description, I guess.



If you are using common events to make the skillbook work, then yes, even Gab window will only work when you're out of the menu (coz the Game_Interpreter which runs events and common events don't run in the menus), which is why bgilisp said that you would need another script if you wanted to show it in the menu. I haven't looked at the script for a while now but I'm also not sure if being able to call the interpreter from the menu will actually enable the Gab window.
Ugh, I totally saw that the first time I read it, then came back and glossed over it.  Thanks.

Does anyone know of a script that makes message text open in the menu?  I've been looking, but haven't found anything that works for what I want.  Thanks, all.  I really do appreciate the help.  Even if the software is externally "simple", it sure does have a lot of intricacies!  This will take me forever to master in the amount of free time I have.  3 kids ages 13, 8, and 7 months old.  Free time is scarce.  XD
I don't know of any, sorry. Though I think you can use a text box in a common event which will display the message? Though for me it resulted in the player being booted from the menu when I did it, but it still got the job done.


The other option is a little strange, but could work. You could have the player go to a sphere like grid, and need to use the book to unlock the node on the grid. That way, since you'd be on a map, all text and such would display normally. Most people that do this use a map to resemble the grid for the player, and once you are done you return to the original map. It's not a beginner trick though, and I've never tried it (just seen it done) so cannot comment on how to do it.


Honestly, I'd just live with the quirk until the game is more developed myself. Best to make sure the game turns out before worrying about all the display quirks. Also you might discover a way to solve it before you officially return to it that way.
It is "simple" in the way that everyone can learn it given enough time, nothing in it requires any special education or so. Perhaps the only requirements are creativity and the will to get the time and work into it. But yes, because it is that powerfull even after years of using it you can still learn new ways and it doesn't force you to specific game-types (although the basic JRPG has more support and other gametypes need more work).


For MV: not yet (or at least not that I know of, but I haven't searched for it myself). What you need is a menu interpreter plugin that adds an event interpreter function to the menu scenes. For Ace, such a script exists (written by Tsukihime). For MV, it has been asked for a few times but I don't know if anyone made one yet.
Have I mentioned how much I love this community?  Because I do.

I'll keep my eye out for the plugin, but in the meantime, the common event learned skill message will do.

Speaking of which, I'm finding a bit of an issue with stacking common events on one skill item.  I have a common event for each character/each skill learned.  When I place only one common event on the skill item, the message displays perfectly.  If I place all common events on the item, no message.  If I make one common event with all characters/skills learned, the messages stack.  So character one learns fire, message shows.  Character 2 learns ice, character 1 fire message shows, then character 2 ice message shows, etc.

How do I sort it out?  How can I have only the message for character and skill being used at that time show on screen?  Video link for clarity showing the issue of one character event vs all character events.  No video of the stacking messages.

 
by default, the engine only supports one common event call on an item - that has to do with the way the common events are reserved internally.


To solve it, you either need to combine the common events into one or have a plugin that changes that.
Or you can have a single common event that calls all the other common events, that should work as well 🙂


I think the problem you're having is a different one: The conditional branches in the common event check if a certain actor has learned a skill and display a message if they have. The problem is that "actor has learned a skill" means that the actor has learned the skill at any point in the game, not necessarily directly before the common event. So when the actor learns the fire skill, the common event checks if the fire skill has been learned - it has, so it displays the message for the fire skill. If the actor learn the ice skill after that, the common event checks again if the fire skill has been learned - it has, so it displays the message for the fire skill again before displaying the message for the ice skill.


To fix this, I would change your common event setup a bit: Make a common event for each skill instead of each actor and have the item add a state to the actor it is used on. This state doesn't (or rather, shouldn't) have any effects, it only serves to mark the actor the item is used on. Then have the conditional branches check for all of the actors if they are affected by that state. If they are, display the correct message and remove the state from the actor. This also has the advantage that you don't need to worry about calling multiple common events from a single item.


Hope that helps 🙂
by default, the engine only supports one common event call on an item - that has to do with the way the common events are reserved internally.


To solve it, you either need to combine the common events into one or have a plugin that changes that.

When I combine it into one common event, I get stacking messages, though.

Video Link

I know there's a way to make it work as a 1:1 thing, but I'm blanking on how to do it so that previous character skills don't show up.
if you get stacking messages, then you made a mistake in the common event - but that would go too far for here.


Please make a new topic with screenshots of the common event, then we can check where you made mistakes and how to correct them.
Great, thank you so much, Andar.
Have you seen my post above? I might have found the reason for your stacking messages 🙂

Original thread: https://forums.rpgmakerweb.com/threads/2-5-questions-from-a-n00b.73404/