VX 스크립트

맨님이 올려주신것 같은데 뭔가 이상해서

다른것 올립니당.....

#==============================================================================
#  Kill Autoshadows
#  Version: 2.0b
#  Author: modern algebra (rmrk.net) & Abt Plouton
#  Date: May 13, 2009
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Description:
#
#    This script allows you to disable or re-enable autoshadows at any time.
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Instructions:
#
#    Place this script above Main and below Materials.
#
#    To disable autoshadows, use this code in a call script:
#
#      $game_map.autoshadows = false
#
#    To enable them, use this code:
#
#      $game_map.autoshadows = true
#==============================================================================

#==============================================================================
# ** Game Map
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Summary of Changes:
#    aliased method - setup
#    new writer instance variable - autoshadows
#    new method - autoshadows
#==============================================================================

class Game_Map
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Public Instance Variables
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  attr_writer :autoshadows
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Get Autoshadows
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  def autoshadows
    return @autoshadows unless @autoshadows.nil?
    @autoshadows = false
    return false
  end
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Setup
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  alias ma_remove_auto_shadows_on_setup setup
  def setup (map_id)
    ma_remove_auto_shadows_on_setup (map_id)
    # Rather than repeatedly call a method, set a local variable to have it's data
    ma_data = data
    return if autoshadows
    # For all squares on the map
    for x in 0...(ma_data.xsize - 1)
      for y in 0...(ma_data.ysize - 1)
        # If house autotile
        if ma_data[x, y, 0] >= 4352 && ma_data[x, y + 1 ,0] >= 4352 &&
             ma_data[x + 1, y + 1, 0] < 4352
          # Delete auto Shadow
          ma_data[x, y, 1] = ma_data[x,y,0]
          ma_data[x, y, 0] = 0
        end
      end
    end
  end
end

끝...ㅇㅅㅇ..

출처:rmrk

Comment '3'
  • ?
    오를리쉬 2010.04.20 00:24

    감사합니다. 이것때문에 맵이 훨씬 자연스러워 지겠군요~

  • ?
    노력쟁이 2010.05.16 20:59

    VX이용자는 아니지만, 주간 랭킹7위에 있길래 밨는데 꾀 유용할듯하네용.

     

    그림자 없애는거라...

     

    죽었을때 사용하면 될듯함 ㅋㅋ

  • ?
    나이트퓨리 2010.07.08 17:43

    잘쓰겠습니다~


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 3 습작 2012.12.24 5408
130 기타 Gamepad Extender VX 습작 2015.01.02 672
129 기타 VX Weather Script by ccoa 1 Alkaid 2010.09.08 1318
128 기타 reijubv - New Balloon Command (VXA에서도 작동) 1 file 혜인 2013.04.08 1332
127 기타 MSX - XP Characters on VX/VX Ace 2 Alkaid 2013.01.26 1346
126 기타 Resize and Scale by OriginalWij 1 습작 2013.05.13 1349
125 기타 페이드 시간 변경 2 rukan 2009.07.01 1360
124 기타 Drop Options 1.1 by Modern Algebra 4 Alkaid 2010.09.16 1509
123 기타 OriginalWij's Script Compilation 1.2 2 Alkaid 2010.09.20 1583
122 기타 『주석을 활용한 이벤트 커맨드 확장』스크립트 1 rukan 2009.07.02 1600
» 기타 그림자 없애기... 3 비극ㆍ 2010.04.19 1642
120 기타 Etude87_Hangul_utf8_List 습작 2012.06.04 1665
119 기타 ActivateEvents 8 file EuclidE 2010.09.18 1692
118 기타 Wora's Christmas Giftbox 2008 4 file Alkaid 2010.09.18 1747
117 기타 배틀신에서 곡 넘기기 2 rukan 2009.07.02 1757
116 기타 KGC counter 스크립트. 반격기 추가스크립트입니다. 4 우켈킁 2011.03.31 1812
115 기타 장애물을 피하고 다가오게 하는 스크립트 5 file 박력남 2014.02.25 1877
114 기타 Etude87_GAGA_Chat 4 습작 2012.06.14 1916
113 기타 Modified Advanced Weather Script VX 1.1 3 file Alkaid 2010.10.08 1967
112 기타 TagNote v2.0 5 Man... 2008.10.28 1996
111 기타 みんと씨의 RMVX 샘플 프로젝트 1.11 (2009-11-05) 6 Alkaid 2010.09.13 2006
Board Pagination Prev 1 2 3 4 5 6 7 Next
/ 7