VX 스크립트

class Window_Base
def draw_icon2(icon_file, x, y, enabled = true)
bitmap = Cache.load_bitmap("Graphics/Icons/", icon_file)
rect = Rect.new(0, 0, 24, 24)
self.contents.blt(x, y, bitmap, rect, enabled ? 255 : 128)
end

def draw_item_name(item, x, y, enabled = true)
if item != nil
if item.get_icon
draw_icon2(item.get_icon.to_s, x, y, enabled)
else
draw_icon(item.icon_index, x, y, enabled)
end
self.contents.font.color = normal_color
self.contents.font.color.alpha = enabled ? 255 : 128
self.contents.draw_text(x + 24, y, 172, WLH, item.name)
end
end
end

module Item
ICON = /<ICON*(.*)>/i
end

class RPG::BaseItem
def get_icon
self.note.split(/[rn]+/).each { |line|
if line =~ Item::ICON
a = line.split(/ /)[1]
d = ""
while ((c = a.slice!(/./m)) != nil)
d += c if c != ">"
end
return d
end
}
return nil
end

endin the meno of skill, item, armor or weapon, write:

<ICON filename>

create a new folder and call it "Icons"
put the icon files in the folder

if nothing is written in the memo, then the original icon set from the iconset is used
Comment '2'
  • ?
    Man... 2008.10.27 21:43
    여기다가 무슨 내용인지 댓글 써주세요.
    물론 해석하고..
    그럼 구해 드릴게요....
  • ?
    21stcentury 2008.10.27 22:28
    이거 뭐야...아이템 아이콘을 바꾸는 거네...ㄷㄷ

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 3 습작 2012.12.24 5398
597 영어 잘하는 사람만 보세요..저도 모르겠음(무슨 스크립트인지) 3 Man... 2008.10.27 1372
596 KID's Luck Systems(무슨 뜻?) 4 Man... 2008.10.27 1378
» (?스크립트) 스크립트 읽어서 그래픽 넣으세요.(영어 잘하는 사람만 권장...) 2 Man... 2008.10.27 1444
594 이동 및 탈것 대쉬금지의 변경 1 rukan 2009.07.02 1449
593 무슨 스크립트인지 모름 7 Man... 2008.10.26 1453
592 타이틀/게임오버 Random Title Screen 2 Man... 2008.10.28 1454
591 오디오 사운드 자동 변환 설정 rukan 2009.07.01 1461
590 메뉴 Etude87's Menu Editor for VX 25 습작 2015.01.14 1461
589 변수/스위치 Variable Criticals Man... 2008.10.28 1480
588 Skill Delay VX 4 Man... 2008.10.28 1503
587 기타 Drop Options 1.1 by Modern Algebra 4 Alkaid 2010.09.16 1509
586 타이틀/게임오버 Title Skip System : 타이틀 스킵 file 허걱 2014.03.19 1510
585 Sprite Mover 2 Man... 2008.10.27 1529
584 Path Finding 6 Man... 2008.10.08 1530
583 아이템 Item Price Changer 7 Man... 2008.10.28 1530
582 SephirothSpawn's Slanted Bars in VX 1.1 2 Man... 2008.10.28 1572
581 메뉴 Adding Extra Menu in lafia Script 2 Man... 2008.10.29 1574
580 영상 ??(Avi play ver beta 0.8) 4 Man... 2008.10.28 1575
579 기타 OriginalWij's Script Compilation 1.2 2 Alkaid 2010.09.20 1583
578 장비 Expansion_Suite V2.1! 6 Man... 2008.10.25 1593
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