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 이동 및 탈것 Mouse_move file 백호 2009.02.21 922
720 기타 [KGC]강화스크립트 백호 2009.02.21 1667
719 이동 및 탈것 마우스 이동 조금 뜯어봤습니다. file 백호 2009.02.21 1680
718 전투 시뮬레이션 턴알 3 file 백호 2009.02.21 3054
717 이동 및 탈것 Mouse_move 호환버전 1 file 백호 2009.02.21 1059
716 기타 레벨9999스크립트 4 백호 2009.02.21 1151
715 이동 및 탈것 Mouse_move 호환 100%강화버전 4 file 백호 2009.02.21 1512
714 메시지 문자 메세지 띄우기 스크립트 10 file 백호 2009.02.21 3069
713 이동 및 탈것 젤다 스타일 맵스크롤 5 file 백호 2009.02.21 1839
712 메뉴 Tales Of Symphonia Menu 8 file 백호 2009.02.21 1744
711 장비 [KGC]장비 제한(레벨,완력등등) 7 file 백호 2009.02.21 1780
710 기타 [KGC]HP&SP게이지 색다른것(글씨와 게이지가 안겹침) 10 file 백호 2009.02.21 2732
709 아이템 아이템 정리기능 S크립T 1 file 백호 2009.02.21 1081
708 기타 무기& 방어구 레벨제한 스크립트 23 file 백호 2009.02.21 1880
707 HUD 직업명띄우기 스크립트 2 백호 2009.02.21 1123
706 전투 A-battle 수정 file 백호 2009.02.21 1155
705 기타 말걸면그림천천히뜨기 4 file 백호 2009.02.21 1102
704 전투 횡스크롤형식의 스크립트 7 백호 2009.02.21 2973
703 HUD 새로운방법의 맵이름 표시 31 file 백호 2009.02.21 4617
702 메뉴 제가 쓰는 메뉴 14 file 백호 2009.02.21 2318
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