Randomness and Rolls

RMMV

Heya all

Making my first real game and it's mostly a character management game. An adventure as a newcomer to a city, where you find work and keep your job, try and deal with your stress, avoid both dying and becoming a failure, and building up stats that will drop if unused for too long.

It's not a combat based game, but rather choice based. For example, one of the career paths is sewer work. The character goes to a grate and the game fades into a text-based RPG with a few backgrounds and animations for flavour.

My idea was to have choices connected to skills, so the player would be presented situations in the sewer and could make a choice. Choices would be affected by the character's current skills, i.e an Agility based choice or a Strength based choice. Then a dice would roll, taking into account the stats, much like DnD. If your strength is high, you've got a higher chance of succeeding at an event that presents a Strength option.

My issue is finding the best way to go about this. I'm looking and finding lots of people with code, but I'm still a novice and don't understand a lot of the terminology. I'm generally used to working with engines that already have Randomness built in and RPG Maker MV doesn't seem to have that. Has anyone got any advice for the best way to pursue a stats+rng based system?

Posted Sep 1, 2019, 4:46 PM UTC

66
florodude•

Rpg maker does have a randomness function built in with variables, but you can't set other variables (in this case skill attributes) as parameters. That being said, you can with code and it's honestly very easy to do. I'm on mobile but if you're interested I could paste the code later. I use the exact same thing in my game.

1
Donutz108•

Would you mind doing that? I may also be able to use it if thats Okay

1
SubmissiveOctopusOP•

It'd be great to look at someone else's code, yes please.

1
armornick•

I might be too conservative, but can't you just use skills as placeholders? As in, the skills don't actually do anything but tell the player what the character is good at, and check if the player has the skill when doing the random roll.

That way, you don't need a script/plugin.

1
SubmissiveOctopusOP•

This is something I considered, but it would turn things from chance to a have/have not style of gameplay. I might test them both.

1
armornick•

Well, you could just do if have skill then chance + 10 or something like that. You could still have random chance and just test the skill to see what the chances of succeeding are. A bit like the old Fallout games.

1