Black_Mage icon

Mog Krosk Pic FX Compatibility

Black_Mage | PRO | 08/22/20 09:52:02 PM UTC (Edited) | 0 ⭐ | 7944 👁️ | Never ⏰ | []
Ruby |

1.37 KB

|

None

|

0 👍

/

0 👎

#==============================================================================
# We change how to call effect 7 from Mog Picture Effects script.
# To call effect 7, use
#
# picture_effect_7(pic_id, 7, power, speed, frame_limit)
#
# the rest of the effect can be called as usual.
#
# The frame limit denotes the amount of frames that you'll use, and they're 
# numbered from 0 to n-1 if you plan to use n as the frame limit.
#==============================================================================
 
class Game_Temp
  attr_accessor :p_anim_fr_lim
  alias b_fr_lim_init initialize
  def initialize
    @p_anim_fr_lim = true; b_fr_lim_init
  end  
end
class Sprite_Picture < Sprite  
  def create_picture_animation
    dispose_pic_frames ; @pic_frames = [] ; @picture.anime_frames[0] = false    
    for index in 0...($game_temp.p_anim_fr_lim.to_i - 1)
      @pic_frames.push(Cache.picture(@picture.name + index.to_s)) rescue nil
      break if @pic_frames[index] == nil
    end
    if @pic_frames.size <= 1
      dispose_pic_frames ; @pic_frames = nil ; @picture.anime_frames.clear
      @picture.effect_ex[7] = nil ; return
    end
    self.bitmap = @pic_frames[@picture.anime_frames[3]]
    update_picture_animation
  end
end
class Game_Interpreter
  def picture_effect_7(a,b,c,d,e)
    $game_temp.p_anim_fr_lim = e
    picture_effect(a,b,c,d)
  end
end

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎