Hi everyone, I've been puzzling over how to handle this for a little while, so I thought I'd bring it here.
I have a scenario where the player can choose from around 40 characters to assign to a task. In the next screen, I'd like to play a cutscene featuring only the characters the player chose, in which their sprites all appear on the map.
How would you go about handling this? I can't think of any non-insane solutions, but maybe there's a smart way to go about it with a plugin or a trick with javascript I don't know about.
Thanks!
the most important rule for cutscenes is to have all commands in a single controlling event.
all those characters need to be remote-controlled placeholders and have not a single command in them - not even their movement.
And if you control everything from a single controlling event, it doesn't matter if that event controls 5, 50 or 200 events - it is more tedious the more lines you have to add to the controlling event.
and in your case, if you only need the selected actors, then you only use as many events as you'll get members and have the controlling event change the event graphics based on which ones are in the party.
or make the controlling event move everything, but have the character events be conditioned to "actor exists" which means the events not in the party will no longer be there.
Well, I'm no stranger to cutscenes in general, but the reason this is so tricky for me is that they are not actually "actors," but NPCs you can assign to tasks around your base of operations.
The practical issue I'm running into is that I can't think of a good way to change 4 different tile images in a map to match those of the selected NPCs without the problem of overlapping conditionals.
BUT, the idea of just adding an actor slot for every NPC and putting them in the party temporarily to assign a tile to match an actor slot is something I hadn't considered before... is that possible with javascript?
no need for javascript, that is pure eventing and databasing
Could you assign each one a variable, write a conditional branch and use an event spawner plugin?
Well, I'm not sure changing the image gets around the problem of ensuring each event is a unique character.
If there's a line of Javascript that can check for actor slots, I can see one possible path to success with a lot of work. If there isn't, this might just be a totally lost cause lol
That's why I mentioned the jump to label thing. You can write your 40 unique dialogs in one event putting 2 npcs on each page, then have the conditional branch change the image AND jump to that characters dialog. Then you can use only 4 npc events for the cutscene.
that is why I told you that you need to get a list of all selected option before setting anything - that way you don't need any check for what is in use, because it already prevents doubles automatically (unless you allow things to be selected twice).
In the case of actors the engine handles that automatically.
But it is that first step that is extremely important - getting the selections already done, NOT have the events make the selections.
If you have that first step, all you need to check for the 40 options each without any need for that "check the other events".
Oh, I do so love an eventing puzzle… This can be accomplished with just Yanfly’s Event Spawner (but I doubt I could resist using Self Variables/Switches to make it more exciting if it were me). I’ll use 4 NPCs for the example but hey you can change the number as you see fit.
Anyway so here’s the plan, make a map you want to select the characters on such as a base/town/etc. Place your 40 NPCs on it and assign each a number 1-40 (not a variable you can just number them). Give each a dialogue to select which of the 4 they are (if order matters at all) or it can just be a “pick me” option if order doesn’t matter. When one is picked, put their number “1-40” into a variable for whichever place in the 4 characters they are. Also create a parallel event (lowest priority) which sets variable “Task Done” to 0, and runs the Yanfly despawn map command for your cutscene map.
Now on an event map setup all 40 characters as their own individual events. You can even make each do whatever action they are supposed to do. Set them to parallel. Also make each one increments variable “Task Done” by 1 when they finish.
Finally on the your cutscene map, create one event. This event will look at the 4 picked character variables. It will have 5 pages… Page 1 have a list of if Character Variable 1 = # then Yanfly Spawn Event the matching event from the event map at a predetermined location. Create matching pages for the other 3 Character Variables but pick other predetermined locations. Then create a 5th page that checks for Task Done = 4. On that page, transfer the player back to the base map.
Since your base map will then erase your cutscene map’s events, and reset the Task Done variable, it’s now reusable to do it again and again till you get bored.