RPGXP 스크립트
2013.09.24 08:16

레벨업시 전회복 스크립트

조회 수 694 추천 수 0 댓글 2
?

단축키

Prev이전 문서

Next다음 문서

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

단축키

Prev이전 문서

Next다음 문서

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

class Game_Actor의 아래 부분을: 
#-------------------------------------------------------------------------- 
# * Change EXP 
# exp : new EXP 
#-------------------------------------------------------------------------- 
def exp=(exp) 
@exp = [[exp, 9999999].min, 0].max 
# Level up 
while @exp >= @exp_list[@level+1] and @exp_list[@level+1] > 0 
@level += 1 
# Learn skill 
for j in $data_classes[@class_id].learnings 
if j.level == @level 
learn_skill(j.skill_id) 
end 
end 
end 
# Level down 
while @exp < @exp_list[@level] 
@level -= 1 
end 
# Correction if exceeding current max HP and max SP 
@hp = [@hp, self.maxhp].min 
@sp = [@sp, self.maxsp].min 
end 


아래처럼 수정하면 됩니다: 
#-------------------------------------------------------------------------- 
# * Change EXP 
# exp : new EXP 
#-------------------------------------------------------------------------- 
def exp=(exp) 
@exp = [[exp, 9999999].min, 0].max 
# Level up 
while @exp >= @exp_list[@level+1] and @exp_list[@level+1] > 0 
@level += 1 
# Learn skill 
for j in $data_classes[@class_id].learnings 
if j.level == @level 
learn_skill(j.skill_id) 
end 
end 
# heal 
@hp = self.maxhp 
@sp = self.maxsp 
end 
# Level down 
while @exp < @exp_list[@level] 
@level -= 1 
end 
# Correction if exceeding current max HP and max SP 
@hp = [@hp, self.maxhp].min 
@sp = [@sp, self.maxsp].min 
end 


**아마 전투가 아닌 이벤트를 통한 경험치 입수로 레벨업했을 때에도 전회복이 가능한 것 같습니다. 

**rmxp.net에 과거에 올라왔다고 하는데, .org에 누군가가 올려놓은 것에서 get.


by ccoa

?
  • ?
    아츠 2014.03.05 18:01
    감사합니다!
  • ?
    jeraru 2015.01.03 00:42
    감사 합니다!!!!
    다른건 복붙해도 안대는데 이건 되네요 ㅎㅎ 감사해요!!!!

  1. 맵이름 표시 스크립트

    Date2013.10.05 CategoryRPGXP 스크립트 By 운 Views2246 Votes0
    Read More
  2. 맵 이름을 화면 상단에 띄우기.

    Date2008.10.12 CategoryRPGXP 스크립트 By창조도시 Views2083 Votes1
    Read More
  3. 맵 이름을 화면 상단에 띄우기.

    Date2008.10.12 CategoryRPGXP 스크립트 By창조도시 Views2747 Votes1
    Read More
  4. 맵 이름 표시 스크립트

    Date2013.09.20 CategoryRPGXP 스크립트 By청담 Views1441 Votes0
    Read More
  5. 맵 이동시 로딩 그림 표시 스크립트

    Date2013.09.24 CategoryRPGXP 스크립트 By청담 Views718 Votes0
    Read More
  6. 말풍선 메세지 스크립트

    Date2014.02.24 CategoryRPGXP 스크립트 By천둥번들 Views1855 Votes0
    Read More
  7. 로고를 띄우는 스크립트

    Date2013.10.07 CategoryRPGXP 스크립트 ByXEONSOFT블로그 Views1681 Votes0
    Read More
  8. 로고 스크립트

    Date2014.12.10 CategoryRPGXP 스크립트 By 운 Views1179 Votes1
    Read More
  9. 레벨업시 전회복 스크립트

    Date2013.09.24 CategoryRPGXP 스크립트 By청담 Views694 Votes0
    Read More
  10. 레벨업시 능력치 표시

    Date2013.10.01 CategoryRPGXP 스크립트 By Views1081 Votes0
    Read More
  11. 동료가 기차처럼 따라오는 스크립트

    Date2013.09.24 CategoryRPGXP 스크립트 By청담 Views1119 Votes0
    Read More
  12. 대화창에 이름&얼굴 띄우기 새로운방식.

    Date2007.11.06 CategoryRPGXP 스크립트 By창조도시 Views3483 Votes3
    Read More
  13. 대화창에 이름&얼굴 띄우기 새로운방식.

    Date2007.11.06 CategoryRPGXP 스크립트 By창조도시 Views3594 Votes3
    Read More
  14. 대화창에 얼굴 띄우기& 대화창 명령어 모음.

    Date2008.12.31 CategoryRPGXP 스크립트 By창조도시 Views2083 Votes1
    Read More
  15. 대화창에 얼굴 띄우기& 대화창 명령어 모음.

    Date2008.12.31 CategoryRPGXP 스크립트 By창조도시 Views2823 Votes1
    Read More
  16. 대화에 얼굴이 나오는 스크립트 by: killarot(네이버 dust_mite)(수정버전)

    Date2016.02.22 CategoryRPGXP 스크립트 By부초 Views1899 Votes0
    Read More
  17. 대화 글씨가 한글자씩 나오는 스크립트

    Date2013.09.24 CategoryRPGXP 스크립트 By청담 Views1417 Votes0
    Read More
  18. 대화 글씨 폰트를 원하는 폰트로 바꾸기

    Date2007.12.01 CategoryRPGXP 스크립트 By창조도시 Views1392 Votes2
    Read More
  19. 대화 글씨 폰트를 원하는 폰트로 바꾸기

    Date2007.12.01 CategoryRPGXP 스크립트 By창조도시 Views1813 Votes2
    Read More
  20. 대기 회복 스크립트

    Date2013.10.01 CategoryRPGXP 스크립트 By Views1078 Votes0
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 Next
/ 8






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

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