액알 exp 스크립트 에딥터에 넣을 계산 공식 어디있어요?
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
공지 | 질문전에 반드시 읽어주세요! | 독도2005 | 2009.05.14 | 597 |
580 | RPG를 만들기 위해서는 무엇부터 해야하나요 , ? 1 | Hwg | 2009.03.03 | 584 |
579 | 네트워크 rpg에 관련된 것들이 없습니다... 2 | 캬오~ | 2009.03.09 | 411 |
578 | 게임을 만드는.. 3 | 미라 | 2009.03.18 | 581 |
577 | 아디 3 | 쪼까뿌 | 2009.03.19 | 464 |
576 | 트릭스터 처럼 귀엽고 마우스로 움직이는 게임 만들기 1 | 귐사랑 | 2009.03.26 | 794 |
575 | 액션알피지 만들기 질문 3 | 호나우당면 | 2009.04.01 | 713 |
» | 경험치 계산 1 | 호나우당면 | 2009.04.02 | 492 |
573 | rpg만들기2003 1 | OTL 안하기 | 2009.04.05 | 664 |
572 | rpg만들기2003 1 | OTL 안하기 | 2009.04.05 | 534 |
571 | xp만들때.. 문제점.. 2 | 3k34dd | 2009.04.10 | 616 |
570 | xp타이틀 화면 변경 1 | 3k34dd | 2009.04.11 | 628 |
569 | 직업선택하기 4 | SHC | 2009.04.28 | 544 |
568 | 안녕하세요. 처음... 1 | 허니비 | 2009.05.02 | 556 |
567 | 초보가 친구들이랑 넷알 하고싶습니다. 1 | 하앍1 | 2009.05.02 | 510 |
566 | (NRPG)오류가 나요;; 4 | 아이란트 | 2009.05.03 | 555 |
565 | 몬스터 만들기 2 | 멋진오빠철이 | 2009.05.04 | 557 |
564 | 게이지바 줄어들게하기 | Cherish | 2009.05.06 | 549 |
563 | 심각한 오류 2 | 닉네임이 없습니다 | 2009.05.10 | 492 |
562 | 깔끔하게 올릴수 는 없나요??? 2 | 만두가 쫗아 | 2009.06.07 | 290 |
xp 말씀하시는것인가요?
class Game_Actor < Game_Battler
def exp_rate
if @exp_list[@level+1] - @exp_list[@level] > 0
return (@exp - @exp_list[@level]).to_f / (@exp_list[@level+1] - @exp_list[@level]).to_f
else
return 0
end
end
end
class Window_ExpRate < Window_Base
def initialize
super(0, 0, 125, 55) # <- location, size
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font = Font.new("궁서체", 16) # <- font, size
self.opacity = 0
self.back_opacity = 0
end
def refresh
self.contents.clear
self.contents.draw_text(0, 0, 100, 30, @show_text)
end
def actor
$game_party.actors[0] # <- 파티 0번째
end
def update
super
text = sprintf("경험치: %d%%", (actor.exp_rate * 100).to_i)
if @show_text != text
@show_text = text
refresh
end
end
end
class Scene_Map
alias update_before_map update
def update
update_before_map
@window_exp = Window_ExpRate.new unless @window_exp
@window_exp.update
unless $scene.is_a?(Scene_Map)
@window_exp.dispose
@window_exp = nil
end
end
end