VX 스크립트

#======================================================================
========
# � [RMVX Script] +MAX Level Limitation System+ Version 1.1
#------------------------------------------------------------------------------
# by Woratana [woratana@hotmail.com]
# Release Date: 30/01/2008
#
# Features in Version 1.1
# - Use alias to make the script shorter. Thanks Modern Algebra for suggestion.
# Features in Version 1.0
# - Set Default Max Level for Actor that doesn't need Specific Max Level
# - Allow to Set Specific Max Level for Specific Character
#
# How to Set Max Level
# - For all the Actors that don't need specific max level,
# set their Max Level in DEFAULT_LV_MAX = ...
# For example, DEFAULT_LV_MAX = 20
# This will make all the characters that you didn't set their specific max level
# have their max level at 20.
#
# - For the Actors that need specific max level,
# set their Max Level by:
# CHAR[actor's id from database] = ...
# For example, CHAR[7] = 10
# This will make character no.7 in database has max level at 10.
#==============================================================================

module Wormaxlv
CHAR = Array.new
#------------------------------------
# SETUP MAX Level HERE
#------------------------------------
DEFAULT_LV_MAX = 99 # Set Default Max Level
CHAR[1] = 5 # This make Character No.1 has max level at 5
end

class Scene_Battle < Scene_Base

def display_level_up
exp = $game_troop.exp_total
for actor in $game_party.existing_members
last_level = actor.level
last_skills = actor.skills
actor.gain_exp(exp, true)
end
wait_for_message
end

end

class Game_Actor < Game_Battler
attr_accessor :max_lv

alias wor_actor_setup setup
def setup(actor_id)
wor_actor_setup(actor_id)
if Wormaxlv::CHAR[actor_id] == nil
@max_lv = Wormaxlv::DEFAULT_LV_MAX
else
@max_lv = Wormaxlv::CHAR[actor_id]
end
end

def change_exp(exp, show)
last_level = @level
last_skills = skills
@exp = [[exp, 9999999].min, 0].max
while @exp >= @exp_list[@level+1] and @exp_list[@level+1] > 0 and @level <= (@max_lv - 1)
level_up
end
while @exp < @exp_list[@level]
level_down
end
@hp = [@hp, maxhp].min
@mp = [@mp, maxmp].min
if show and @level > last_level
display_level_up(skills - last_skills)
end
Comment '3'

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 3 습작 2012.12.24 5453
477 ??? 2 Man... 2008.10.27 1334
476 ??(다 영어)여기서 부터 드레그만 빼고 Man... 2008.10.27 1079
475 AutoLight v3.7(?) 6 Man... 2008.10.27 1647
474 Screen Shortcut Script Man... 2008.10.27 1142
473 다운로드 링크로 가세요.(스크린 샷 올려놨음) 5 Man... 2008.10.27 1618
472 Scene_Credit script Plug & Play 1 Man... 2008.10.27 1086
471 LevelMe v1.2 3 Man... 2008.10.27 1154
470 Jens009's Critical Flash 1.0 3 Man... 2008.10.27 1240
469 컴퓨스트 플레이어 워크(?) 2 Man... 2008.10.27 1304
468 변수/스위치 MapSwitch VX Version: 1.1 1 Man... 2008.10.27 1327
467 Sprite Mover 2 Man... 2008.10.27 1529
466 (?스크립트) 스크립트 읽어서 그래픽 넣으세요.(영어 잘하는 사람만 권장...) 2 Man... 2008.10.27 1444
465 아이템 ~[Hide Item]~ Man... 2008.10.27 1599
464 Skill Delay VX 4 Man... 2008.10.28 1503
463 레오 저장 스크립트 9 Man... 2008.10.28 2529
462 Menu Background Effects(온라인 스크립트 올릴려고 했다가 못 올렸음)아깝다.. Man... 2008.10.28 1665
» MAX Level Limitation System 3 Man... 2008.10.28 1198
460 Good VS EVil? 4 Man... 2008.10.28 1641
459 아이템 아이템 프라이스 체인저?? Man... 2008.10.28 2389
458 미니맵 Map-System by AmIMeYet [미니맵] 9 Man... 2008.10.28 2747
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 32 Next
/ 32