XP 스크립트

#--------------------------------------------------------------------------
#HP bars for all ABS enemies
#By Takanuva Hagah
#--------------------------------------------------------------------------
class Window_Enemy < Window_Base
def initialize
super(-16, -16, 672, 640)
self.contents = Bitmap.new(width-32, height-32)
self.opacity = 0
self.contents.font.size = 14
@old_enemy = $ABS.enemies.size
for i in 0...$ABS.enemies.size
event_z = $ABS.enemies.values[i].event_id
@old_x = $game_map.events[event_z].real_x
@old_y = $game_map.events[event_z].real_y
@old_hp = $ABS.enemies.values[i].hp
end
@player_x = $game_player.real_x
@player_y = $game_player.real_y
refresh
end
def refresh
self.contents.clear
self.contents.font.color = system_color
self.contents.draw_text(6, 28, 32, 14, "")
self.contents.font.color = normal_color
for i in 0...$ABS.enemies.size
event_z = $ABS.enemies.values[i].event_id
x = ($game_map.events[event_z].real_x - $game_map.display_x) / 4
y = ($game_map.events[event_z].real_y - $game_map.display_y) / 4
data_id = $ABS.enemies.values[i].id
e2 = $data_enemies[data_id].maxhp
e1 = $ABS.enemies.values[i].hp
self.contents.draw_text(x-10, y-50, 73, 14, $ABS.enemies.values[i].name)
draw_enemy_bar("", x, y+40, 30, 5, Color.new(255, 255, 0), Color.new(204, 204, 0), e1, e2)
end
end
def update
super
if @old_enemy != $ABS.enemies.size
refresh
@old_enemy = $ABS.enemies.size
end
if @player_x != $game_player.real_x or
@player_y != $game_player.real_y
refresh
@player_x = $game_player.real_x
@player_y = $game_player.real_y
end
for i in 0...$ABS.enemies.size
event_z = $ABS.enemies.values[i].event_id
if @old_x != $game_map.events[event_z].real_x or
@old_y != $game_map.events[event_z].real_y or
@old_hp[i] != $ABS.enemies.values[i].hp
refresh
event_z = $ABS.enemies.values[i].event_id
@old_x = $game_map.events[event_z].real_x
@old_y = $game_map.events[event_z].real_y
@old_hp = $ABS.enemies.values[i].hp
end
end
end
def draw_enemy_bar(actor, x, y, length, thick, c1, c2, e1, e2)
width = length
height = thick
self.contents.fill_rect(x-1, y - 1, width+2, height + 3, Color.new(255, 255, 255, 255))
self.contents.fill_rect(x, y, width, height + 1, Color.new(0, 0, 0, 255))
w = width * e1 / e2
for i in 0..height
r = c1.red + (c2.red - c1.red) * (height -i)/height + 0 * i/height
g = c1.green + (c2.green - c1.green) * (height -i)/height + 0 * i/height
b = c1.blue + (c2.blue - c1.blue) * (height -i)/height + 0 * i/height
a = c1.alpha + (c2.alpha - c1.alpha)* (height -i)/height + 255 * i/height
self.contents.fill_rect(x, y+i, w, 1, Color.new(r, g, b, a))
end
end
end
class Scene_Map
alias enemy_scene_map_main main
alias enemy_scene_map_update update
def main
@enemy = Window_Enemy.new
enemy_scene_map_main
@enemy.dispose
end
def update
@enemy.update
enemy_scene_map_update
end
end

Who's 아방스

profile
Atachment
첨부 '1'
Comment '13'
  • profile
    아방스 2007.11.09 20:09
    sbabs 스크립트 3번 페이지 밑에 삽입을 하시면 됩니다.

    동영상 설명은 차후에 올려드리도록 하겠습니다.
  • ?
    sang 2007.11.11 22:41
    3번페이지 밑이라뇨?
    무슨말이죠?
  • ?
    매인RPG 2007.11.14 16:52
    3번 페이지 밑이 무슨 말입니까 아방스님...
  • ?
    매인RPG 2007.11.14 16:52
    3번 페이지 밑이 무슨 말입니까 아방스님...
  • ?
    sang 2007.11.16 11:23
    이 동영상 강의 동영상으로 언제 강의해주시죠???
  • ?
    distroed 2007.11.16 20:06

    이 스크립트는 SBABS 버전의 액알 스크립트없인 사용할수 없습니다.

  • ?
    어쩌라고 2008.01.10 17:49
     이 스크립트 스크립트 에디터에서 SBABS3에 넣으면 되요.
    게이지랑 이름이랑 같이 뜨네
  • ?
    안녕하세요 2008.02.10 21:17
    아방스님.. 요거.. 느린반응은 어덯게 해야하죠??
  • ?
    F-22 Raptor 2008.02.15 18:22
    이 스크립트를 적용하니까 2마리 이상 넣을 때 느려지던데
  • ?
    ㅇㅇㅇㅇ 2008.02.19 14:16

    역시 않하길잘햇다

  • ?
    곽지용 2008.06.12 16:34
    너무느려요 ㅋㅋ
  • ?
    건빵지존 2008.11.10 20:50
    SBABS의 단점 - 키가 안바뀐다... 젭라
  • ?
    rpgxp요원 2008.11.18 17:21
    이런.. 이거 혹시 ABS전용인가.. 안된다.. ㅠㅠ

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6153
721 아이템 소지/구입 아이템 갯수 99개 이상 가능(약간 수정) 2 백호 2009.02.22 1103
720 변수/스위치 셀프 스위치 조작 10 file 허걱 2009.01.30 2655
719 저장 세이브파일 망가뜨리기 by RPG Advocate 3 백호 2009.02.22 2657
718 저장 세이브 슬롯 갯수 증가와 세이브 덮어씌울 때 확인 by RPG Advocate 5 백호 2009.02.22 1505
717 저장 세이브 & 로드 화면 개조 스크립트 file 백호 2009.02.21 1962
716 스킬 선택 스킬 스크립트 4 file 백호 2009.02.21 1631
715 HUD 새로운방법의 맵이름 표시 31 file 백호 2009.02.21 4617
714 이동 및 탈것 새로운 픽셀 이동 스크립트 27 file 케나이 2010.04.10 3496
713 메뉴 새로운 메뉴 시스템 을 한글화 및 약간 개조 3 file 백호 2009.02.21 2203
712 메뉴 새로운 메뉴 15 file 또라에몽 2010.07.17 5302
711 메뉴 새로운 cms 4 file 백호 2009.02.22 2117
710 상태/속성 상태창 표시 Ver 8.0 // 글씨 위치 변경 기능 + 변수 한글 7 file 코아 코스튬 2010.09.24 2559
709 상점 상점에서 Q.W버튼으로 순서를 바꿈!상점스텟 상세화 업그레이드 1 백호 2009.02.21 1714
708 상점 상점에 물방,마방 구별, 무기의 능력치 상세화 5 file 백호 2009.02.21 2512
707 상점 상점아템 가격변동(중뷁?) 4 캉쿤 2011.09.14 2188
706 상점 상점 직접 장비 스크립트 1 file 백호 2009.02.21 1771
705 상점 상점 시세 변동 스크립트 수정판 3 백호 2009.02.22 1518
704 기타 상점 변동시세 적용 스크립트 3 file 백호 2009.02.21 1162
703 상점 상점 메뉴 개조시킨 스크립트 [한글] 35 file 백호 2009.02.21 3566
702 상점 상점 메뉴 개조시킨 스크립트 - 수정 - 2 file 백호 2009.02.21 1818
Board Pagination Prev 1 ... 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 ... 52 Next
/ 52