Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0
Hellreaper

Table returns number (itemname wanted)

Question

Hi, 

 

while Its pretty simple most likely, 

I seem to be unable to convert a table address to a string

so I can know what item it is because that number doesnt mean anything to me...

 

The function is returning an "object" but I cant find how  to convert it over to a string like yourmod:itemID...

Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

You kinda need give us more info, this post says almost nothing about what you are trying to do.

 

so I can know what item it is because that number doesnt mean anything to me...

 

item of what? if you mean a component then no the address is the only info you get on the component which you can see at the bottom of the item description.

 

The function is returning an "object" but I cant find how  to convert it over to a string like yourmod:itemID...

 

what function? "object" is not even a type in lua

 

turning table to a string is just tostring(tbl) but I'm guessing that's not what you want...

Link to post
Share on other sites
  • 0

This is a partial post about the inventory access btw.

 

The "object"(is an element of a table) is a value that is returned by ganys end inventory manager. I asked something along the lines of print(item.InSlot(x)).

 

http://puu.sh/r390h/8c40e42f88.png

 

This is what im trying to do and the result im getting if it stil isnt clear enough. (Sorry im bad at explaining xs)

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.