Last active
          January 4, 2016 12:49 
        
      - 
      
 - 
        
Save Fire-Dragon-DoL/8624102 to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | tile init nooverrides | |
| set %grid_size 0 | |
| sub scangrid | |
| for %x -20 20 | |
| { | |
| for %y -20 20 | |
| { | |
| set %posX #charposx + %x | |
| set %posY #charposy + %y | |
| tile cnt %posX %posY | |
| for %i 1 #tilecnt | |
| { | |
| tile get %posX %posY | |
| if #tileName = cave | |
| { | |
| set %grid_item . %grid_size %posX %posY | |
| set %grid_size %grid_size + 1 | |
| break | |
| } | |
| } | |
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment