YesNoOk
avatar

DAMAGE VARIES WHEN ATTACK FROM FAR AND CLOSE (Read 7070 times)

Started by Keymon2324, January 07, 2025, 04:35:45 pm
Share this topic:
DAMAGE VARIES WHEN ATTACK FROM FAR AND CLOSE
#1  January 07, 2025, 04:35:45 pm
  • avatar
  • *
    • Austria
I HAVE AN ISSUE IN MY CHARACTER IS THAT WHEN I TRY TO ATTACK FROM FAR IT HAS HIGH DAMAGE WHILE NEAR IT HAS LOW DAMAGE. ANYONE HELPS ME TO FIGURE OUT THE ISSUE. EVEN I HAD CHANGED DAMAGE VALUE TO SOMETHING 50,7 BUT STILL IT DOESN'T WORK
Spoiler, click to toggle visibilty
Last Edit: January 31, 2025, 09:17:34 pm by Odb718
Re: DAMAGE VARIES WHEN ATTACK FROM FAR AND CLOSE
#2  January 07, 2025, 09:10:47 pm
  • *
Still dealing different damages after testing like damage = 50, 7?  My guess is, somewhere in Statedef -2 or -3 (or even -1) some code like type = AttackMulSet is influencing damages, or some unexpected Projectiles/Helpers, or the opponent is being TargetStated/TargetLifeAdded, or the opponent changes get hit damages by its own?  :thinking2:
Re: DAMAGE VARIES WHEN ATTACK FROM FAR AND CLOSE
#3  January 08, 2025, 03:21:00 am
  • avatar
  • *
    • Austria
I tried to play with every opponent but still dealing different damages when attack from far and near.

There is one code under statedef -2

[State -2, Dampener itself]
type=attackmulset
trigger1= 1
value=fvar(10)
ignorehitpause=1

I dont' know what the issue
Re: DAMAGE VARIES WHEN ATTACK FROM FAR AND CLOSE
#4  January 08, 2025, 03:28:30 am
  • *
I tried to play with every opponent but still dealing different damages when attack from far and near.

There is one code under statedef -2

[State -2, Dampener itself]
type=attackmulset
trigger1= 1
value=fvar(10)
ignorehitpause=1

I dont' know what the issue


Okay, fvar(10) is not in your [StateDef 1500] and [StateDef 1505], it must be in somewhere else, and it is influencing damages, go to find out what this fvar(10) is all about.

Re: DAMAGE VARIES WHEN ATTACK FROM FAR AND CLOSE
#5  January 08, 2025, 03:49:17 am
  • avatar
  • *
    • Austria
This is a helper . May be i think issue in this?
Spoiler, click to toggle visibilty
Last Edit: January 31, 2025, 09:19:19 pm by Odb718
Re: DAMAGE VARIES WHEN ATTACK FROM FAR AND CLOSE
#6  January 31, 2025, 09:25:34 pm
  • *****
  • Shame on you!
    • USA
Before I even opened this thread up, I though to myself, "They probably have 2 hitdefs and the 1st one doesn't hit because of distance."
Check to make sure you're getting the same hits. You can make the 1st hit do crazy damage like 300 to KNOW it hits at any distance. Then change it back.

Can you tell what hits are dealing less damage? If you increase all the damage values to do
damage =100,15    ;Ifelse(!var(10),50,30), 7
The damage scaling should be obvious, and at what percentage.
Use your keyboard's Pause button and make the attack slow motion and pause at each hit. I also spam F12 to take snapshots and I use Irfanview to cycle to the next image 1 by 1. If I get on F12 like crazy my laptop almost always gets every frame as a new image.
vVv N00bSaibot & Muramasa RoofTop vVv