Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[Resolved] Elements

Status
Not open for further replies.

OS

Sponsor

Hello, again. I need to know how to load the array for the Element Names in the Database into a variable for comparison. I tried RPG::System.elements, but that didn't work, and the Help File is retarded, so I don't know how to do it. If anyone can help, please do!

Peace out!
~Broken
 
The Help File isn't retarded maybe you aren't looking in the right places.

Code:
[B]elements [/B]
Element list. Text array using element IDs as subscripts, with the element in the 0 position being nil.

now elements is an instance method of class RPG::System so first you need an instance of RPG::System. The only instance of this class we would be interested is in the one loaded from the database, $data_system.

so the code would be $data_system.elements and that will return the array of element names
 
Status
Not open for further replies.

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top