Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 SP Damage help
#6
(02-08-2014, 04:24 AM)DerVVulfman Wrote: The damage pop uses a few values to see if a battler has a damage pop and sends it into my damage pop system. IF your Drain/Osmosis script performs changes to the Game_Battler class, you need very few changes if you're using this one too.

The SP damage system adds @dvv_sp_damage_pop (a boolean or true/false/nil) value to see if the actor needs a SP damage pop to show, and @dvv_sp_damage, which holds the value of SP damage (nil by default). And, it sends the value to the Damage Pop sprite system by using self.dvv_sp_damage much the same way as self.damage is used to send damage values to the default pop system.

Just look at the Initialize and the end of the skill_effect methods in the Simple SP Damage script.
The Draining script does modify the Game_Battler class:

Code:
#==============================================================================
# ** Game_Battler
#------------------------------------------------------------------------------
#  This class deals with battlers. It's used as a superclass for the Game_Actor
#  and Game_Enemy classes.
#==============================================================================

class Game_Battler
  #--------------------------------------------------------------------------
  # * Apply Skill Effects
  #     user  : the one using skills (battler)
  #     skill : skill
  #--------------------------------------------------------------------------
  alias has_skill_effect skill_effect
  def skill_effect(user, skill, dilute = 1)
    # Original call
    effective = has_skill_effect(user, skill)
    # Set hook to damage
    if self.damage.is_a?(Numeric)
      $game_temp.damage_hook += self.damage
    end
    # End Method
    return effective    
  end
end

I really ought to learn about coding stuff.
}


Messages In This Thread
SP Damage help - by Steel Beast 6Beets - 02-05-2014, 11:02 PM
RE: SP Damage help - by DerVVulfman - 02-09-2014, 04:27 AM
RE: SP Damage help - by Steel Beast 6Beets - 02-09-2014, 11:56 PM
RE: SP Damage help - by DerVVulfman - 02-10-2014, 04:55 AM
RE: SP Damage help - by Steel Beast 6Beets - 02-10-2014, 01:21 PM
RE: SP Damage help - by DerVVulfman - 02-11-2014, 03:55 AM
RE: SP Damage help - by Steel Beast 6Beets - 02-11-2014, 01:50 PM
RE: SP Damage help - by DerVVulfman - 02-12-2014, 04:21 AM
RE: SP Damage help - by Steel Beast 6Beets - 02-12-2014, 01:43 PM
RE: What's up, RMers? - by DerVVulfman - 02-06-2014, 05:02 AM
RE: What's up, RMers? - by Steel Beast 6Beets - 02-06-2014, 01:09 PM
[split] What's up, RMers? - by Steel Beast 6Beets - 02-07-2014, 01:45 PM
RE: What's up, RMers? - by DerVVulfman - 02-08-2014, 04:24 AM
RE: What's up, RMers? - by Steel Beast 6Beets - 02-08-2014, 02:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Damage appears behind bars in battle prioran 3 6,991 08-06-2011, 01:46 AM
Last Post: prioran
   [XP] Damage displayed incorrectly prioran 3 8,319 12-29-2010, 08:13 PM
Last Post: prioran
   Damage Pop VX Help: Syncing Damage Pop With Instant Text Yojimbo 2 5,039 01-22-2010, 09:35 AM
Last Post: Yojimbo
   do damage while un-equiped help!!!!! PLEASE Jparker1984 5 6,833 11-24-2009, 03:00 AM
Last Post: PK8
   Timing problem with damage shown on the screen - Scene Battle mageone 2 5,780 10-20-2009, 06:22 PM
Last Post: mageone



Users browsing this thread: