Main Menu
  • Welcome to The RPG Maker Resource Kit.

Database

Started by Shinami, March 02, 2007, 07:47:35 AM

0 Members and 1 Guest are viewing this topic.

Shinami

I'm clueless on how to setup a database that returns values based on an items ID and the item type. I've tried numerous approaches but I am failing horribly.

Blizzard

OBJECT.is_a?(CLASS)

will return true if CLASS is the class or a superclass of OBJECT. Other than that you can try to do it like me. Instead of using arrays or Hash I make a method to return values corresponding to item IDs or something else. Just check out the "database" of one of my scripts like the SRS. BTW, you can check any object's ID by using OBJECT.id (like weapons, armors, actors, enemies, etc.)
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

Shinami

I'll begin looking ^^