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.

[Resloved] Quick Question about accessing item data

Seto

Member

Hello,

I would like to know how to gain information about an item. For example if I had the items ID e.g. 1 and I wanted to find the name for that item what would I do to find it? I know there is a method/function "name" built into the item class, as well as others like "description", "icon_name" and so on. I just want to know how to use these to get the information.

Would it be something like $data_item[1].name to get the name? I have tried this piece of script but it didn't actually get me anything. Am I on the right track though? I know $data_item.size gives the number of items available in the game.

Thanks for you time,
Seto
 

Seto

Member

Hey, Thanks Ulqiorra. I wish I was as smart as you lol. I don't know why it wasn't working for me then. I must have been doing something else wrong that caused the error. But know I know for sure what is right I will be able to figure out where I went wrong. So thanks :D. Topic Resolved I guess
 

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