Advanced Usage 1 : Global Cancel
What is a global cancel ? A global cancel is a cancel option that is not linked to a specific animation. For example, in the Bruiser Brigade, break moves are global cancel options : you can use them from any animation. More simply said, global cancel is used for special moves. So if you're creating Ryu from Street Fighter, you might add Hadoken and Shoryuken as global cancel options for this character.
As the DCS creates more powerful cancel options than the built-in cancel system, global cancel is a more powerful alternative to the built-in "com" command.
A good place to declare global cancel option is entity spawn script. Here's an example.
Code:
onspawnscript @script
#import "data/scripts/dcancel.c"
void main(){
addGlobalCancel("D F a1", "ANI_freespecial1"); // Hado-Ken
addGlobalCancel("Air D F a1", "ANI_freespecial2"); // Air Hado-Ken
addGlobalCancel("HB F a1", "ANI_freespecial3"); // Sonic Boom !
addGlobalCancel("HB F B F a1", "ANI_freespecial4"); // SONIC HURRICANE !
}
@end_script
As you can note from this example, the system supports additional flags from the core system.
"HB" => Hold Back for 150cs
"HD" => Hold Down for 150cs
"Air" => Character must be in air to use that cancel option