Lua QRTZ crystal

  • Somar
    14th Sep 2011 Member 0 Permalink
    Pick QRTZ. Draw something. Best with 1px brush.
    tpt.set_console(0)
    tpt.set_pause(0)

    function start()
    v=tpt.get_property("type",tpt.mousex,tpt.mousey)
    if(v==132) then
    tpt.set_property("ctype", 15,tpt.mousex,tpt.mousey)
    end
    end

    tpt.register_mouseclick(start)
  • mniip
    14th Sep 2011 Developer 0 Permalink
    Omg how complicated
    1)mouseclick sends coords so u don't have to use tpt.mouse_
    2)you shud notice that this will not work when u drag mouse. Too lazy to code now, but it's possible to fix