Page 1 of 1

Debug console table of values return?

Posted: Thu Jul 11, 2013 4:23 am
by ibanix
So some values get returned as a reference to a table, eg:

Code: Select all

=game.player.inven

1 :=: table: 0x0d928020 
and so on. What's the option to expand tables?

Re: Debug console table of values return?

Posted: Thu Jul 11, 2013 4:53 am
by lukep
IIRC:

Code: Select all

=game.player.inven[1]

Re: Debug console table of values return?

Posted: Thu Jul 11, 2013 4:56 am
by ibanix
Unfortunately, not so much. I get the same output.

... .inven.1 or ... inven.[1] doesn't help either

Re: Debug console table of values return?

Posted: Thu Jul 11, 2013 10:05 am
by HousePet
inven[1]

Re: Debug console table of values return?

Posted: Fri Jul 12, 2013 1:57 am
by ajfluffy
Inven[1][1]

Re: Debug console table of values return?

Posted: Fri Jul 12, 2013 8:19 am
by ibanix
Yeah, that worked.

Re: Debug console table of values return?

Posted: Fri Jul 12, 2013 10:36 am
by ajfluffy
Yup, then increment the second number to go through the items.