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 7282
254 기타 [All RGSS] FileTest (Unicode) file Cheapmunk 2014.12.29 654
253 기타 에어리어 설정 by RPG Advocate 백호 2009.02.22 733
252 기타 Boat Script 백호 2009.02.21 748
251 기타 Materia System file 백호 2009.02.21 765
250 기타 Localization by ForeverZer0, KK20 습작 2013.04.26 766
249 기타 killer님 요청하신 스크립트 두번째입니다. 나뚜루 2009.02.21 769
248 기타 Letter by Letter Message Window by slipknot@rmxp.org (SDK호환) 1 file 백호 2009.02.22 772
247 기타 Real-Time Day Night 3 백호 2009.02.22 773
246 기타 Advanced Gold display by Dubealex 1 백호 2009.02.22 778
245 기타 AMS-Advanced Message Script Edited by Dubleax 3 file 백호 2009.02.21 779
244 기타 Sphere Grid System file 백호 2009.02.21 785
243 기타 Activation_system file 백호 2009.02.22 785
242 기타 Terrain Encounter Areas by SephirothSpawn 백호 2009.02.22 791
241 기타 killer님 요청하신 스크립트입니다. 1 나뚜루 2009.02.21 793
240 기타 Selected phyolomortis.com scripts 1 file 백호 2009.02.22 796
239 기타 Damage Reductions by SephirothSpawn (SDK호환) 1 백호 2009.02.22 804
238 기타 Hero Databass 4 file 백호 2009.02.22 809
237 기타 SG_Multiple Currencies v3 by sandgolem (SDK호환) 백호 2009.02.22 815
236 기타 SG_Call Script Fix by sandgolem (SDK호환) 백호 2009.02.22 818
235 기타 Monster Arena by trickster file 백호 2009.02.22 820
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 Next
/ 13