Implementing a Few Roguelike Elements?

So I want to start by saying hello to the RPGMaker community!


I hate to be that guy who begins with questions, but I can't ignore that I need the help of people who are far more familiar with this program than myself.


The game I am currently trying to make has its backbone in a series of mechanics that are Roguelike in nature. The main character is a Necromancer, and all other characters that can join the player's party are undead/ethereal/fitting-that-theme. This is because I want the other supporting characters to be 'summoned' via the player spending a certain amount of resources (acquired from killing enemies) to reanimate corpses (acquired automatically from downed enemies) in their little hub-graveyard. The raised characters would have semi-randomized statistics (a variation, slightly, in their stats. Otherwise, each Basic Ghoul has the same ability list and equipment types, etc.) and would begin at a certain level, determined by how much the player has invested. (EG, the player could spend some of their resources on a slightly-expensive boon that allows all undead to be summoned at level 5 instead of 1, and then bump it up to 10, then 20, etc.) Once an undead dies, it is dead forever, and the player has to start grinding up a newly awoken zombie.


Ideally, players would also be able to 'store' characters, kind of like Pokemon in the computer system, with a maximum of an arbitrary number (like 20 or so). They would slowly accrue a large 'catalogue' of undead that they could raise and store for later use, or quickly restock when necessary.


Naturally, this poses a lot of issues and questions. Notably:


- Is there a way to have randomly generated stats?


- Is there a way to have permanent death?


- Is there a way to store these generated characters? Could they be 'saved' or 'overwritten'?


- Would it be possible to retain the data for these characters in the event that a 'revive' mechanic could be implemented, allowing a player to revive one of their fallen undead, but only once per?


- Is it possible to have more than one of the same character in a party at once? I.E., could there potentially be 3 Basic Ghouls alongside the Necromancer?


Any and all feedback is welcomed and appreciated, thank you!
1 - This one can be a tad complicated. You'd want to use Yanfly's Class Base Parameter Plugin (and whichever one's are required for it's use). In the notetag for the classes you would put:
 

Spoiler
<Custom Param Formula>


value = level * Math.floor(Math.Random() * Max) + Min


</Custom Param Formula>


You would then replace Parameter with whichever stat you want to change.


Example:



Spoiler



<Custom maxhp Formula>


value = level * Math.floor(Math.Random() * 1000) + 5


</Custom maxhp Formula>

Yanfly goes more in depth in his video on the same link from above.


Disclaimer: Not 100% sure if this will work, as I've never done it myself, but it should.




2 - Using Chronosv2's Death Common Event In the notetag for an actor you can set a common event to remove said actor from the party if they die in battle. It's explained further in his post.


3 - You could have an event set up in a Hub area where you would have the choice to remove members from the party, showing different choices depending on who the player has unlocked. When they are stored it turns on a switch that will allow the player to retrieve them at a later date. Then you would be able to retrieve the party member (only showing those who's switches have been turned on), and it would turn off the switch.


4 - You can set a switch, or variable, for when the player unlocks one of the undead characters. Then if they were to die, set an event (maybe a vendor in a hub world), that checks if the switch (or variable) is on, and that the undead character is not in the players party. From there they will be able to Revive the dead character, and you could delete the ability for them to resummon it (since you said once per). Sorry if this was a poor explanation for this one, if you don't understand what I meant just let me know. I'll try to explain better.


5 - If you mean multiple of the same actor, as in you want multiple from one slot, that's not possible. But you can have multiple if they're in two different slots (If you understand what I'm saying). Here's a visual explanation.

Spoiler
Database



Spoiler



Database.PNG

In Game

Spoiler
Game.PNG




Quick question, is this your first project with RPG Maker? You seem to know what you want to do so I would assume no. But just asking.


Also, depending on how many potential party members you want the events will be very, very complicated.
Thank you for your suggestions!


1.) I implemented the Yanfly plugins but I've encountered an error in trying to test a custom variable. This is the notetag I'm trying to test out, and the error message:

Spoiler
<Custom maxhp Formula>


value = level * Math.floor(Math.Random() * 15) + 10


</Custom maxhp Formula>


I'm getting a TypeError: Undefined is not a Function message for the X_ClassBaseParameters Plugin. The lines it references with the error are 290-292, which is not particularly helpful:



console.log(message);
console.log(code || 'NON-EXISTENT');
console.error(e);



Otherwise, I'll have to mess around with the events to get as close as I can to what I'd like. In any case if I do have to end up sacrificing some of the mechanics it's not necessarily an issue, as long as perma-death and randomized variable are in order it wouldn't hurt the game's core too much.


The suggestions for 3 and 4 are great though, I'll try and set up some experimental examples and see what I can do with them!


This is not my first project, no. I apologize if it seems that way.
I didn't think it was your first project, just curious. 


I'm not sure what's up with that, but here's another method.


You could try level * v[id]


And set the variable to randomize between given integers when the player unlocks the undead.

Original thread: https://forums.rpgmakerweb.com/threads/implementing-a-few-roguelike-elements.74058/