YesNoOk
avatar

reduce throw move damage?!?! (Read 1230 times)

Started by C-r-a-v-e-r, January 04, 2018, 01:25:25 pm
Share this topic:
reduce throw move damage?!?!
#1  January 04, 2018, 01:25:25 pm
  • **
  • Part time Creator!!!
  • Need motivation...
    • Germany
Hello everybody,

So, can you harm the throw move?

throw.st - damage = 0 does not work

Terry by Masa
Last Edit: January 04, 2018, 02:14:59 pm by C-r-a-v-e-r
Re: reduce throw move damage?!?!
New #2  January 04, 2018, 01:46:23 pm
  • ******
If you don't know the codes and just read damage = 0, of course you will think it won't work.
That hitdef is used to put the enemy in a custom state.

You should search for a TargetLifeAdd code and reduce the value.



Well, in your case, it's a bit different.
You have to go to the custom state (state 502) and change the value of the LifeAdd.

This is the code that you find in the character (don't copy and paste it!!)
Code:
[State 502]
Type = LifeAdd
Trigger1 = AnimElem = 6
Value = Floor(-26 *IFelse(Life>=Const(Data.Life)/2, 1, IFelse(Life<Const(Data.Life)/2, .75, IFelse(Life>=Const(Data.Life)/8, .625, .5))))*10

Read the code like this:
- this state controller adds life;
- it triggers on the sixth element of the animation;
- the value is rounded up, it is - (negative, because it has to add negative life, in other words it subtracts life) 26;
it is multiplied by 1 if the life is higher than half your life bar;
it is multiplied by 0.75 if the life is lower than half your life bar;
it is multiplied by 0.625 if the life is lower than an eighth of your life;
in all other cases it's multiplied by 0.5;

in the end the value is multiplied by 10.
So you'll have something like this:
260
200
160
130


If it's too complicated, just change the number 26 to something lower.

Possible helpful info:
http://mugenguild.com/forum/topics/ceil-math-and-floor-math-triggers-169065.0.html
http://mugenguild.com/forum/topics/lifeadd-sctrl-170153.0.html
Last Edit: January 04, 2018, 04:12:57 pm by AlexSin
Re: reduce throw move damage?!?!
#3  January 04, 2018, 02:14:45 pm
  • **
  • Part time Creator!!!
  • Need motivation...
    • Germany
Thank you so much, it works. :)