赞 | 0 |
VIP | 4 |
好人卡 | 0 |
积分 | 2 |
经验 | 31715 |
最后登录 | 2021-9-11 |
在线时间 | 829 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 180
- 在线时间
- 829 小时
- 注册时间
- 2010-6-26
- 帖子
- 671
|
又找到一个脚本,让附加某状态的主角得不到经验值- #===============================================================================
- # No Actor EXP Snippet
- # By Jet10985 (Jet)
- # Help by: OriginalWij
- #===============================================================================
- # This snippet allows you to define actors throughout the game that will not
- # gain exp AT ALL. Note: They can still level up trough the event command.
- # This script has: 1 customization option.
- #===============================================================================
- # Overwritten Methods:
- # None
- #-------------------------------------------------------------------------------
- # Aliased methods:
- # Game_Actor: change_exp
- # Game_System: initialize
- #===============================================================================
- =begin
- Adding Actors:
- To add Actors to the list of actors that don't gain exp use:
- no_exp_gain(actor)
- where actor is the id of the actor you don't want gaining exp.
- Removing Actors:
- To allow an actor to gain exp again, use:
- yes_exp_gain(actor)
- where actor is the id of the actor you want to gain exp again.
- =end
- module NoActorEXP
-
- # These are actors that will not gain exp by default. They
- # can be removed from here by using the yes_exp_gain(actor)
- NO_ACTOR_EXP = [6, 7, 8]
-
- NO_EXP_STATE = 17 # A state that will prevent exp gain until cured.
-
- end
- #===============================================================================
- # DON'T EDIT FURTHER UNLESS YOU KNOW WHAT TO DO.
- #===============================================================================
- class Game_Actor
-
- include NoActorEXP
-
- alias jet1999_change_exp change_exp unless $@
- def change_exp(exp, show)
- if NO_ACTOR_EXP != nil
- jet1999_change_exp(exp, show) unless $game_system.no_exp_actors.include?(@actor_id) || @states.include?(NO_EXP_STATE)
- end
- end
- end
- class Game_System
-
- include NoActorEXP
-
- attr_accessor :no_exp_actors
-
- alias jet1092_initialize initialize unless $@
- def initialize
- jet1092_initialize
- @no_exp_actors = NO_ACTOR_EXP.clone
- end
- end
- class Game_Interpreter
-
- include NoActorEXP
-
- def no_exp_gain(actor)
- $game_system.no_exp_actors.push(actor) unless $game_system.no_exp_actors.include?(actor)
- end
-
- def yes_exp_gain(actor)
- $game_system.no_exp_actors.delete(actor) if $game_system.no_exp_actors.include?(actor)
- end
- end
- unless $engine_scripts.nil?
- JetEngine.active("No Actor EXP", 1.1)
- end
复制代码 |
评分
-
查看全部评分
|