Naucz się formatować kod.
GML
if( distance_to_object( npcspeed ) < 100 )
{
if( czat.notedkeys == "hi" || czat.notedkeys == "hello" )
{
rozm_sirspd = get_string( "Oh, hello dear " + string( imie_ch ) + "! I will bless you. Only tell me: WHAT IS THE KINGs NAME?", 0 );
if( rozm_sirspd == "Lepatopanosfajstos" )
{
get_string( "Great! You are really better than me! You have been blessed. Hail Lepatopanosfajstos! Good bye.", 0 );
//???
//move_speed+=1 instance_destroy() else get_string("No, it is not! Ehh...",0);
//
}
}
}
Co robi to else? Chyba powinno być:GML
if( distance_to_object( npcspeed ) < 100 )
{
if( czat.notedkeys == "hi" || czat.notedkeys == "hello" )
{
rozm_sirspd = get_string( "Oh, hello dear " + string( imie_ch ) + "! I will bless you. Only tell me: WHAT IS THE KINGs NAME?", 0 );
if( rozm_sirspd == "Lepatopanosfajstos" )
{
get_string( "Great! You are really better than me! You have been blessed. Hail Lepatopanosfajstos! Good bye.", 0 );
move_speed += 1;
instance_destroy();
}
else
get_string( "No, it is not! Ehh...", 0 );
}
}