じ☆ve冰风 发表于 2026-8-1 20:37:54

Hide State's PopUp Addon for MOG - DAMAGE POPUP (v4.5)

Hide State's Pop Up Addon
for MOG - DAMAGE POPUP
by Argami

Description
Disables the Popup effect of the States you want.

Addon
Spoiler                Code:       
#==============================================================================
# ■ Hide State's PopUp Addon for MOG - DAMAGE POPUP (v4.5)
#==============================================================================
# * Made by Argami
#==============================================================================
#==============================================================================
# ● DESCRIPTION
#------------------------------------------------------------------------------
# Disables the Popup effect of the States you want.
#------------------------------------------------------------------------------
# ● REQUERIMENTS
#------------------------------------------------------------------------------
# Requires MOG - DAMAGE POPUP (v4.5) Script by Moghunter:
# https://atelierrgss.wordpress.com/rgss3-damage-popup/
#------------------------------------------------------------------------------
# ● INSTALLATION
#------------------------------------------------------------------------------
# Place this script below MOG - DAMAGE POPUP (v4.5) Script but above ▼ Main!
#------------------------------------------------------------------------------
# ● HOW TO USE
#------------------------------------------------------------------------------
# Add the following code in the Databases's Note Box of the State you don't
# want to show the popup effect off:
#
#<State Popup OFF>
#
#==============================================================================

class Game_Battler < Game_BattlerBase
include MOG_DAMAGEPOPUP
attr_accessor :damage , :skip_dmg_popup

#--------------------------------------------------------------------------
# ● Execute Popup Add New State
#--------------------------------------------------------------------------
def execute_popup_add_new_state(state_id)
      st = $data_states
      #Check the State Note Box to find <State Popup OFF>
      state_popup_off = st.note =~ /<State Popup OFF>/ ? st : nil
      #Stop here if there's <State Popup OFF>
      return if state_popup_off != nil
      if self.hp > 0
         unless (SceneManager.scene_is?(Scene_Battle) and !STATES_POPUP_BATTLE) or
                (SceneManager.scene_is?(Scene_Map) and !STATES_POPUP_MAP)
                self.damage.push()
         end
      end
end

#--------------------------------------------------------------------------
# ● Execute Popup Remove State
#--------------------------------------------------------------------------
def execute_popup_remove_state(state_id)
      if state?(state_id) and self.hp > 0
         st = $data_states
         #Check the State Note Box to find <State Popup OFF>
         state_popup_off = st.note =~ /<State Popup OFF>/ ? st : nil
         #Stop here if there's <State Popup OFF>
         return if state_popup_off != nil
         unless (SceneManager.scene_is?(Scene_Battle) and !STATES_POPUP_BATTLE) or
                (SceneManager.scene_is?(Scene_Map) and !STATES_POPUP_MAP)
                self.damage.push() unless BattleManager.escape?
         end
      end
end
end






Requeriments
Requires MOG - DAMAGE POPUP (v4.5) Script by Moghunter:
https://atelierrgss.wordpress.com/rgss3-damage-popup/

Installation
Place this script below MOG - DAMAGE POPUP (v4.5) Script but above ▼ Main!

How to Use
Add the following code in the Databases's Note Box of the State you don't want to show the popup effect off:
                Code:       
<State Popup OFF>


Credits
- Addon by Argami.
- All credits of the original script go to Moghunter.

Terms of use
- You can use this addon in both commercial and non-comercial games (You can mention me in credits if you want, but not necessary).
- Remember checking Moghunter's original script terms of use.


本贴来自国际rpgmaker官方论坛作者:Argami处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/hide-states-popup-addon-for-mog-damage-popup-v4-5.90430/
页: [1]
查看完整版本: Hide State&#039;s PopUp Addon for MOG - DAMAGE POPUP (v4.5)