Console help

  • Noob-N-Proud
    26th Oct 2014 Member 0 Permalink

    I know how to use the console very well. But is there a way to put 2 console commands on a single element at a time? Like increasing the temp on deut and life in a single command? Instead of first doing !set temp deut 99999999999 and then doing !set life deut 9999999999 . I was messing around and tried using ctype to make bcln generate ligh (lightning) and make it generate deut (deterium oxide) at the same time. Help me if you can!

  • zBuilder
    26th Oct 2014 Member 0 Permalink

    each time you execute the command, it changes the specified feild. so if you do "!set life stne 900" the life would be 900, then if you later wrote "!set life stne 50" the life would be 50, but not 50 AND 900. each feild can only have one value at a time.

  • boxmein
    26th Oct 2014 Former Staff 0 Permalink
    Lua-style commands can be chained to your heart's content (well, to the textbox's length limit which is dreadfully low). Old-style commands, not so much.
  • bowserinator
    26th Oct 2014 Member 0 Permalink

    Use the PROP tool since I'm assuming you want to make seperate sections diffrent values

  • CeeJayBee
    27th Oct 2014 Member 0 Permalink
    Or a really long-winded way would be to create two custom lua elements with all the properties of BCLN (but the cloning part), setting them to spawn with a ctype of DEUT and LIGH respectively. Then you could load up the game and select the elements for both left click and right click, then you could draw with both left and right click pressed down. Then !set type all bcln, and do whatever you want from there.

    Or, yknow, you could just draw some BCLN and draw on it with a mix of DEUT and LIGH like I detailed above.
  • zBuilder
    27th Oct 2014 Member 0 Permalink

    boxmein:

    Lua-style commands can be chained to your heart's content (well, to the textbox's length limit which is dreadfully low). Old-style commands, not so much.

     

    even so, is it really possible for a field to have 2 values simultaneously?(in this case ligh and deut)

  • FeynmanLogomaker
    27th Oct 2014 Member 0 Permalink

    Unfortunately, no

  • boxmein
    27th Oct 2014 Former Staff 1 Permalink
    Of course not. You can cheat around this by simply altering the value each step:
    -- I won't vouch for whether this code actually works, so tread with care!
    local state = 'ligh'
    tpt.register_step(function()
    state = (state == 'ligh') and 'deut' or 'ligh'
    tpt.set_property('ctype', state, 'bcln')
    end)
    Edited once by boxmein. Last: 27th Oct 2014