XP 스크립트

http://www.dubealex.com/asylum/index.php?showtopic=568

돈 액수 표시할 때 세 자리씩 ,로 끊어서 표시하는 것입니다.(FF7 CMS에서 사용하는 그거)

class Window_Gold < Window_Base
......
def refresh

#Advanced Gold Display mini-script-x by Dubealex.

self.contents.clear

case $game_party.gold
when 0..9999
gold = $game_party.gold
when 10000..99999
gold = $game_party.gold.to_s
array = gold.split(//)
gold = array[0].to_s+array[1].to_s+","+array[2].to_s+array[3].to_s+array[4].to_s
when 100000..999999
gold = $game_party.gold.to_s
array = gold.split(//)
gold = array[0].to_s+array[1].to_s+array[2].to_s+","+array[3].to_s+array[4].to_s+array[5].to_s
when 1000000..9999999
gold = $game_party.gold.to_s
array = gold.split(//)
gold = array[0].to_s+","+array[1].to_s+array[2].to_s+array[3].to_s+","+array[4].to_s+array[5].to_s+array[6].to_s
end

self.contents.font.color = text_color(6)
gold_word = $data_system.words.gold.to_s + ":"
cx = contents.text_size(gold_word).width
cx2=contents.text_size(gold.to_s).width
self.contents.draw_text(4, 0, 120-cx-2, 32, gold_word)
self.contents.font.color = text_color(0)
self.contents.draw_text(124-cx2+2, 0, cx2, 32, gold.to_s, 2)
end
end

Who's 백호

?

이상혁입니다.

http://elab.kr


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 7313
461 전투 KGC_BattlerEffect(버틀러 효과) 2 file 백호 2009.02.22 1968
460 메뉴 개별 메뉴 호출 단축키 스크립트 5 file 백호 2009.02.21 1973
459 그래픽 Weather Creator 1.0 by ForeverZer0 2 file Alkaid 2011.01.22 1976
458 저장 세이브 & 로드 화면 개조 스크립트 file 백호 2009.02.21 1977
457 기타 [신기술 체험] 오투잼 스크립트 7 file 백호 2009.02.22 1978
456 HUD 맵 이름 뛰우기 10 WMN 2008.03.17 1980
455 저장 심플 세이브 로드(1개의 세이브 사용하기) 3 백호 2009.02.22 1981
454 메뉴 링 메뉴 Edited by Hypershadow180@rmxp.net 1 file 백호 2009.02.22 1982
453 이동 및 탈것 Super Simple Vehicle System Enhanced 8.0 by DerVVulfman 1 Alkaid 2010.12.12 1983
452 상태/속성 KGC_StateIcon(스테이터스 아이콘 표시) 2 file 12345678 2010.02.03 1994
451 키입력 Glitchfinder's Input Modules (XP/VX 공용) 2 Alkaid 2011.03.19 1994
450 그래픽 MAWS: Modified Advanced Weather Script 1.2 by Agckuu Coceg 2 file Alkaid 2010.09.13 1997
449 기타 Project RGSS3 by joe5491 6 습작 2013.05.06 2001
448 기타 동료들이 기차처럼 줄줄 따라온다!? 7 file 백호 2009.02.21 2002
447 스킬 스킬 레벨 스크립트 # 번역 진행중 6 빗자루씨 2010.02.11 2003
446 저장 렉없는 자동세이브(중복임??) 4 캉쿤 2011.09.12 2004
445 장비 전투중에 장비변경 from RGSS Wiki 1 백호 2009.02.22 2013
444 저장 링메뉴에 빠져 봅시다 - 링메뉴의 세이브시 팅김이 사라지는 방법 !! 3 file 백호 2009.02.21 2014
443 저장 Improved Save by gerrtunk 2 file Alkaid 2010.10.13 2015
442 기타 [All RGSS] 윈도우 커서 숨기기/보이기 1 file Cheapmunk 2014.03.02 2018
Board Pagination Prev 1 ... 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 ... 52 Next
/ 52