Jump to content




Help with blood magic


  • You cannot reply to this topic
1 reply to this topic

#1 piano1997

  • New Members
  • 1 posts

Posted 03 September 2015 - 08:40 AM

I'm trying to automate the blood altar from blood magic . One of the functions returns this array

{
  {
    capacity = 10000
    contents = {
		 rawName = "Life Esssence",
		 amount = 0,
		 name = "life essence",
		 id = 156,
    },
  },
}

I wanted to print the amount of the life essence can someone help me ????

#2 Konlab

  • Members
  • 595 posts
  • LocationKerbin

Posted 03 September 2015 - 03:48 PM

local amount = tbl[1].contents.amount --# tbl is the table. I'm indexing it to get the sub-table

Edited by Konlab, 03 September 2015 - 03:48 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users