# csdc24 # F8 Move 10 times right while feeling safe macros += M \{-1018} ===move10right { movesPending = 0 function ready() if movesPending>0 then if ( you.feel_safe() ) then moveRight() else movesPending = 0 end end end } { function moveRight() crawl.flush_input() crawl.sendkeys("6") movesPending = movesPending - 1 crawl.flush_input() crawl.mpr("DEBUG you.time()=" .. tostring(you.time()) ) end } { function move10right() if ( you.feel_safe() ) then movesPending = 10 moveRight() end end }