New Lua API sample codes?

  • baizuo
    5th Nov 2012 Member 0 Permalink

    For example, I got few heated VIBR, and I want to check how much it was charged, the wiki haven't updated yet, nor the code on github(http), I guess it was stored in tmp2

    If we have one pixel of VIBR, numbered #0, how can I get its tmp2 value( and other properties)?

  • mniip
    5th Nov 2012 Developer 0 Permalink
    tpt.get_property("tmp2",0)
    like always
  • jacob1
    5th Nov 2012 Developer 0 Permalink
    @baizuo (View Post)
    also, in the next version, all the energy will be stored in tmp, but mniip is right. You should put tpt.log( ) around it also
  • baizuo
    6th Nov 2012 Member 0 Permalink

    @jacob1 (View Post)

    Great, but debug mode should show all of a element's property. Or there should be different levels of debug mode, just like Bethesda's game, "debug n" while n=0,1,2.. can enter different levels of debug mode. Level 0 will only display fps, and level 4 will display most properties that a modder would want to know (fps, position, chunk update rate, character animation file, object form ID, etc.)