Greetings, sorry to be so annoying with the posts.
I wanted to know if it is possible to create an option in the game menu (that is, within the game already started, not the title) where you can select the music that you already heard in the game.
Nothing elaborate or with too many graphics, just a simple added option that allows me to select the BGM files of the game and allows me to reproduce them.
I imagine that I will need to use variable use to make each music play added to this option. That maybe I can try to achieve, but the above is beyond me.
But there it says it's for the MV. Will it work with the MZ?
I will see if it is free (since many Yanfli plugins are paid) and comment if it works
Thanks Sparky :ahappy:
Edit:
Ok, it is paid. It is not worth much, it is only 10 dollars and the pack brings many plugins ... but 10 dollars in my country is a luxury xD
Meanwhile I'm going to try to literally make a jukebox in the game to test the events that I need to achieve "unlock" the songs.
If anyone knows the way, or some other plugin to make it a menu option, I would be super grateful.
if you want to event it and unlockable, it can be done by eventing it,
while MV and MZ are mostly the same in variable and switches, this can
be tedious to event though:
when you have a jukebox (event or want it on a button)
if: Jukebox Switch = ON
if BGM1 Switch = ON
if variable BGM CHECK = 0
play BGM
else
buzzer sound here
end
remember, that the above is only basic, before you can check variable BGM,
you need to create a trigger, pressed button chekc onfront.
if: buton ["DOWN"] is pressed
variable += 1
else
if variable ["UP"] is pressed
variable -= 1
end
end
and even this is basic, but you check the buttons to check the variable,
while the OK button to select it is missing.
you can check my evented main menu tutorial (this require 3 plugins, but not
sure if it exist for MZ yet), but each songs require a switch.
if the song can be directly played, you can skip the switch, if it needs
to be unlocked, it require a switch.
so 1 variable to select, and 1 for jukebox + 1 switch for EACH BGM in the jukebox.
another way is to try to see if MOGhunter has his MOG_MusicBook ported to MZ.
I use that one for MV which is really nice and 1 of the best, because of the image
you can place (else an empty one) but it require 1 image for each song, so a
1 by 1 px and it's name can do the trick, and require no space or very low space.
Sorry for my late response.
Thanks Shadow for the info. Later I will try to test that structuring.
And regarding MOG, I already tried a couple of days ago it's plugin and it does not work with the MZ. And at least I didn't find anything about it being ported to MZ.
MusicBook isn't ported yet, I do not know if he do that.
or if there will be a better one though.
but remember the structure is very basic setup, read it correctly, require more
conditional branches.
if you also have MV, you can see how I set up the evented menu, it's around the same
idea of setting up the jukebox, you can add left (-10), or right (+10) on the variable index
to make jumps, or depending what you can see on screen.
I can try to help you out if you are stuck (but I cannot create a plugin for MZ, because
I'm to low for that.
Can I ask you a favor, if it's not too much trouble?
Could you post a print of your tutorial? I mean the event you mentioned. So that I can better understand the idea. I don't have the MV, but would actually go to the trouble of looking at it myself. (And by the way, thank you very much for the offer of your tutorial).
I understand about the switches and the variables you showed, that the first mentioned are used to unlock or not a particular song and the variables to select them.
The problem I have, which I am not understanding or I am doing very badly, is that I cannot understand how to make a window appear in which I can make those variables work in order to select a song.
At the moment what I managed to achieve, very, very basic, is with a multiple choice event in which I could add, for example, 12 songs, condition each one so that it only plays with its own active switch, and if it were not the case, play an error sound with some message.
Although it does what I ask, it feels very clumsy because when selecting a song and not meeting the condition, although it reproduces the error sound, it removes me from the selection, having to select the Jukebox again to be able to choose another song.
the conditional branch per song looks around like this:
if: Switch Song 1 = ON
play BGM
else
Play SE Buzzer1
end
so if song 1 is on index 1: it looks like:
if: variable #0001 index = 1
if: Switch Song 1 = ON
play BGM
else
Play SE Buzzer1
end
end
not the check is inside the variable, you also need a conditional branch when
"OK" is triggered in order to play it.
but the tutorial for my evented main menu is also showing images (I create a plugin
for that one), but I need to change it later for a different way to be used everywhere.
but ideal to be used on certain points.
But I got a few questions:
1) how many songs do you use (or in total in mind (around))?
reason for this is, because each song require a button image with the text on it (1 disabled, 1 enabled)
2) do you rather jump to the next list, or do you want to slide?
with sliding, I mean, when on the bottom, the rest goes up, or everything goes up, except middle?
while showing a picture with ID 1 or 50, everything above this, will stack upon it,
if your background is 40, everything else, is 41+, if background is 40 and you
place a button on picture 39, it goes below it.
there might be 1 tiny problem though, you if you disable the song, you can either use
the name or use ???? which is fine, but using the same button of ???? require still
a different ID, not the same.
Also the max amount of using images = 100 (disabled and enabled can be the same ID
and must be, if you have 80 songs, and you use already 40 pictures, this wont work 🙂
Sorry, I was distracted by the history of my project and totally forgot this
1)When you say the ones I intend to use, I imagine you mean the ones that I would like to show on the jukebox, right?
If this is the case, it will be approximately 60 or 70 songs added. (The songs of maps and the like I do not plan to add to the list, only those related to special events and battle music).
2) Hmmm ... the one that gives less problem to program haha. But if I had to choose, I would rather it slide. And let it slide all the way up when the selector is at the bottom.
And regarding the names ... I would prefer that the blocked ones appear with "???".
First of all, there is a little problem I have with your system. You see, I'm seeing that it requires the YEP Core Engine.
I have it, but I have it disabled because it removes the shadows from the maps, and I can't find a way to make it not do that.
I'm going to try your way on a new project map. But I would still need to solve the shadows, because I have many maps that I create specifically with that and the Core Engine leaves them without shadow.
Thanks!
Yep coreEngine is mostly used for resolution size, if there are others (and there is)
in case, I can create a minor just for that, but also probably out there to use).
as for the jukebox, I got a few ways to make the eventing way easier as well.
this require 3 image as minimum + 1 switch for each song, and variables, not sure.
1 background image (best on resolution size, and a nice way to place the button
already on the background (red), means activated. and the names besides it.
(can make a quick sample if need)
1 grey button (disabled or name it ???? (easier and faster to repeating)
1 select button to select the song.
the setup from this is also faster, and especially in loading the image faster as well.
I'm not sure when I got time, but probably somewhere next week to make a tiny
sample for you (this require to increase the conditional branch) and switches
where needed.
it might be in the next year, because busy here and x-mas coming,
I make a little example , not sure if it work in RMMZ, but if you have also RMMV,
I send the one in mind, and include some other jukebox samples as background
what could be possible, (not visible ingame),
if you only have RMMZ, I send aAR or ZIP with the event images, which you can
re-create or modify what is possible in RMMZ or extend, make it better.
OR I can make 3-4 mockups, and send in a DM before I make the DEMO for you, so
it can be based on that image. or you can create a mockup in the way you would
like, and I create it around that part.