XP 스크립트

class Color
  White = Color.new(255, 255, 255)
  Black = Color.new(0, 0, 0)
  Blue = Color.new(128, 128, 255, 255)

  Red = Color.new(255,0,0)
  Green = Color.new(0,255,0)
  Hot_Orange = Color.new(255,90,0,255)
  Orange = Color.new(255,162,0,255)
  Yellow = Color.new(255,222,0,255)
  Lime = Color.new(198,255,0,255)
  Light_Green = Color.new(100,255,0,255)
  Cool_Blue = Color.new(0,255,255,255)
  Sky_Blue = Color.new(0,168,255,255)
  Purple = Color.new(174,0,255,255)
  Pink = Color.new(255,0,255,255)
  Hot_Pink = Color.new(255,0,114,255)
 
  Pastel_Red = Color.new(235,145,145,255)
  Pastel_Orange = Color.new(235,208,145,255)
  Pastel_Yellow = Color.new(235,232,145,255)
  Pastel_Lime_Green = Color.new(204,235,145,255)
  Pastel_Green = Color.new(145,235,145,255)
  Pastel_Blue = Color.new(145,183,235,255)
  Pastel_Purple = Color.new(183,145,235,255)
  Pastel_Hot_Pink = Color.new(235,145,181,255)
 
  def Color.white
    return White.dup
  end
  def Color.black
    return Black.dup
  end
  def Color.blue
    return Blue.dup
  end
 
  def Color.red
    return Red.dup
  end
  def Color.green
    return Green.dup
  end
  def Color.hot_orange
    return Hot_Orange.dup
  end
  def Color.orange
    return Orange.dup
  end
  def Color.yellow
    return Yellow.dup
  end
  def Color.lime
    return Lime.dup
  end
  def Color.light_green
    return Light_Green.dup
  end
  def Color.cool_blue
    return Cool_Blue.dup
  end
  def Color.sky_blue
    return Sky_Blue.dup
  end
  def Color.purple
    return Purple.dup
  end
  def Color.pink
    return Pink.dup
  end
  def Color.hot_pink
    return Hot_Pink.dup
  end
 
  def Color.pastel_red
    return Pastel_Red.dup
  end
  def Color.pastel_orange
    return Pastel_Orange.dup
  end
  def Color.pastel_yellow
    return Pastel_Yellow.dup
  end
  def Color.pastel_lime_green
    return Pastel_Lime_Green.dup
  end
  def Color.pastel_green
    return Pastel_Green.dup
  end
  def Color.pastel_blue
    return Pastel_Blue.dup
  end
  def Color.pastel_purple
    return Pastel_Purple.dup
  end
  def Color.pastel_hot_pink
    return Pastel_Hot_Pink.dup
  end
end

칼라를 미리 만들어놔서

일일이 칼라를 만들지 않아도 된다는 점이 편합니다.

일일이 복제를 하기 때문에 편하게 쓰셔도 됩니다.

RPG::Cache랑 비슷한 역할을 하죠.

Comment '3'

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6203
541 기타 일본RPGXP게임에서 번역한 스크립트 입니다. 1 백호 2009.02.22 1735
540 기타 어디에 쓰이는지 불확실한 스크립트 1 백호 2009.02.22 1063
539 전투 ATB전투 5 백호 2009.02.22 3369
538 전투 보행그래픽으로 싸우는 턴알 17 백호 2009.02.22 3782
537 상태/속성 SG_State Immunity Message by sandgolem (SDK 호환) 백호 2009.02.22 1057
536 메뉴 SG_Artifact Colors by sandgolem (SDK 호환) 1 백호 2009.02.22 1003
535 아이템 SG_Hide free item cose by sandgolem (SDK호환) 백호 2009.02.22 935
534 메뉴 SG_Hide zero SP cost by sandgolem (SDK호환) 백호 2009.02.22 1066
533 기타 SG_Settings Control by sandgolem 백호 2009.02.22 884
532 변수/스위치 SG_Self Variables by sandgolem 백호 2009.02.22 1275
531 전투 RPG Advocate의 데모에서 발췌한 사이드뷰용 전투상태창 4 file 백호 2009.02.22 3599
530 키입력 텍스트입력 이벤트명령 2.0 by wachunga@rmxp.org (SDK호환) file 백호 2009.02.22 1826
529 이동 및 탈것 3D 캐릭 스크립트 7 백호 2009.02.22 3444
528 기타 Economy System by Nick@Creation Asylum 1 file 백호 2009.02.22 934
527 전투 데미지 출력 스크립트 6 백호 2009.02.22 1810
526 메뉴 수정, 추가 링메뉴 10 file 백호 2009.02.22 2913
525 기타 데미지 출력 스크립트 예제 9 file 백호 2009.02.22 1560
524 스킬 Skill Shop by Trickster@rmxp.org file 백호 2009.02.22 1073
523 기타 스크린샷 찍는 스크립트 9 file 백호 2009.02.22 1364
522 저장 세이브 슬롯 갯수 증가와 세이브 덮어씌울 때 확인 by RPG Advocate 5 백호 2009.02.22 1507
Board Pagination Prev 1 ... 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 ... 52 Next
/ 52