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 6153
21 기타 Terrain Encounter Areas by SephirothSpawn 백호 2009.02.22 778
20 기타 Activation_system file 백호 2009.02.22 775
19 스킬 SG_Skill Break by sandgolem (SDK호환) 백호 2009.02.22 772
18 기타 AMS-Advanced Message Script Edited by Dubleax 3 file 백호 2009.02.21 765
17 기타 Sphere Grid System file 백호 2009.02.21 765
16 스킬 Skill Requirements by SephirothSpawn (SDK호환) file 백호 2009.02.22 763
» 기타 Advanced Gold display by Dubealex 1 백호 2009.02.22 761
14 기타 Letter by Letter Message Window by slipknot@rmxp.org (SDK호환) 1 file 백호 2009.02.22 760
13 기타 killer님 요청하신 스크립트 두번째입니다. 나뚜루 2009.02.21 759
12 스킬 SG_Escape Only Skills by sandgolem (SDK호환) 백호 2009.02.22 752
11 기타 Real-Time Day Night 3 백호 2009.02.22 751
10 기타 Materia System file 백호 2009.02.21 749
9 기타 Localization by ForeverZer0, KK20 습작 2013.04.26 738
8 기타 Boat Script 백호 2009.02.21 729
7 기타 에어리어 설정 by RPG Advocate 백호 2009.02.22 709
6 맵/타일 맵연결 스크립트 (데모첨부) file 게임애호가 2018.06.15 686
5 기타 [All RGSS] FileTest (Unicode) file Cheapmunk 2014.12.29 611
4 전투 전투중에 장비들 교체하기 file 레이스89 2017.08.19 592
3 이름입력 한글조합입력기(영어가능) file 조규진1 2019.11.10 492
2 제작도구 [XP/VX/VXA] Doodad's Editor by newold Alkaid 2020.07.12 382
Board Pagination Prev 1 ... 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 Next
/ 52