2009.04.02 21:31

경험치 계산

조회 수 492 추천 수 0 댓글 1
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
액알 exp 스크립트 에딥터에 넣을 계산 공식 어디있어요?
  • ?
    니오티소프트 2009.04.04 15:05

    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 


List of Articles
번호 제목 글쓴이 날짜 조회 수
공지 질문전에 반드시 읽어주세요! 독도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 file 귐사랑 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 file 아이란트 2009.05.03 555
565 몬스터 만들기 2 멋진오빠철이 2009.05.04 557
564 게이지바 줄어들게하기 file Cherish 2009.05.06 549
563 심각한 오류 2 file 닉네임이 없습니다 2009.05.10 492
562 깔끔하게 올릴수 는 없나요??? 2 만두가 쫗아 2009.06.07 290
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 30 Next
/ 30

Copyright ⓒ Nioting All Rights Reserved. (since 1999)    개인정보
        

Fatal error: Cannot access property sessionController::$lifetime in /web/old/xe/modules/session/session.controller.php on line 45