second - can I create a table in the sm api that can be called in other programs? i.e. (a table like
cost = { [dirt] = 1, [cobblestone] = 1, [diamond] = 8192 }
to then be called in another program like:
cost = sm.cost[itemname]
thanks guys...
Posted 16 October 2012 - 09:06 PM
cost = { [dirt] = 1, [cobblestone] = 1, [diamond] = 8192 }
cost = sm.cost[itemname]
Posted 16 October 2012 - 09:10 PM
Posted 16 October 2012 - 09:14 PM
Posted 16 October 2012 - 09:16 PM
Posted 16 October 2012 - 09:17 PM
samdeman22, on 16 October 2012 - 09:06 PM, said:
cost = { [dirt] = 1, [cobblestone] = 1, [diamond] = 8192 }to then be called in another program like:
cost = sm.cost[itemname]
Posted 16 October 2012 - 09:19 PM
Ditto8353, on 16 October 2012 - 09:17 PM, said:
samdeman22, on 16 October 2012 - 09:06 PM, said:
cost = { [dirt] = 1, [cobblestone] = 1, [diamond] = 8192 }to then be called in another program like:
cost = sm.cost[itemname]
Posted 16 October 2012 - 09:21 PM
_G = { [dirt] = 1, [cobblestone] = 1, [diamond] = 8192 }
Posted 16 October 2012 - 09:23 PM
Posted 16 October 2012 - 09:27 PM
Posted 16 October 2012 - 09:33 PM
cost = { [dirt] = 1, [plank] = 8, [diamond] = 8192 }
Posted 16 October 2012 - 09:45 PM
local w,h = term.getSize() function centerPrint( str, ypos ) term.setCursorPos( w / 2 - (#str / 2), ypos ) term.write( str ) end
Posted 16 October 2012 - 09:58 PM
Posted 16 October 2012 - 10:34 PM
Posted 16 October 2012 - 11:06 PM
Posted 16 October 2012 - 11:07 PM
Doyle3694, on 16 October 2012 - 09:58 PM, said:
Posted 17 October 2012 - 12:00 AM
samdeman22, on 16 October 2012 - 09:33 PM, said:
cost = { [dirt] = 1, [plank] = 8, [diamond] = 8192 }
0 members, 1 guests, 0 anonymous users