Console Help

  • Fusionftw
    27th Jun 2020 Member 0 Permalink

    Is it possible to combine multiple console commands into one function?

     

    Psuedocode example:

    function SPRKpscn {

    !set type pscn sprk

    !set ctype sprk pscn

    !set life sprk 4

    }

    Edited once by Fusionftw. Last: 27th Jun 2020
  • LBPHacker
    27th Jun 2020 Developer 1 Permalink
    Nope. Anything more complicated than your simple-as-brick !set needs Lua. I won't go into the details, we have a wiki for the Lua API. If you have the script manager installed though, you can use my script which condenses that to tpt.all():eq("type", "pscn"):set("type", "sprk"):set("ctype", "pscn"):set("life", 4).
  • Fusionftw
    27th Jun 2020 Member 0 Permalink

    Ok, Thanks!