Red flash when poisoned (gone with yanfly)

Status
Not open for further replies.

Ivan_the_Terrible

Devil Hunter
Member
Joined
Mar 20, 2018
Messages
25
Reaction score
3
First Language
English
Primarily Uses
RMVXA
Greetings, fellow bipeds!

So I've been using Yanfly's awesome Battle scripts and I've come to discover that the battle script somehow suppresses the red flash that appears on the map when a character has an ailment (poison, etc.). @Kes had requested a fix for this supplied by the equally-awesome @TheoAllen in this thread, but my question concerns placement and format. Specifically, is it actually placed in the Battle Engine script, and if it is, what lines and how should it be formatted? I tried it as a separate script just to test it and the game would not run, but when I tried altering the Yanfly script it still didn't work, meaning I clearly did it incorrectly. So if there's anyone who used this who could tell me the proper way for me to plug it in I would be immensely thankful.

Also, please forgive me if I posted this thread in the wrong place.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,592
Reaction score
6,522
First Language
Indonesian
Primarily Uses
RMVXA
The fixed version of the snippet posted in the thread
Code:
class Game_Battler
  def regenerate_all 
    game_battler_regenerate_all_abe
    return unless alive? && $game_party.in_battle
    make_damage_popups(self)
  end
end
And the fix for Xpher's snippet
Code:
class Game_Party < Game_Unit
  def s_any?(state_id)
    members.any? {|actor| actor.state?(state_id)}
  end
end

class Game_Actor < Game_Battler
  def turn_end_on_map
    if $game_party.steps % steps_for_turn == 0
      on_turn_end
      perform_map_damage_effect if $game_party.s_any?(2)
    end
  end
end
To be honest, I forgot what was these all about. I'm just here to fix the snippets. Gonna re-read the thread later, gotta go atm.

Edit: refixed the snippets
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
These go into separate slots in the script editor, you don't add anything to the original scripts. Make sure you name them clearly to avoid any future ambiguity about what they do. It's so easy to forget between one project and the next.
 

Ivan_the_Terrible

Devil Hunter
Member
Joined
Mar 20, 2018
Messages
25
Reaction score
3
First Language
English
Primarily Uses
RMVXA
@TheoAllen @Kes Thank you both! It works! The red flash appears again when characters are ailing! You guys are the best!
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,842
Reaction score
5,224
First Language
Dutch
Primarily Uses
RMXP

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,018
Members
137,563
Latest member
MinyakaAeon
Top