Class Help - Gambler

I use RG Maker MV.

I would like to have this class in my game, but I think it may be too big of a project and I may be too inexperienced.

I think this the correct boards for this post as I think a plugin would be required, at least to make it feel good, but I am not sure if there's stuff here that can be done without a plugin.



So anyway, the class is a Gambler style class that uses dice as weapons. New weapons collected throughout the game could add more dice to his weapons, or add more sides to each dice.

(Ex, starting weapon is a single 6 sided die, 1D6. Another weapon could be 2 4 sides dice, 2d4. increasing to a number of 16 sided dice or whatever is possible.)

Ideally, I would like to show the dice rolling on the screen giving the player the feel of gambling.
I think the more realistic outcome will be just telling the player with text that says something like "Die 1 rolled x, and die 2 rolled y. Here is your result." I think this is the part that would likely make the class almost unplayable, as the player will most likely lose most of the experience.

Either way, for my idea, the number rolled on the dice would determine the power coefficient that is buried within my damage formula. [But, for others it could be used to determine number of attacks].


Again for my idea, i would like him to have Limit Breaks that gives him access to additional dice [2d2, 2d3, 2d4, 2d8] to determine how many time he will attack on his next dice roll attack.



I haven't really thought of many other ability beyond this, as I didn't want to devote a ton of time on something that probably won't work.
One thought I have been toying with is to allow the player to bet a portion of their HP on the outcome of the dice, allowing the player to do huge damage if they win, but potentially killing the class if they lose. But, I kinda don't like this idea overall as I feel like this would encourage players to use the starter weapons that have less outcomes.
This can be done with a couple of already existing plugins from Yanfly. Off the top of my head you would need YEP action sequences, YEP Weapon unleash and maybe YEP skill core and YEP Damage core. You'll also need to create your own animation sheet for the dice, one for each possible die roll.

Depending on your knowledge of MV and js, this could be quite the task, as you will need to specify your variables during the very beginning of your action sequence, call the variable and activate the correct die roll sequence and have the variable called in the damage formula. Also keep in mind that each number will have it's own action sequence tied to it, so if you had a weapon with 4 six sided dice, it would be 20 action sequences. This is due to the fact that you need an action sequence for each possible number combination. Also you need different sequences for different sided dice.

If you absolutely must have this class in your game, I would suggest sticking to one type of die and avoid having too many dice in each weapon so as to limit the number of action sequences you need to call. All of the sequences can be placed in one skill, using IF statements that correspond to each possible number that can be set in the variable. You would use weapon unleash to have that skill always called when the dice are rolled with the attack command.

If you haven't worked with Yanfly's action sequences before, I would suggest taking a look at my thread in my sig below and at the first dozen or so pages of the Yanfly action sequence thread. I'd also suggest taking a crack at coding several action sequences before you undertake this particular sequence.
Thanks for the reply!

It seems like the task is likely too big for me to undertake.

But out of curiosity, what would "creating my own animation sheet for the dice, one for each possible die roll" involve?
If you wanted to show the actual roll of the dice for each possibility, you would need an animation sheet similar to the ones found within the engine itself. If you go to the animations tab, you will see that each animation is made from a sheet with several images on them. For animated dice, you will need a sheet for each possible die roll, so that the animation can be called during the action sequence. A roll of 1 will require an animation sheet, a roll of 2 will require another sheet, etc.
These would have to be either drawn or commissioned. An alternative would be to simply have pictures of each roll called once the variable is established, no roll animation. For instance, for a roll of 7 you would have a picture called on screen of one die with 3 and another with 4.

Again I will reiterate: for 1 or 2 dice, this is not very complicated just time consuming. Once you start adding in different sided dice and more than 2, this becomes increasingly more time consuming and difficult to manage. I have some idea how this can be pulled off using a minimal amount of skills and action sequences using 4, 6, 8 and 10 sided dice, but again, it becomes time consuming. If you really want to go this route, I'll lay out an action sequence built off of 2 four sided dice for you to see. No animations though. I can't draw =)

Original thread: https://forums.rpgmakerweb.com/threads/class-help-gambler.86304/