VX 스크립트


알피지 vx에서 불의 효과를 내는것입니다...
중복이 있으면 댓글로 해주세요.
사용법은  

사용.jpg

입니다...
그리고


 ● Light Modes
#------------------------------------------------------------------------------
# GROUND - Medium steady white light.
# FIRE - Large red light with a slight flicker.
# LIGHT - Small steady white light.
# LIGHT2 - X-Large steady white light.
# TORCH - X-Large red light with a heavy flicker.
# TORCH2 - X-Large red light with a slight flicker.

라고
적혀있는데....
번역하면....

GROUND-중간 똑바른 하얀 빛
FIRE-조그만 깜박이와 큰 빨간 빛 <그냥 불꽃임...>
LIGHT-작은 하얀 빛
LIGHT2-아주 크고 똑바른 하얀색의 빛
TORCH-크고 빡간 빛, 무거운?! 깜박이??
TORCH2-TORCH와 같으나 작은 깜박이.
번역은 내가 했음... 칭찬해 주삼...<퍽...




------------------------------------------------------------------------------복사 시작-----------------------------------------------------------------------------



#==============================================================================
# ■ Light Effects VX 1.1
#     5.21.2008
#------------------------------------------------------------------------------
#  Script by: Kylock (originally for RMXP by Near Fantastica)
#==============================================================================
#   To make an event glow, give it a Comment: with any of the supported light
# modes.
#   The SWITCH setting below will disable light effects from updating with the
# switch is on.
#==============================================================================
# ● Change Log
#------------------------------------------------------------------------------
# 1.0 - Original Release
# 1.1 - New light modes added: LIGHT2, TORCH, TORCH2
#     - Changed sprite blend mode to ADD (looks slightly better)
#     - Fire-based lights are now red in color
#==============================================================================
# ● Light Modes
#------------------------------------------------------------------------------
#   GROUND - Medium steady white light.
#   FIRE   - Large red light with a slight flicker.
#   LIGHT  - Small steady white light.
#   LIGHT2 - X-Large steady white light.
#   TORCH  - X-Large red light with a heavy flicker.
#   TORCH2 - X-Large red light with a sleight flicker.
#==============================================================================

class Spriteset_Map
  alias les_spriteset_map_initalize initialize
  alias les_spriteset_map_dispose dispose
  alias les_spriteset_map_update update
  def initialize
    @light_effects = []
    setup_lights
    les_spriteset_map_initalize
    update
  end
  def dispose
    les_spriteset_map_dispose
    for effect in @light_effects
      effect.light.dispose
    end
    @light_effects = []
  end
  def update
    les_spriteset_map_update
    update_light_effects
  end
  def setup_lights
    for event in $game_map.events.values
      next if event.list == nil
      for i in 0...event.list.size
        if event.list[i].code == 108 and event.list[i].parameters == ["GROUND"]
          type = "GROUND"
          light_effects = Light_Effect.new(event,type)
          light_effects.light.zoom_x = 2
          light_effects.light.zoom_y = 2
          light_effects.light.opacity = 100
          @light_effects.push(light_effects)
        end
        if event.list[i].code == 108 and event.list[i].parameters == ["FIRE"]
          type = "FIRE"
          light_effects = Light_Effect.new(event,type)
          light_effects.light.zoom_x = 300 / 100.0
          light_effects.light.zoom_y = 300 / 100.0
          light_effects.light.opacity = 100
          @light_effects.push(light_effects)
        end
        if event.list[i].code == 108 and event.list[i].parameters == ["LIGHT"]
          type = "LIGHT"
          light_effects = Light_Effect.new(event,type)
          light_effects.light.zoom_x = 1
          light_effects.light.zoom_y = 1
          light_effects.light.opacity = 150
          @light_effects.push(light_effects)
        end
        if event.list[i].code == 108 and event.list[i].parameters == ["LIGHT2"]
          type = "LIGHT2"
          light_effects = Light_Effect.new(event,type)
          light_effects.light.zoom_x = 6
          light_effects.light.zoom_y = 6
          light_effects.light.opacity = 150
          @light_effects.push(light_effects)
        end
        if event.list[i].code == 108 and event.list[i].parameters == ["TORCH"]
          type = "TORCH"
          light_effects = Light_Effect.new(event,type)
          light_effects.light.zoom_x = 6
          light_effects.light.zoom_y = 6
          light_effects.light.opacity = 150
          @light_effects.push(light_effects)
        end
        if event.list[i].code == 108 and event.list[i].parameters == ["TORCH2"]
          type = "TORCH2"
          light_effects = Light_Effect.new(event,type)
          light_effects.light.zoom_x = 6
          light_effects.light.zoom_y = 6
          light_effects.light.opacity = 150
          @light_effects.push(light_effects)
        end
      end
    end
    for effect in @light_effects
      case effect.type
      when "GROUND"
        effect.light.x = (effect.event.real_x - 400 - $game_map.display_x) / 8
        effect.light.y = (effect.event.real_y - 400 - $game_map.display_y) / 8
        effect.light.blend_type = 1
      when "FIRE"
        effect.light.x = (effect.event.real_x - 600 - $game_map.display_x) / 8 + rand(6) - 3
        effect.light.y = (effect.event.real_y - 600 - $game_map.display_y) / 8 + rand(6) - 3
        effect.light.tone = Tone.new(255,-100,-255,   0)
        effect.light.blend_type = 1
      when "LIGHT"
        effect.light.x = (-0.25 / 2 * $game_map.display_x) + (effect.event.x * 32) - 15
        effect.light.y = (-0.25 / 2 * $game_map.display_y) + (effect.event.y * 32) - 15
        effect.light.blend_type = 1
      when "LIGHT2"
        effect.light.x = (effect.event.real_x - 1200 - $game_map.display_x) / 8 - 20
        effect.light.y = (effect.event.real_y - 1200 - $game_map.display_y) / 8
        effect.light.blend_type = 1
      when "TORCH"
        effect.light.x = (effect.event.real_x - 1200 - $game_map.display_x) / 8 - 20
        effect.light.y = (effect.event.real_y - 1200 - $game_map.display_y) / 8
        effect.light.tone = Tone.new(255,-100,-255,   0)
        effect.light.blend_type = 1
      when "TORCH2"
        effect.light.x = (effect.event.real_x - 1200 - $game_map.display_x) / 8 - 20
        effect.light.y = (effect.event.real_y - 1200 - $game_map.display_y) / 8
        effect.light.tone = Tone.new(255,-100,-255,   0)
        effect.light.blend_type = 1
      end
    end
  end
  def update_light_effects
    if $game_switches[1]
      for effect in @light_effects
        next if effect.type == "FIRE" || effect.type == "TORCH"
        effect.light.visible = false
      end
    else
      for effect in @light_effects
        next if effect.type == "FIRE" || effect.type == "TORCH"
        effect.light.visible = true
      end
    end
    for effect in @light_effects
      case effect.type
      when "GROUND"
        effect.light.x = (effect.event.real_x - 400 - $game_map.display_x) / 8
        effect.light.y = (effect.event.real_y - 400 - $game_map.display_y) / 8
      when "FIRE"
        effect.light.x = (effect.event.real_x - 600 - $game_map.display_x) / 8 + rand(6) - 3
        effect.light.y = (effect.event.real_y - 600 - $game_map.display_y) / 8 + rand(6) - 3
        effect.light.opacity = rand(10) + 90
      when "LIGHT"
        effect.light.x = (-0.25 / 2 * $game_map.display_x) + (effect.event.x * 32) - 15
        effect.light.y = (-0.25 / 2 * $game_map.display_y) + (effect.event.y * 32) - 15
      when "LIGHT2"
        effect.light.x = (effect.event.real_x - 1200 - $game_map.display_x) / 8 - 20
        effect.light.y = (effect.event.real_y - 1200 - $game_map.display_y) / 8
      when "TORCH"
        effect.light.x = (effect.event.real_x - 1200 - $game_map.display_x) / 8 - 20 + rand(20) - 10
        effect.light.y = (effect.event.real_y - 1200 - $game_map.display_y) / 8 + rand(20) - 10
        effect.light.opacity = rand(30) + 70
      when "TORCH2"
        effect.light.x = (effect.event.real_x - 1200 - $game_map.display_x) / 8 - 20
        effect.light.y = (effect.event.real_y - 1200 - $game_map.display_y) / 8
        effect.light.opacity = rand(10) + 90
      end
    end
  end
end

class Light_Effect
  attr_accessor :light
  attr_accessor :event
  attr_accessor :type
  def initialize(event, type)
    @light = Sprite.new
    @light.bitmap = Cache.picture("le.png")
    @light.visible = true
    @light.z = 1000
    @event = event
    @type = type
  end
end


 

 

-----------------------------------------------------------------------------------복사 끝--------------------------------------------------------------------------------

그리고 le.png이 그림을 이름 바꾸지 말고 Graphic/Picture 에 저장하삼.
절대로 저장 안하고 안 됀다고 징징거리지 마삼

 



그리고 이거 아마도 낮과 밤 스크립트랑 연결된것 같음...
댓글로 올려주면 같은 사이트에서 낮과 밤 스크립트 가져오겠음...

출처: www.rpgrevolution.com



<기분이 꿀꿀한게 병났나보군...젠장....>

Who's DEVIL<Li Patanis Roni Kraudus>

?

E Mail to...
jenosl0913@gmail.com

 

- 12월 8일 2008년-

 

 

그날서부터 잠수를 한후

 

2년 후에 돌아왔다

 

아무도 날 모르고

 

2년동안 RPG Makerz를

 

한번도 건들지 않아서

 

내 머리에 에러가 걸린다...

 

그래서 다시왔다...

 

제발 도와주........

 

 

 

...

 

..

.

 

 

-2월 6일 2010년-

Comment '71'
  • ?
    아나카시 2008.06.06 11:17
    와아 좋네요
    그런데 밝기가 좀더 강했으면;;
    잘쓰겠습니다

    # 수정
    아아 죄송 =ㅅ=;; 자새히 보니깐
    밝기 조절이 있군요
  • ?
    양념통닼 2008.06.06 12:07

    저는 FIRE 하고 TORCH 이 두개만 되는군요...

  • ?
    zeromax's joke 2008.06.06 17:04

    오옷 감사합니다.

  • ?
    작은악마 2008.06.06 17:27
    감사드려요~
  • ?
    만들어보자꾸나 2008.06.06 19:37
     유용하게 쓰이겠네요..
     게임 제작에 잘 활용하겠습니다.  감사합니다
  • ?
    어둠의바나나 2008.06.07 07:49
    이거 괜찮네요
    잘쓸게요
  • ?
    흑기사 2008.06.07 13:49
    밝기 조절 어캐하죠?
  • ?
    흑기사 2008.06.08 18:11
    죄송한데  ㅠㅠ 그레도 밝기조절을 모르겠어요. ㅠㅠ
  • ?
    아나카시 2008.06.07 20:53

    스크립트 내용 위쪽으로 조금 올라가면

    Light, Fire 등등 스크립트는 아닌데 영어로 써져있는게 있습니다.
    옆에 밝기도 써져있구요...
    원하는 밝기를 복사해서 빛을 내고 싶은 곳에 주석으로 붙여넣기 하면 되겟내요
    (또 이딴 국어실력으로 설명하려 드는거냐? [미안...나도 최선을다했어

  • profile
    화이트독 2008.06.14 08:14
    빛  이펙트 아닌가요?

    제목은 빛 (어)펙트 라고 되있네요-ㅅ-;;;
  • ?
    morte 2008.06.15 15:57
    와~ 멋져요 ^ㅁ^
  • ?
    Likaen 2008.06.27 23:54
    분위기 있군요. 좋은 자료 감사합니다~
  • ?
    ☆별 2008.07.01 17:21
    감사합니다~
  • ?
    다크아머 2008.07.07 18:47

    오오 이렇게 좋은 기능이 있다니!

  • ?
    alpha-soul 2008.07.10 21:19
    오오!!!
    굿이당~~~
    잘쓰겠습니다 ^ㅁ^
  • ?
    닭살치킨 2008.07.12 15:46
    오 너무 좋네여
  • ?
    뮤★ 2008.07.28 10:45

    그럼 스킬같은데도 응용할수있을듯 .... ;;

  • ?
    undertaker 2008.07.31 16:25

    좋네요...............







    레스트....... 인........ 피.......쓰.......

  • ?
    에코 2008.08.01 07:19
    존나좋쿤? 이라기보다 좋군. 으음 빛효과라.
  • ?
    zerobm 2008.08.01 19:18
    밝기조절 어떻게하지 ;
  • ?
    치키니2002 2008.08.13 12:15
    음 존나좋군~
  • ?
    이렐 2008.08.20 16:58
    잘쓰겠습니다~
  • ?
    다크아머 2008.10.25 11:11
    오오 역시 이건 킹왕짱!
  • ?
    Night Breath 2008.11.01 19:37
    와우 굿
  • ?
    괴도간나 2008.11.09 17:23
    rt
  • ?
    알카 2008.11.26 01:49
    감사합니다~
  • profile
    [RPG2003] 2008.12.30 14:06
    고맙습니다
  • ?
    mymy 2009.01.01 11:46
    전저장하고스크립트까지넣고님이하라는건모두다햇는데안돼네요ㅠㅜ
  • ?
    아르다스 2009.01.04 23:08
    이거 정말 좋습니다. thank you!!!(잘못??)
  • ?
    보로 2009.01.09 03:42
    제가 이거 한 맵에 좀 많이 쓰니까 캐릭터가 안움직이는데 고치는 방법 없나요?
  • ?
    칼맞은법사 2009.02.25 10:33
    저두그래요 ㅠㅠ
  • ?
    JaYTwO 2009.01.10 05:22
    감사합니다~
  • ?
    Aakerse 2009.01.14 17:44
    잘쓸게요.
  • ?
    ShineFeel 2009.01.20 09:41
    감사합니다^^
  • ?
    여우 2009.04.12 15:56
    정말 고맙습니다
  • ?
    여우 2009.04.12 15:57
    점말고맙ㅂ삿으닏ㄴㄴㅁ
  • ?
    ABCDEGF 2009.05.03 10:47
    ㅋㅋ 우와 필요했던거
  • ?
    붕붕이 2009.07.03 14:10

    캐릭터가 멈추는 현상은

    실행족건 을 자동실행으로 한담에

    주석에 LIGHT등 자신이 원하는 밝기 넣고

    그밑에 이벤트일시삭제 하니까 해결되더군요

    그런대 문제는 저 빛을 넣은 맵 이전맵에서 npc등과 대화한이후에

    저 빛을 넣은 맵으로 이동하면 빛이 사라져있군요 ㅠㅠ

  • ?
    붕붕이 2009.07.03 14:11
    그래도 좋은 스크립트 ㄳ 합니다 덕분애 빛나는 엑스칼리버(보검) 를 만드는개 가능해졌어요
  • ?
    우후훗aA 2009.07.03 14:38

    좋은 스크립트네요 ㅋ 감사합니다~ 잘쓰겠습니다.

  • ?
    니큔 2009.08.29 08:42
    와 제가 만들고 있는 게임에 딱이네요!!
  • ?
    칼리아 2009.08.29 11:33
    납치합니다.
  • ?
    누군가 2009.08.29 13:26
    오, 불에 빛이라 좋네요...
  • ?
    돈뺏는천사 2009.10.05 17:03
    이거 커먼이벤트에서 병렬처리로하고나서 뭐만만들면 안뜨네요 ㅠㅠㅠ
  • ?
    돈뺏는천사 2009.10.05 20:26

    아... 지금 스크립트 쭉 확인해보니 스위치1이 켜져서 그렇더군요....

  • ?
    간지오이 2009.11.25 20:16

    쓸만한것을 감사합니다 떙큐

  • ?
    뉴공 2009.12.14 23:47

    감사합니다. 쓰기도 간편하고 좋군요

  • ?
    뉴공 2009.12.14 23:48

    광원효과가 필요해서 이것저것 찾아보다가 파티클엔진을 찾았는데 그건 너무 사용하기가 어렵더라구요 ^^;

    이건 사용도 쉽고 아주 좋습니다. 강추

  • ?
    niceGame 2009.12.25 09:33

    정말 사용하기 편하네요 !!

    괜찮으시다면 낮과 밤 스크립트좀 ㅎㅎ !

  • ?
    1000℃ 복숭아 2009.12.30 02:19

    감사요


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 3 습작 2012.12.24 5398
577 제작도구 게임제작에 필수인 테스트 플레이 고속화 스크립트! ! ! ! 25 양념통닼 2008.05.30 4445
576 미니맵 미니맵 띠우는 스크립트 ^^ 37 file 아방스 2008.06.02 7247
» 기타 빛 이펙트 71 file DEVIL<Li Patanis Roni Kraudus> 2008.06.06 5861
574 맵/타일 타일 태그 및 4방향 설정 7 file 만들어보자꾸나 2008.06.08 2668
573 맵/타일 타일셋 변경 10 file 만들어보자꾸나 2008.06.08 4371
572 장비 장비 확장 및 EP 기능 18 만들어보자꾸나 2008.06.10 3653
571 메뉴 헬프 윈도우 중앙표시 스크립트 11 file 양념통닼 2008.06.10 3348
570 기타 [KGC]한계돌파 9 방콕족의생활 2008.06.13 3599
569 저장 [퍼옴] Neo_Save_System ver.1.0 10 레오 2008.06.14 4451
568 메뉴 지난 메뉴 스크립트에 이은 스테이터스 스크립트! 5 file 독사 2008.06.29 3545
567 전투 [vx] ATB 시스템. 10 만들어보자꾸나 2008.07.05 4925
566 영상 RMVX에서 AVI 재생 스크립트 12 Nymph 2008.07.07 4108
565 변수/스위치 맵에 변수와 스위치 설정하기.. 5 정의로운녀석 2008.07.22 1984
564 상점 상점 아이템 목록 정리 14 정의로운녀석 2008.07.22 3771
563 다음 레벨까지의 경험치 강제조정 13 정의로운녀석 2008.07.24 3273
562 액터 스탯 시스탬 29 츠키아 2008.08.08 4214
561 미니맵 미니맵 스크립트(아랫거랑 다른거) 75 file 츠키아 2008.08.08 6145
560 액알 스크립트 33 츠키아 2008.08.11 5828
559 HUD PRABS v1.0 [hud,주석액알,원거리공격,hotkeys,vx] 대박감이다. 47 유칸지 2008.08.13 11114
558 HUD 맵이름 띄우는 스크립트 입니다. 33 시에란 2008.08.16 5271
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 32 Next
/ 32