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
477 ??? 2 Man... 2008.10.27 1329
476 ??(다 영어)여기서 부터 드레그만 빼고 Man... 2008.10.27 1078
475 AutoLight v3.7(?) 6 Man... 2008.10.27 1646
474 Screen Shortcut Script Man... 2008.10.27 1142
473 다운로드 링크로 가세요.(스크린 샷 올려놨음) 5 Man... 2008.10.27 1618
472 Scene_Credit script Plug & Play 1 Man... 2008.10.27 1085
471 LevelMe v1.2 3 Man... 2008.10.27 1154
470 Jens009's Critical Flash 1.0 3 Man... 2008.10.27 1240
469 컴퓨스트 플레이어 워크(?) 2 Man... 2008.10.27 1304
468 변수/스위치 MapSwitch VX Version: 1.1 1 Man... 2008.10.27 1327
467 Sprite Mover 2 Man... 2008.10.27 1529
» (?스크립트) 스크립트 읽어서 그래픽 넣으세요.(영어 잘하는 사람만 권장...) 2 Man... 2008.10.27 1444
465 아이템 ~[Hide Item]~ Man... 2008.10.27 1597
464 Skill Delay VX 4 Man... 2008.10.28 1503
463 레오 저장 스크립트 9 Man... 2008.10.28 2529
462 Menu Background Effects(온라인 스크립트 올릴려고 했다가 못 올렸음)아깝다.. Man... 2008.10.28 1665
461 MAX Level Limitation System 3 Man... 2008.10.28 1198
460 Good VS EVil? 4 Man... 2008.10.28 1641
459 아이템 아이템 프라이스 체인저?? Man... 2008.10.28 2385
458 미니맵 Map-System by AmIMeYet [미니맵] 9 Man... 2008.10.28 2746
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