Russian Roulette Skill?

So, in the game I'm currently working on the protagonists' primary weapons are guns.  One of the characters is a somewhat cocky gambler and I want this to be reflected in one of his moves - Russian Roulette.  I'm currently trying to figure out how to implement it.

 

- 1 bullet in the chamber, gun's maximum capacity is 6 bullets

- First shot is aimed at you, second is aimed at the enemy, third at you, fourth at the enemy, fifth at you, sixth at the enemy

- This means chances of getting shot (or the attack hitting instead of missing) is 16.6% (1 in 6) on the first trigger pull, 20% (1 in 5) on the second trigger pull, 25% (1 in 4) on the third trigger pull, 33.3% (1 in 3) on the fourth trigger pull, 50% (1 in 2) on the fifth trigger pull and 100% (1 in 1) on the final trigger pull

- To ramp up the tension, I'd like it if the attack did more damage the further along we get (ie firing on the first pull does less damage than firing on the fifth pull)

- I think it would be best if this only consumed one turn as people are less likely to use the attack if it could occupy the character for a potential of six turns.

- Naturally, if the bullet is fired there will be no more trigger pulls.

- One way I thought of doing it would be to have the Skill set a Variable to a random number between 1 and 6 to decide how many trigger pulls there will be then invoke one of another six Skills where the battle animation is pre-determined so the number of shots in the animation tallies up to the number of shots actually fired, but I think this cheapens the laws of probability and eliminates some of that essential tension as you then basically only have a 50/50 chance of it being you or the enemy that gets hit.

 

Anyone got any ideas on this one?
Should be something like this...

You need:

  • 3 skills: 1 for activation of the common event that does everything, 1 for when there is no bullet in the chamber, and 1 for when there IS a bullet in the chamber
  • 2 variables: 1 for keeping track of how many times the trigger has been pulled and 1 for counting down how many times the trigger must be pulled until the shot is finally fired
  • 1 common event to glue everything together
So, basically, create your 3 skills. The first one calls the common event that runs the rest of the skill's effect but doesn't do anything itself. The second skill just displays a message that nothing happens (alternatively you could display this with a message box in the event itself, but I prefer using a skill for this so its with the normal flow of text at the top of the screen). The third is the actual effect of the skill with a formula that takes the variable that keeps track of how many times the shots have been fired into account for its damage. After that, you need to create your common event. Initialize the variable that keeps track of the number of times the trigger has to be pulled with random 1-6 and the other variable to 0. Next run a loop that adds 1 to the number of times (stored in the variable you initialized to 0) you fire the gun. If both variables are equal to each other, have it use the skill that has an effect and break the loop; otherwise use the skill (or display the message) that shows that there wasn't a bullet in the chamber.
Got it working, though I did it slightly differently in order to add the damage amount going up with each successive shot.  Thanks for the help

Original thread: https://forums.rpgmakerweb.com/threads/russian-roulette-skill.23774/