RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Database

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 90
Skilled Scripter, Shitty Mapper, Decent Writer.
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.

********
EXA
Rep:
Level 92
Pikachu on a toilet
Project of the Month winner for April 2007
Code: [Select]
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!

***
Rep:
Level 90
Skilled Scripter, Shitty Mapper, Decent Writer.
I'll begin looking ^^