BattleItemHelp XP
BattleItemHelp XPby Kyonides
Introduction
This scriptlet allows you to change the way the help window works while selecting an enemy. Even if you've just selected the attack option, it will be displayed on screen and hide at the right time.
Just take a look at the picture below to learn what will you get from it.
Ruby:
# * BattleItemHelp XP * #
# Plug & Play Script
# Scripter : Kyonides Arkanthes
# 2024-03-29
class Game_BattleAction
def attack?
@kind == 0 and @basic == 0
end
def skill?
@kind == 1 and @skill_id > 0
end
def item?
@item_id > 0
end
def enemy_target?
attack? or skill?
end
end
class Window_Help
def set_actor(actor)
if actor != @actor
self.contents.clear
draw_actor_name(actor, 4, 0)
draw_actor_state(actor, 140, 0)
draw_actor_hp(actor, 284, 0)
draw_actor_sp(actor, 460, 0)
@actor = actor
@text = nil
self.visible = true
end
end
def set_enemy(enemy)
@text = nil
contents.clear
draw_actor_name(enemy, 4, 0)
draw_actor_state(enemy, 140, 0)
draw_actor_hp(enemy, 284, 0)
draw_actor_sp(enemy, 460, 0)
end
end
class Window_Skill
def visible=(bool)
super(bool)
update_help if @help_window
end
end
class Scene_Battle
alias :kyon_blt_item_help_scn_btl_start_enemy_sel :start_enemy_select
def start_enemy_select
kyon_blt_item_help_scn_btl_start_enemy_sel
@enemy_arrow.update_help
@help_window.visible = @active_battler.current_action.enemy_target?
end
end
Terms & Conditions
Free for use in non-commercial games.
It's not that complex to be used in commercial games, IMHO.
Due credit is mandatory.
Mention this forum in your game credits.
That's it!
data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
本贴来自国际rpgmaker官方论坛作者:kyonides处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/battleitemhelp-xp.167307/
页:
[1]