-- LUA Script - precede every function and global member with lowercase name of script + '_main' function stats_init(e) beatcount = 1 starthat = 0 measure = 1 count_blockshigh = 0 setblockshigh = 0 end function stats_main(e) somekindofvariable = GetTimer(e) if somekindofvariable > 500 then StartTimer(index_stats) if themesong == 1 then beatcount = beatcount +1 if beatcount == 5 then beatcount = 1 measure = measure + 1 end -- i think im getting some structure here ... gotta keep the same functions together in blocks of tens or hundreds for easy indexing end end Panel(0,0,25,15) Text(1,2,1,"TIMER : " .. somekindofvariable) Text(1,4,1,"beat : " .. beatcount) Text(1,6,1,"measure: " .. measure) Text(1,8,1,"tblh: " .. count_blockshigh) Text(1,10,1,"sblh: " .. setblockshigh) Text(10,10,10,"AAARGH ME BALLS") end