Jumpspecial 3 Question

machok

Well-known member
JUMPSPECIAL/SPECIAL3 {players}


  • Optional.
  • An attack. Just like the normal JUMPATTACK, except that players perform this attack by jumping, then pressing special.
  • Unlike other jumpattack animations, players lost their momentum in this animation. IOW they won’t move up and forward at all even if they are running before jumping. They still fall normally of course. The only exception is if ‘dive’ is present in the animation.
  • This animation can be disabled with ‘type’ in level texts. See ‘Level files’ below for more info

Why we can press jumpspecial/special3 over and over?
I use energy cost 5 for this animation so while performing jumpspecial and keep repeatedly press special this will continue to drain player health
Then,
I tried to change jumpspecial to freespecial20. What happened is the opposite, while doing freespecial20 in the air energy cost doesn't seem to work (no drain health at all).
did I missed something?

what i want is using jumpspecial with only one time health drain
 
Last edited:
JUMPSPECIAL/SPECIAL3 {players}


  • Optional.
  • An attack. Just like the normal JUMPATTACK, except that players perform this attack by jumping, then pressing special.
  • Unlike other jumpattack animations, players lost their momentum in this animation. IOW they won’t move up and forward at all even if they are running before jumping. They still fall normally of course. The only exception is if ‘dive’ is present in the animation.
  • This animation can be disabled with ‘type’ in level texts. See ‘Level files’ below for more info

Why we can press jumpspecial/special3 over and over?
I use energy cost 5 for this animation so while performing jumpspecial and keep repeatedly press special this will continue to drain player health
Then,
I tried to change jumpspecial to freespecial20. What happened is the opposite, while doing freespecial20 in the air energy cost doesn't seem to work (no drain health at all).
did I missed something?

what i want is using jumpspecial with only one time health drain
@machok
The jumpspecial/special3 in fact have some bugs on the stable engine builds, but it's fixed for the next build.
I would like to see how you are using the command to cancel into the freespecial20, maybe there's some missing parameter.

EDIT: As an alternative way you can use keyscripts to cancel animations into others and checking/deducting mp correctly. In SOR2X you can see some examples at the path "data/scripts/key/".
 
Last edited:
@machok
The jumpspecial/special3 in fact have some bugs on the stable engine builds, but it's fixed for the next build.

I see.. I've tried 3 different openbor versions but the result is still the same
I would like to see how you are using the command to cancel into the freespecial20, maybe there's some missing parameter.

I put this in jump and forwardjump anim
Code:
    cancel    0 99 0 s freespecial20

and freespecial20 is exactly the same with jumpspecial, just change the anim name
anim freespecial20
fastattack 1
energycost 5
loop 0
delay 5
offset 75 177
sound data/sounds/haggar_giro.wav
attack 0 0 0 0 0 0 0 0 0 0
frame data/chars/haggar/asp01.gif
attack 0 0 0 0 0 0 0 0 0 0
delay 6
frame data/chars/haggar/asp02.gif
@cmd leaper 0.75 1.5 0
attack25 27 100 125 42 5 0 1 0 25 0
frame data/chars/haggar/asp03.gif
attack25 0 0 0 0 0 0 0 0 0 0
frame data/chars/haggar/asp04.gif
attack25 27 100 125 42 5 0 1 0 25 0
frame data/chars/haggar/asp05.gif
attack25 0 0 0 0 0 0 0 0 0 0
frame data/chars/haggar/asp02.gif
attack25 27 100 125 42 5 0 1 0 25 0
frame data/chars/haggar/asp03.gif
attack25 0 0 0 0 0 0 0 0 0 0
frame data/chars/haggar/asp04.gif
attack25 27 100 125 42 5 0 1 0 25 0
frame data/chars/haggar/asp05.gif
attack25 0 0 0 0 0 0 0 0 0 0
delay 6
frame data/chars/haggar/asp02.gif
attack25 27 100 125 42 5 0 1 0 25 0
frame data/chars/haggar/asp03.gif
attack25 0 0 0 0 0 0 0 0 0 0
frame data/chars/haggar/asp04.gif
attack 27 100 125 42 10 1 1 0 25 0
frame data/chars/haggar/asp05.gif
attack25 0 0 0 0 0 0 0 0 0 0
delay 5
frame data/chars/haggar/asp05.gif
EDIT: As an alternative way you can use keyscripts to cancel animations into others and checking/deducting mp correctly. In SOR2X you can see some examples at the path "data/scripts/key/".
This line?
Code:
void airCombo()
{//Cancel defined moves with Offensive Jump Special (Special3)

😥 You know I can't read scripts especially long or complicated ones but I can still understand when explained
 
Tested the engine build 6391 and works, but I filled the second energycost parameter with the "mponly" option.

Code:
anim freespecial4 #SUPER
    fastattack 1
    jugglecost 5
    forcedirection -1
    energycost 40 1

View attachment 2856
It's still not working, I mean haggar can't perform freespecial move at all with this setting.
Tested with build 6391 and 6330. Something wrong with my settings?
 
@Kratus
I got a temporary solution, something like this

Code:
anim    jumpspecial
@script
    void self = getlocalvar("self");
    int hits = getentityproperty(self, "animhits");
    int  Health = getentityproperty(self, "health");

    if(frame >= 0){
        if(hits == 1){ //CHECK IF THE CHARACTER HITS ANYTHING
          changeentityproperty(self, "health", Health-5);
         }else
     if(hits > 1){
           changeentityproperty(self, "health", Health-0);
        }
    }
    @end_script
    fastattack    1
    loop    0
    delay    5
    offset    75 177
    sound    data/sounds/haggar_giro.wav
    attack    0 0 0 0 0 0 0 0 0 0
    frame    data/chars/haggar/asp01.gif
    attack    0 0 0 0 0 0 0 0 0 0
    delay    6
    frame    data/chars/haggar/asp02.gif
    @cmd    leaper 0.75 1.5 0
    attack25    27 100 125 42 5 0 1 0 25 0
    frame    data/chars/haggar/asp03.gif
    attack25    0 0 0 0 0 0 0 0 0 0
    frame    data/chars/haggar/asp04.gif
    attack25    27 100 125 42 5 0 1 0 25 0
    frame    data/chars/haggar/asp05.gif
    attack25    0 0 0 0 0 0 0 0 0 0
    frame    data/chars/haggar/asp02.gif
    attack25    27 100 125 42 5 0 1 0 25 0
    frame    data/chars/haggar/asp03.gif
    attack25    0 0 0 0 0 0 0 0 0 0
    frame    data/chars/haggar/asp04.gif
    attack25    27 100 125 42 5 0 1 0 25 0
    frame    data/chars/haggar/asp05.gif
    attack25    0 0 0 0 0 0 0 0 0 0
    delay    6
    frame    data/chars/haggar/asp02.gif
    attack25    27 100 125 42 5 0 1 0 25 0
    frame    data/chars/haggar/asp03.gif
    attack25    0 0 0 0 0 0 0 0 0 0
    frame    data/chars/haggar/asp04.gif
    attack    27 100 125 42 10 1 1 0 25 0
    frame    data/chars/haggar/asp05.gif
    attack25    0 0 0 0 0 0 0 0 0 0
    delay    5
    frame    data/chars/haggar/asp05.gif

It's your animhits script 😚
The problem I found, it's only working when hits enemy but if I hit obstacle it's not working
 
Last edited:
It's still not working, I mean haggar can't perform freespecial move at all with this setting.
Tested with build 6391 and 6330. Something wrong with my settings?
@machok Did you change the mponly to 2 (use hp instead of mp)?

Code:
anim freespecial4 #SUPER
    fastattack 1
    jugglecost 5
    forcedirection -1
    energycost 40 2

EDIT: Tested directly in your mod and really is not working. I will post here if I find a solution.
 
Last edited:
@machok
I did some tests in an empty BOR mod and it worked fine on the engine build 6391. Possibly there's some conflicts in your mod, maybe with a script.

I suggest to check any routine related to "health" property.
 
I suggest to check any routine related to "health" property.

I keep looking for where the cause is but haven't been able to find it so far and I don't really understand what happened
so I tried to test it on JIAM final fight X mod and it didn't work either, with engine build 6391.
*Final FIght X uses almost no script at all
 
Back
Top Bottom