RPGXP 스크립트
2013.10.01 06:37

대기 회복 스크립트

조회 수 1078 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

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

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
#------------------------------------------------------------
# 대기 회복 스크립트4.0
# 설명 : 일정시간동안 움직이지않고 있으면 회복
#------------------------------------------------------------
#추가된 점
# %로 회복 기능 추가
#------------------------------------------------------------
# 설정
#------------------------------------------------------------
Count = 3 # ?초당 1번씩 회복 초단위임
Hps = 2 # 회복하는 HP의 양
Hpper = true # HP를 회복하는양을 %로 하시겠습니까? true = 예  false = 아니오
             # 50으로 설정되있으면 50%임
Sps = 2 # 회복하는 SP의 양
Spper = false # SP를 회복하는양을 %로 하시겠습니까? true = 예  false = 아니오
             # 30으로 설정되있으면 30%임
Aninum = nil # 회복할때 표시되는 애니메이션번호// 사용 안할경우 nil
#------------------------------------------------------------
class Game_Player
  alias jamsuno_update update
  def coaactor(n)
    $game_party.actors[n]
  end
  def update
    jamsuno_update
    if moving? or jumping?
      @coa = Count * 40
    else
      if @coa == 0 or @coa == nil
        for n in 0...$game_party.actors.size
          hps = Hps
          sps = Sps
          aninum = Aninum
          hpper = Hpper
          spper = Spper
          if $game_party.actors.size >= n+1
            unless coaactor(n).hp == coaactor(n).maxhp and coaactor(n).sp == coaactor(n).maxsp
              @coa = Count * 40
              if hpper == true
                hps = hps * 0.01
                hps = hps * coaactor(n).maxhp
              end
              if spper == true
                sps = sps * 0.01
                sps = sps * coaactor(n).maxsp
              end
              coaactor(n).hp += hps.to_i
              coaactor(n).sp += sps.to_i
              unless aninum == nil
                $game_player.animation_id = aninum
              end
            end
          end
        end
      else
        coareseter = 0
        for n in 0...$game_party.actors.size
          unless coaactor(n).hp == coaactor(n).maxhp and coaactor(n).sp == coaactor(n).maxsp
            coareseter += 1
          end
        end
        unless coareseter ==0
          @coa -= 1
          coareseter = 0
        end
      end
    end
  end
end
?

  1. 모든 글자에 외곽선 넣는 스크립트

    Date2013.09.20 CategoryRPGXP 스크립트 By청담 Views1186 Votes0
    Read More
  2. RPG Maker VX Ace용 로고 스크립트

    Date2014.08.04 CategoryRPGVX Ace 스크립트 ByHUR Views1182 Votes0
    Read More
  3. 화면 다중 분할 플러그인(Multiple Viewports)

    Date2016.08.25 CategoryRPGMV 플러그인 By러닝은빛 Views1180 Votes0
    Read More
  4. 로고 스크립트

    Date2014.12.10 CategoryRPGXP 스크립트 By 운 Views1179 Votes1
    Read More
  5. FPS 표시 스크립트

    Date2013.09.27 CategoryRPGXP 스크립트 By 운 Views1166 Votes0
    Read More
  6. 복권 스크립트

    Date2013.10.01 CategoryRPGXP 스크립트 By Views1147 Votes0
    Read More
  7. 지정한 아이템 갯수 제한 스크립트

    Date2013.09.24 CategoryRPGXP 스크립트 By청담 Views1136 Votes0
    Read More
  8. 동료가 기차처럼 따라오는 스크립트

    Date2013.09.24 CategoryRPGXP 스크립트 By청담 Views1119 Votes0
    Read More
  9. Weather EX 날씨 확장 플러그인입니다.

    Date2016.01.03 CategoryRPGMV 플러그인 ByBeeBee Views1112 Votes0
    Read More
  10. 횡스크롤 스크립트

    Date2013.09.27 CategoryRPGXP 스크립트 By 운 Views1107 Votes0
    Read More
  11. 전투속도 고속화 플러그인.

    Date2015.10.24 CategoryRPGMV 플러그인 By파란별빛 Views1105 Votes0
    Read More
  12. [아힝흥행]레벨한계 돌파 스크립트

    Date2013.09.24 CategoryRPGXP 스크립트 By아힝흥행 Views1099 Votes0
    Read More
  13. UNR (아시려나... ) - 상태 이상

    Date2013.01.20 CategoryRPGXP 스크립트 By동동주 Views1085 Votes0
    Read More
  14. 타이틀 로딩 스크립트

    Date2014.12.07 CategoryRPGXP 스크립트 By 운 Views1081 Votes0
    Read More
  15. 레벨업시 능력치 표시

    Date2013.10.01 CategoryRPGXP 스크립트 By Views1081 Votes0
    Read More
  16. 대기 회복 스크립트

    Date2013.10.01 CategoryRPGXP 스크립트 By Views1078 Votes0
    Read More
  17. 맵상에서 캐릭터 스프라이트 이미지를 offset해주는 플러그인

    Date2016.07.19 CategoryRPGMV 플러그인 Bylklslel Views1075 Votes0
    Read More
  18. 죽었을경우 마을로이동 스크립트

    Date2013.09.24 CategoryRPGXP 스크립트 By청담 Views1067 Votes0
    Read More
  19. 아이템 갯수 제한

    Date2013.10.01 CategoryRPGXP 스크립트 By Views1063 Votes0
    Read More
  20. Bind Pictures To Map (이미지 결합 플러그인)

    Date2015.10.30 CategoryRPGMV 플러그인 By이녕 Views1053 Votes0
    Read More
Board Pagination Prev 1 ... 5 6 7 8 9 10 11 12 13 14 15 Next
/ 15






[개인정보취급방침] | [이용약관] | [제휴문의] | [후원창구] | [인디사이드연혁]

Copyright © 1999 - 2016 INdiSide.com/(주)씨엘쓰리디 All Rights Reserved.
인디사이드 운영자 : 천무(이지선) | kernys(김원배) | 사신지(김병국)