Toranks
Active member
It is giving me unspecified error in this script and I am not sure why. Maybe I have made a formatting error. My intention is to apply a global variable saved in the save file to different players depending on how many players out of 3 are present. Can anybody help me?
"Script compile error in 'byoevl1': line 0, column 0"
"Script compile error in 'byoevl1': line 0, column 0"
anim spawn
@cmd degravity 1
@script
void player1 = getplayerproperty(0, "entity"); //IDENTIFY PLAYER 1
void player2 = getplayerproperty(1, "entity"); //IDENTIFY PLAYER 2
void player3 = getplayerproperty(2, "entity"); //IDENTIFY PLAYER 3
if(frame == 1)
{
if(player1 != NULL() && player2 != NULL() && player3 != NULL()){
setglobalvar("maxRush2", getglobalvar("maxRush1"));
setglobalvar("maxRush3", getglobalvar("maxRush1"));
}
if(player1 != NULL() && player2 != NULL() && player3 = NULL()){
setglobalvar("maxRush2", getglobalvar("maxRush1"));
}
if(player1 = NULL() && player2 != NULL() && player3 != NULL()){
setglobalvar("maxRush3", getglobalvar("maxRush2"));
}
if(player1 != NULL() && player2 = NULL() && player3 != NULL()){
setglobalvar("maxRush3", getglobalvar("maxRush1"));
}
}
@end_script
loop 0
delay 10
offset 270 370
frame data/bgs/beyond/lvl5b/elev01.gif
@cmd spawnbind "byoevl2" 0 0 0
frame data/bgs/beyond/lvl5b/elev01.gif
frame data/bgs/beyond/lvl5b/elev01.gif
Last edited: