Save-Point
Ultimate Shadow Remover - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+--- Thread: Ultimate Shadow Remover (/thread-2336.html)



Ultimate Shadow Remover - Sporky - 01-26-2009

Shadow Remover
Version: 1

Introduction

Here's a little script we did & fixed up based on problems with all the other shadow killer-type scripts. :)

Features
  • Removes automatic shadows by putting walls on RMVX's 3rd map layer
  • That's it. End of story.
  • The table still has feet!
Screenshots

[Image: shadowslay.jpg]

Script

Code:
# Ultimate shadow remover!
# By the folks at http://rmvx.gameclover.com

class Game_Map
  alias gamebaker_goodbyeshadow_oldsetup setup
  def setup(*args)
    gamebaker_goodbyeshadow_oldsetup(*args)
    goodbye_shadows
  end

  def goodbye_shadows
    for x in 0...$game_map.data.xsize
      for y in 0...$game_map.data.ysize
        if $game_map.data[x,y,0] >= 4352
          $game_map.data[x,y,1] = $game_map.data[x,y,0]
          $game_map.data[x,y,0] = 0
        end
      end
    end
  end
end

Instructions

Plug & play

Credits and Thanks

Enterbrain for making their automatic shadows easily removable.
Initial version (last year) was based on code by Abt Ploufen.

Terms and Conditions

Not intended for commercial use. If you'd like to repost this script somewhere, please include a link to http://rmvx.gameclover.com along with it :)