• Hi, Guest!
    Some images might be missing as we move away from using embedded images, sorry for the mess!
    From now on, you'll be required to use a third party to host images. You can learn how to add images here, and if your thread is missing images you can request them here.
    Do not use Discord to host any images you post, these links expire quickly!
Random ID from GameData

Tutorial Random ID from GameData 2022-06-02

TechSkylander1518 submitted a new resource:

Random ID from GameData - Guide to creating a small-scale randomizing mechanic

This is a guide on how to create a method that gets a random ID from game data. (items, Pokemon, etc.) This is most commonly used for events that give the player a random item out of a set, like the tree in the default maps that gives the player a random Apricorn.

Pool
The basic idea here is pretty simple -
  • Create an empty array
  • Add the ID of each entry in the data to the array
  • Sample the array
Ruby:
  pool = []...

Read more about this resource...
 
Back
Top