disable freespecial?

Gurtag

Active member
hey guys, is there a way to disable lets say freespecial5 for all chars on a specific/or more levels?
 
YEs, but you will need to identify the stage first. Take a look who I do it: http://www.chronocrash.com/forum/index.php?topic=3903.0

Then is a simple variable check on that specific freespecial.
 
thanks for your help ilu, i apreciate it a lot, however my script level reduces to copy/pasting and modifing simple spawn script, would take some time before i could implement something like that.
 
If you read carefully you will understand, because its simple:

in your level, you need to add this code to any entity you spawn (the first one is better). It can be an enemy, none, obstacle,
Code:
@script
void main()
{
     void stageName;
     if (!stageName){
     setglobalvar("stageName","My Stage"); // Put your stage name here. It's CASE SENSITIVE.
     }
}
@end_script


On my case, I spawn an empty entity which I use as a wildcard

spawn  empty
@script
void main()
{
    void stageName;
    if (!stageName){
    setglobalvar("stageName","My Stage"); // Put your stage name here. It's CASE SENSITIVE.
    }
}
@end_script

coords  180 189
at  0

This will set a global variable called stageName as My Stage.

Then, at the freespecial you want to disable, you paste this:

Code:
@script
void stageName = getglobalvar("stageName");
if (stageName == "My Stage"){
    void self = getlocalvar("self");
    setidle(self);
}
@end_script

For example:

anim freespecial
loop 0
delay 6
offset 72 109
Energycost 10 1 0
followcond 3
followanim 2
hitflash flauncher
jugglecost 5
bbox 58 73 38 36
@script
void stageName = getglobalvar("stageName");
if (stageName == "My Stage"){
    void self = getlocalvar("self");
    setidle(self);
}
@end_script

frame data/chars/beast/free1-11.gif

This will make the character go to idle as soon as the freespecial starts, when the character is on that specific stage.

Just don't forget to follow that part "And just to avoid issues..." at the post I linked above.
 
Back
Top Bottom