Solved Daimao Cancel System Questions

Question that is answered or resolved.

machok

Well-known member
Any mod that using this "Daimao Cancel System" out there?

I want to make something like final fight shifting while player attacking, this can be done accurately with Cancel+Freespecial
but Freespecial causes combodelay to not work.

I also need combodelay because I hate when people playing openbor mods and they do something like this:

back to topic, so I need to use all of them while combodelay still work. Daimao Cancel can do that? since the author Piccolo saying canceling animations can use in anim attack:
Code:
- Canceling to animations other than freespecials (that is attacks, follows, special, etc)
 
Solution
@machok I made some experiments and maybe it's simpler than we think.


C:
@script
    void self = getlocalvar("self");
    int hits = getentityproperty(self, "animhits");
   
    if(frame >= 2){
        if(hits <= 0){ //CHECK IF THE CHARACTER HITS ANYTHING
            changeentityproperty(self, "combotime", 0); //RESETS THE COMBO TIMER
        }
    }
@end_script

You can use the "rush_count" instead of the "animhits" too (or both in case you need more confirmations), must choose the best that fits in your game.
EDIT: don't forget to change the "combodelay" value, otherwise the player will be allowed to perform the SoR combo reset (the one I've shown at the beginning of the video).
I'm not sure I understand what you want.

What do you mean by shifting ? Do you mean pressing attack button (character does attack A), moving a bit forward, pressing attack button again and character does attack B instead of resetting to attack A ?

Whatever it is you want please describe it as clearly as possible and/or show me a video example.
 
I'm not sure I understand what you want.

What do you mean by shifting ? Do you mean pressing attack button (character does attack A), moving a bit forward, pressing attack button again and character does attack B instead of resetting to attack A ?

Whatever it is you want please describe it as clearly as possible and/or show me a video example.

I want to something like this

 
@machok I made some experiments and maybe it's simpler than we think.


C:
@script
    void self = getlocalvar("self");
    int hits = getentityproperty(self, "animhits");
   
    if(frame >= 2){
        if(hits <= 0){ //CHECK IF THE CHARACTER HITS ANYTHING
            changeentityproperty(self, "combotime", 0); //RESETS THE COMBO TIMER
        }
    }
@end_script

You can use the "rush_count" instead of the "animhits" too (or both in case you need more confirmations), must choose the best that fits in your game.
EDIT: don't forget to change the "combodelay" value, otherwise the player will be allowed to perform the SoR combo reset (the one I've shown at the beginning of the video).
 
Solution
Thank you for the script, my combodelay is 150 and Yes it works 🥰
At this point I can finally experiment further
Great, it's good to know that the script works :)

What is "rush_count" and what's the difference with animhits?
Basically the "rush count" is the global character's combo counter and the "animhits" is a separate counter for every animation.

In games where two players are allowed to pick the same character I suggest to put both to give a more solid hit confirmation for every player individually, because some entity properties are shared between all the same characters used by any player.

I'm using this method in the SORX to allow the canceling system only if at least 1 hit is detected by both variables.
C:
if(rush >= 1 && hits >= 1 && cancelS == "on"){
 
Thank you so much @Kratus for solving my problem,
Still I need to know if Daimao Cancel System can do something similar because I am very interested in so many features it has offered
I may still be waiting for @Piccolo to explain then I'll close this topic
 
Yeah you can probably do something very similar using Kratus method.
Just replace this line :
Code:
 changeentityproperty(self, "combotime", 0); //RESETS THE COMBO TIMER

with this line :

Code:
clearDaimaoCancel(getlocalvar("self"));

And make sure you don't call createDaimaoCancel afterwards.

So overall you'll have something like this :

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

    if(frame ==0){
            // setting up cancel options for this animation
            void data = createDaimaoCancel();
            ...
            ...
    }
    
    if(frame >= 2){
        if(hits <= 0){ //CHECK IF THE CHARACTER HITS ANYTHING
            clearDaimaoCancel(getlocalvar("self")); // the character didn't hit anything, we remove the cancel options so that the character resets to its initial state
        }
            
        daimaoCancel();
    }
@end_script

Not tested it though.
 
Back
Top Bottom