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 5398
70 기타 레벨업 시 증가분의 HP/MP 회복 10 시트르산 2010.09.12 2427
69 기타 라이트 이펙트 스크립트 12 file 아방스 2009.02.07 3262
68 기타 땅파기 18 file 비극ㆍ 2010.04.19 3013
67 기타 디스크 체인져 VX!! (업데이트..) 30 file Tofuman 2008.12.02 3168
66 기타 데이터베이스 자체 제한 해체 스크립트 [Database Limit Breaker] 13 file 할렘 2009.02.07 3562
65 기타 던전에 적정 레벨이 어떤건지 스크린에 표시해주는 스크립트! 5 file 루시페르 2009.06.06 2907
64 기타 다른 방식의 테트리스 미니게임 7 file 사람이라면? 2010.08.17 2362
63 기타 능력치에 따른 스테이트변화 / 능력치한계지정 5 Evangelista 2009.05.26 2479
62 기타 높이(층)를 설정하는 스크립트 11 file 카르와푸딩의아틀리에 2009.07.01 3343
61 기타 낚시 스크립트~(낚시대로 하는 낚시가 아니라 사람을 낚는 낚시 스크립트) 14 file ~AYARSB~ 2010.03.18 3630
60 기타 글씨표시 스크립트 32 file 허걱 2009.08.10 4421
» 기타 그림자 없애기... 3 비극ㆍ 2010.04.19 1642
58 기타 그림을 각도로 회전시키기 1 허걱 2009.06.30 2328
57 기타 경험치, HP, MP 백분율계산 (실시간) 8 file 허걱 2009.08.01 3540
56 기타 경험치 백분율 계산 2 허걱 2009.06.30 3093
55 기타 게임시간&밤낮 54 file 허걱 2009.02.14 6111
54 기타 게임 해상도를 조절 하는 스크립트 19 아방스 2008.01.21 4780
53 기타 거리계산 스크립트 (XP가능) 7 file 허걱 2009.08.16 2848
52 기타 개인판타지메뉴+업그래이드 배틀 23 file 콩밥 2010.08.02 4211
51 기타 간단한 스크립트의 사용법 6 아방스 2008.03.09 4552
Board Pagination Prev 1 2 3 4 5 6 7 Next
/ 7