Randomize Duel/Item Minigames (MP2)

Duel Minigame Randomizer (MP2).s

Item Minigame Randomizer (MP2).s4.2kB
Filesize: 4.2kB  Views: (1825)  Downloads (1186)  
Description: These events are designed to allow you to randomize which Duel Minigame or Item Minigame is played on a custom board. While PP64 now accommodates randomisation, these events allow you to select a specific minigame to be played or to give each minigame a different chance of being selected.

The two events work in a similar fashion. There is one parameter, "Selector", which can be set to 0 for minigame randomization or 1-6 to play a specific minigame. The values are as follows:
  • Western Land
  • Pirate Land
  • Horror Land
  • Space Land
  • Mystery Land
  • Bowser Land

If set to randomize the minigame, there is an array inside the event that contains each minigame's percent chance of being played. These chances can be edited by setting each byte equal to that minigame's percent chance plus all the bytes prior in the list. For example, if Western Land's minigame is at 10%, and you want to set Pirate Land's minigame to 25%, you would set the byte for Western Land to 10 (10% chance with 0 minigames before it in the list) and the byte for Pirate Land to 35 (25% chance plus Western Land's 10% chance). The final byte will be 100 (all the minigame chances should sum to 100%).

It is recommended to use the event for randomization as "Before player turn" so that the minigame is randomized at the start of each player's turn. Alternatively, it could be set as "Before turn" and it will randomize at the start of each new turn. You could also set the Item Minigame Randomizer event onto specific spaces with the "Selector" set to a specific minigame, allowing for specific Item Spaces to play specific Item Minigames.

Credit goes to Rain for providing the GetRand function! These events should be Everdrive-compatible. If there are any issues, please feel free to let me know!

NOTE: These events are currently only compatible if Western Land is overwritten.
Posted by: MarioComix April 29, 2021

Rating: This download has not been rated yet.
Related Downloads
Get Random Item

Rating: (None)
Date: January 08, 2019
Downloads: 4754
Views: 5099
By: Gwonam
Bowser Item Shop (MP3)

Rating: (None)
Date: October 11, 2020
Downloads: 1766
Views: 3589
By: BF10
Whomp(Item) Toll

Rating: (None)
Date: October 31, 2020
Downloads: 1980
Views: 2472
By: Yoshiman222
Multiple Item Slots (MP2) v1.41

Rating: (None)
Date: January 14, 2022
Downloads: 2452
Views: 1998
By: MarioComix

Comments (0)

Return to Downloads

Powered by: Download System Pro