Debug console table of values return?

All development conversation and discussion takes place here

Moderator: Moderator

Post Reply
Message
Author
ibanix
Wyrmic
Posts: 244
Joined: Thu May 23, 2013 12:25 am

Debug console table of values return?

#1 Post 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?
Please help with the ToME wiki!

lukep
Sher'Tul Godslayer
Posts: 1712
Joined: Mon Mar 14, 2011 10:32 am
Location: Canada

Re: Debug console table of values return?

#2 Post by lukep »

IIRC:

Code: Select all

=game.player.inven[1]
Some of my tools for helping make talents:
Melee Talent Creator
Annotated Talent Code (incomplete)

ibanix
Wyrmic
Posts: 244
Joined: Thu May 23, 2013 12:25 am

Re: Debug console table of values return?

#3 Post by ibanix »

Unfortunately, not so much. I get the same output.

... .inven.1 or ... inven.[1] doesn't help either
Please help with the ToME wiki!

HousePet
Perspiring Physicist
Posts: 6215
Joined: Sun Sep 09, 2012 7:43 am

Re: Debug console table of values return?

#4 Post by HousePet »

inven[1]
My feedback meter decays into coding. Give me feedback and I make mods.

ajfluffy
Thalore
Posts: 190
Joined: Thu Jan 17, 2013 2:49 pm

Re: Debug console table of values return?

#5 Post by ajfluffy »

Inven[1][1]

ibanix
Wyrmic
Posts: 244
Joined: Thu May 23, 2013 12:25 am

Re: Debug console table of values return?

#6 Post by ibanix »

Yeah, that worked.
Please help with the ToME wiki!

ajfluffy
Thalore
Posts: 190
Joined: Thu Jan 17, 2013 2:49 pm

Re: Debug console table of values return?

#7 Post by ajfluffy »

Yup, then increment the second number to go through the items.

Post Reply