XP 스크립트

This is a cool edition I have done in the Status screen, so I want to share it.

First, have the Faces script

CODE

def draw_actor_face(actor, x, y)
face = RPG::Cache.character("Faces/" + actor.character_name, actor.character_hue)
fw = face.width
fh = face.height
src_rect = Rect.new(0, 0, fw, fh)
self.contents.blt(x - fw / 23, y - fh, face, src_rect)
end




Make a folder named Faces

Then, In Window_Status, find first this line.

CODE

draw_actor_graphic(@actor, 40, 112)



Change it to.

CODE
draw_actor_face(@actor, 150, 450)


For this, I recommend to have your battler as face. Name the face the same as the character et you are using.

Then, on this lines.

CODE
self.contents.draw_text(320, 48, 80, 32, "Exp")
    self.contents.draw_text(320, 80, 80, 32, "Next Level")
    self.contents.font.color = normal_color
    self.contents.draw_text(320 + 80, 48, 84, 32, @actor.exp_s, 2)
    self.contents.draw_text(320 + 80, 80, 84, 32, @actor.next_rest_exp_s, 2)
    self.contents.font.color = system_color
    self.contents.draw_text(320, 160, 96, 32, "Equipment")
    draw_item_name($data_weapons[@actor.weapon_id], 320 + 16, 208)
    draw_item_name($data_armors[@actor.armor1_id], 320 + 16, 256)
    draw_item_name($data_armors[@actor.armor2_id], 320 + 16, 304)
    draw_item_name($data_armors[@actor.armor3_id], 320 + 16, 352)
    draw_item_name($data_armors[@actor.armor4_id], 320 + 16, 400)



Change it to.
CODE
    self.contents.draw_text(420, 48, 80, 32, "Exp")
    self.contents.draw_text(420, 80, 80, 32, "Next Level")
    self.contents.font.color = normal_color
    self.contents.draw_text(420 + 80, 48, 84, 32, @actor.exp_s, 2)
    self.contents.draw_text(420 + 80, 80, 84, 32, @actor.next_rest_exp_s, 2)
    self.contents.font.color = system_color
    self.contents.draw_text(480, 160, 96, 32, "Equipment")
    draw_item_name($data_weapons[@actor.weapon_id], 420 + 16, 208)
    draw_item_name($data_armors[@actor.armor1_id], 420 + 16, 256)
    draw_item_name($data_armors[@actor.armor2_id], 420 + 16, 304)
    draw_item_name($data_armors[@actor.armor3_id], 420 + 16, 352)
    draw_item_name($data_armors[@actor.armor4_id], 420 + 16, 400)



I hope it will work for you.

If it works, it could look like this.



I don't want to call it script. It's just an edit, that's very cool.

Hope you like it. Credits To Sephirothspawn for the Bars script, wich is seperate to this script.
Comment '10'
  • ?
    rpg게임만들기왕 2009.01.16 18:43
    아방스 님께서 올려주시는 거면 모조리 영어인가요?
    비판하는것 처럼 들렸으면 ㅈㅅ 합니다.
  • ?
    김요다 2009.01.22 17:43
    한국 스크립터들은 이런 활동을 안하고있기 때문이죠 - -;
    다운받는 사람만 많구..
    외국 스크립터 작품이기때문에 영어나 기타언어로 되어있는것입니다.
  • ?
    비공개아이디 2009.01.22 19:27
    으음 어렵네요 ㅎㄷㄷ
  • ?
    나뚜루 2009.01.31 11:37
    킁 설명이 영어 ㄷㄷ
    그나저나 이건 알아서 바꾸는거군요 ㅡ.ㅡㅋ;
  • profile
    박빙고 2009.06.04 21:25
    으...난 영어에 약한데..ㅠㅠ
  • ?
    김카샤 2009.07.03 22:10
    아 좋네요ㅋ 캐릭터 이미지를 넣을 수 있으니까 좀더 간지나는 듯 ㅋㅋ ><
  • ?
    탁구공 2010.01.05 09:29

    허헛 저 캐릭터는 아오오니의 타쿠로 아닌가??ㅋ

  • ?
    카비 2010.01.05 13:14

    이게무슨 스크립트이죠?

  • ?
    내로미 2010.04.02 22:39

    아.. 아오오니... 의... 타쿠로.. 우힝... 타쿠로 미남이당~ ㅋ

  • ?
    코아 코스튬 2010.10.02 20:30

    스크립트 말고 저 폰트 갖고싶다,,,