Need to know how to fusing allies with item

Sup.


I'm working on a game highly based on the SMT series. One the features I want for this game is the possibility to fuse the demons in the party. Instead of doing it in a specific place, like the Cathedral of Shadows in SMT, I would like to do it through a purchasable item.


So basicly, when the item is used, the player must choose the first demon, and then the second one to make the fusion. Then, the game must show a status screen of the resulting demon and ask the player if he/she wants to fuse, sacrificing the old party members for the new one.


I imagine that I would use a common event with a script call to read a value in the material demon's notes (or their actor IDs) and calculate which one is the resulting demon.


So, can someone give me a hint of how to do a system like this? It doesn't necessary have to read a demon's notes or ID. If anyone know a plugin with a similar system, please tell me.
I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.



Deployment is for problems when deploying the finished game to different devices/systems, not for asking how to make the game
I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.



Deployment is for problems when deploying the finished game to different devices/systems, not for asking how to make the game

I'm really really sorry. I thought this was the one for game development, I read it wrong.
Okay: i'd do it like this:


Your item calls a common event:


In this common event you ask the player to enter a number, the number is the first demon id, you check if it is in the party.


If it is you ask for a second number that will be the second demon id, you again check if it is in party.


If both are in party you add the corresponding actor that is the result of fusion.


You're gonna have to make a lot of conditionnals if you don't know how to add a party member by id: here is the script call:


$gameParty.addActor(actorId)
$dataActors[Id].note //this one will return the actor note as a string


Checking if an actor is a party member by id is a bit more difficult, but here is how I'm doing it.

Code:
var actorId, list, i
list = []
i = 0
while (i < $gameParty.size()) {
       list.push($gameParty.members()[i].actorId())
       i++
       }

//this creates a list of all party members by id. set actorId to the desired number
//You can then use the following, that will return true if actor [actorId] is in party.

list.contains(actorId)
Okay: i'd do it like this:


Your item calls a common event:


In this common event you ask the player to enter a number, the number is the first demon id, you check if it is in the party.


If it is you ask for a second number that will be the second demon id, you again check if it is in party.


If both are in party you add the corresponding actor that is the result of fusion.


You're gonna have to make a lot of conditionnals if you don't know how to add a party member by id: here is the script call:



$gameParty.addActor(actorId)
$dataActors[Id].note //this one will return the actor note as a string


Checking if an actor is a party member by id is a bit more difficult, but here is how I'm doing it.



var actorId, list, i
list = []
i = 0
while (i < $gameParty.size()) {
list.push($gameParty.members().actorId())
i++
}

//this creates a list of all party members by id. set actorId to the desired number
//You can then use the following, that will return true if actor [actorId] is in party.

list.contains(actorId)




Look, I appreciate the effort, but for what I understood, the player would need to know the id of the demon before selecting it. If he/she didn't they would be trying for a lot of time unecessarly.


Maybe I should be a bit more specific, I'm sorry, but I think it would be much more pratical if the common event makes the player select one party member, read a their class (which is the variable I would use to calculate the resulting demon) and then ask to select one more member, read their class and "calculate" the resulting demon.


I'm a newbie in this area and have no knowledge of the commands I should use to write a small script, once again, sorry if I'm being annoying.
Well, making the player know the number they have to enter to fuse is easy enough, maybe you could put it into the profile / in the description of each actor... That way he doesn't have to guess it. This is the most simple way I can think of doing your system.


Here is how you read an actor class by id.


$gameActors.actor(actorId).currentClass().id


You could also build a menu using events to choose the party member (that's what i'd do). You start at the first party member, display a picture of his face, and his description. When the player uses up/down arrow it moves to the next or previous party member, when you hit enter it selects the current displayed actor. You repeat the process once and you give the player the resulting fusion actor.


That's much more complex eventing though, but I'm sure there's at least a dozen tutorials for how to build a menu using events, if you look for them. If not for MV, at least for ACE and the logic hasn't changed at all.


I'm trying to provide you with a method to event your system. What you want to do is far from absolutely needing a script to complete. As a rule I try to do everything I can via eventing, you're going to learn a lot more that way. Don't just hope someone has built a plugin that fits your needs, try to do it yourself and then ask for questions on specific points, not "how do I build my entire system?".


If you want a plugin to do it, and don't want to write it yourself, post in plugin requests 🙂.


If you want to learn javascript, there are a lot of ressources available: I like Soulpour's scripting tutorials for example.


Hope I helped!

Original thread: https://forums.rpgmakerweb.com/threads/need-to-know-how-to-fusing-allies-with-item.63129/