[XP] Damage displayed incorrectly
#1
Hi everyone,

I've run into a strange problem while testing my game: damage inflicted by enemies does not correspond to the graphic that is displayed (for example, the numbers 938 will appear but 1700 HP will be lost) and sometimes "Miss" is displayed but HP is lost. After removing scripts in a trial-and-error process, it seems that Der VVulfman's Angie's Equipment Sets script, which I love, is causing the problem. Is it a compatibility issue? Other battle scripts I'm using are Claimh's Tactical Skills and DW's Karen's Combos scripts.

Thanks in advance for your time. :)
Reply }
#2
why not try to plug out the script and try it in a new project and see if the problem persists.
if it doesn't add the other scripts to the new project and test again.
[Image: gen-sig.png]
Reply }
#3
I have the fix. It's easy:

1) Edit the header of the script to resemble this:
Code:
#==============================================================================
# ** ANGIE'S EQUIPMENT SETS
#------------------------------------------------------------------------------
#    by DerVVulfman
#    version 2.3
#    12-27-2010
#    SDK 2.2+ Compatible (so far)
#------------------------------------------------------------------------------

2) Change the thanks section of the script to this:
Code:
#------------------------------------------------------------------------------
#
#  CREDITS AND THANKS:
#
#   Thanks to SephirothSpawn who is a fairly decent teacher (damn... he's half
#   my age!) who did some initial work on skills that get equipped. And thanks
#   to entrando  for a li'l help with the Pop-Up waiting system.  And finally,
#   thanks to Prioran of Save-Point.Org for noticing an extra-damage glitch.
#
#==============================================================================

Then, go down and change the attack_effect method from this...
Code:
alias sets_ae attack_effect
  def attack_effect(attacker)
    sets_ae(attacker)
    # Attach base damage to battler (for self.base_damage)
    @sets_damage = nil
    # Execute the original process
    set_result = sets_ae(attacker)

to this...
Code:
alias sets_ae attack_effect
  def attack_effect(attacker)
    # Attach base damage to battler (for self.base_damage)
    @sets_damage = nil
    # Execute the original process
    set_result = sets_ae(attacker)

Simply put, I called the 'sets_ae' routine twice... effectively asking for battle calculations twice. Eliminate the first one.

Oh, and while typing this, I'm updating / bumping Angie about it too. Winking
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }
#4
Many thanks for your patience with me. I've always been a fan of this script and look forward to using it in my game.
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   SP Damage help Steel Beast 6Beets 13 17,847 02-12-2014, 01:43 PM
Last Post: Steel Beast 6Beets
   Damage appears behind bars in battle prioran 3 7,669 08-06-2011, 01:46 AM
Last Post: prioran
   Damage Pop VX Help: Syncing Damage Pop With Instant Text Yojimbo 2 5,507 01-22-2010, 09:35 AM
Last Post: Yojimbo
   do damage while un-equiped help!!!!! PLEASE Jparker1984 5 7,694 11-24-2009, 03:00 AM
Last Post: PK8
   Timing problem with damage shown on the screen - Scene Battle mageone 2 6,379 10-20-2009, 06:22 PM
Last Post: mageone



Users browsing this thread: 1 Guest(s)