Okay, so this script
https://forums.rpgmakerweb.com/index.php?threads/euphoria-threat-system.31138/
Keeps giving me problems, though I fixed most of them so far...
When used with Yanfly Battle Engine, it has an option to turn on icon view, which shows Threat level with icons. Those icons go in left corner of character's face, where Yanfly action icons are displayed (when you use a skill or select target), overriding them.
However, even if you turn those Threat icons off, they still override Yanfly icons, so I'm left with nothing. White space. Yanfly icons are not displayed. Since I'm not using Threat icons, I'd like to keep Yanfly icons, but idk how to prevent script from touching that zone at all, it's quite complex.
Any advice please?
Here's the part where it does icons, specifically if Yanfly script is present:
https://forums.rpgmakerweb.com/index.php?threads/euphoria-threat-system.31138/
Keeps giving me problems, though I fixed most of them so far...
When used with Yanfly Battle Engine, it has an option to turn on icon view, which shows Threat level with icons. Those icons go in left corner of character's face, where Yanfly action icons are displayed (when you use a skill or select target), overriding them.
However, even if you turn those Threat icons off, they still override Yanfly icons, so I'm left with nothing. White space. Yanfly icons are not displayed. Since I'm not using Threat icons, I'd like to keep Yanfly icons, but idk how to prevent script from touching that zone at all, it's quite complex.
Any advice please?
Here's the part where it does icons, specifically if Yanfly script is present:
def draw_item(index)
return if index.nil?
clear_item(index)
actor = battle_members[index]
rect = item_rect(index)
return if actor.nil?
draw_actor_face(actor, rect.x+2, rect.y+2, actor.alive?)
draw_actor_name(actor, rect.x, rect.y, rect.width-8)
draw_actor_icons(actor, rect.x, line_height*1, rect.width)
gx = YEA::BATTLE::BATTLESTATUS_HPGAUGE_Y_PLUS
contents.font.size = YEA::BATTLE::BATTLESTATUS_TEXT_FONT_SIZE
draw_actor_hp(actor, rect.x+2, line_height*2+gx, rect.width-4)
if Euphoria::Threat::ICON_VIEW == true
if draw_tp?(actor) && draw_mp?(actor)
dw = rect.width/2-2
dw += 1 if $imported["YEA-CoreEngine"] && YEA::CORE::GAUGE_OUTLINE
draw_actor_tp(actor, rect.x+2, line_height*3, dw)
dw = rect.width - rect.width/2 - 2
draw_actor_mp(actor, rect.x+rect.width/2, line_height*3, dw)
elsif draw_tp?(actor) && !draw_mp?(actor)
draw_actor_tp(actor, rect.x+2, line_height*3, rect.width-4)
else
dw = rect.width/2-2
dw += 1 if $imported["YEA-CoreEngine"] && YEA::CORE::GAUGE_OUTLINE
draw_threat_icons(actor, rect.x - 24, rect.y, 24)
draw_actor_mp(actor, rect.x+2, line_height*3, dw)
end
else #<===== This is where it processes option with no icons, yet it still kills Yanfly icons...
if draw_tp?(actor) && draw_mp?(actor)
dw = rect.width/2-2
dw += 1 if $imported["YEA-CoreEngine"] && YEA::CORE::GAUGE_OUTLINE
draw_actor_tp(actor, rect.x+2, line_height*3, dw)
dw = rect.width - rect.width/2 - 2
draw_actor_mp(actor, rect.x+rect.width/2, line_height*3, dw)
elsif draw_tp?(actor) && !draw_mp?(actor)
draw_actor_tp(actor, rect.x+2, line_height*3, rect.width-4)
else
dw = rect.width/2-2
dw += 1 if $imported["YEA-CoreEngine"] && YEA::CORE::GAUGE_OUTLINE
draw_actor_threat(actor, rect.x+rect.width/2, line_height*3, dw)
draw_actor_mp(actor, rect.x+2, line_height*3, dw)
end
end
end
return if index.nil?
clear_item(index)
actor = battle_members[index]
rect = item_rect(index)
return if actor.nil?
draw_actor_face(actor, rect.x+2, rect.y+2, actor.alive?)
draw_actor_name(actor, rect.x, rect.y, rect.width-8)
draw_actor_icons(actor, rect.x, line_height*1, rect.width)
gx = YEA::BATTLE::BATTLESTATUS_HPGAUGE_Y_PLUS
contents.font.size = YEA::BATTLE::BATTLESTATUS_TEXT_FONT_SIZE
draw_actor_hp(actor, rect.x+2, line_height*2+gx, rect.width-4)
if Euphoria::Threat::ICON_VIEW == true
if draw_tp?(actor) && draw_mp?(actor)
dw = rect.width/2-2
dw += 1 if $imported["YEA-CoreEngine"] && YEA::CORE::GAUGE_OUTLINE
draw_actor_tp(actor, rect.x+2, line_height*3, dw)
dw = rect.width - rect.width/2 - 2
draw_actor_mp(actor, rect.x+rect.width/2, line_height*3, dw)
elsif draw_tp?(actor) && !draw_mp?(actor)
draw_actor_tp(actor, rect.x+2, line_height*3, rect.width-4)
else
dw = rect.width/2-2
dw += 1 if $imported["YEA-CoreEngine"] && YEA::CORE::GAUGE_OUTLINE
draw_threat_icons(actor, rect.x - 24, rect.y, 24)
draw_actor_mp(actor, rect.x+2, line_height*3, dw)
end
else #<===== This is where it processes option with no icons, yet it still kills Yanfly icons...
if draw_tp?(actor) && draw_mp?(actor)
dw = rect.width/2-2
dw += 1 if $imported["YEA-CoreEngine"] && YEA::CORE::GAUGE_OUTLINE
draw_actor_tp(actor, rect.x+2, line_height*3, dw)
dw = rect.width - rect.width/2 - 2
draw_actor_mp(actor, rect.x+rect.width/2, line_height*3, dw)
elsif draw_tp?(actor) && !draw_mp?(actor)
draw_actor_tp(actor, rect.x+2, line_height*3, rect.width-4)
else
dw = rect.width/2-2
dw += 1 if $imported["YEA-CoreEngine"] && YEA::CORE::GAUGE_OUTLINE
draw_actor_threat(actor, rect.x+rect.width/2, line_height*3, dw)
draw_actor_mp(actor, rect.x+2, line_height*3, dw)
end
end
end