Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Rayziik

Script not compiling - Help me please!

Recommended Posts

Problem Solved!

Script 2 (void) //Preps the field for the SpiderMastermind Battle
{
    if (GameSkill () >= SKILL_HARD)                //For UV and NM
        {
        Delay(35);
        Floor_RaiseToHighest(151, 6);              //Spidey
        Floor_LowerToLowest(141, 32);              //FusionArachnos
        Door_Open(45, 64);                         //Hellions
        Door_Close(43, 1024);                      //Lockout Door
        Floor_RaiseToNearest(44, 32);              //Ammo and Health
        Floor_RaiseToLowestCeiling(666, 16);       //Radiation Barriers
        Generic_Floor(150, 8, 0, 2, 0);            //Platform Removal
        FloorandCeiling_LowerByValue(149, 8, 128); // Ditto
        }
    else if (GameSkill() == SKILL_NORMAL)          //For HMP 
        {
        Delay(35);
        Floor_RaiseToHighest(151, 14);             //Spidey
        Door_Open(45, 64);                         //Hellions
        Door_Close(43, 1024);                      //Lockout Door
        Floor_RaiseToNearest(44, 32);              //Ammo and Health
        Floor_RaiseToLowestCeiling(666, 16);       //Radiation Barriers
        Generic_Floor(150, 8, 0, 2, 0);            //Platform Removal
        FloorandCeiling_LowerByValue(149, 8, 128); // Ditto
        }
    else if (GameSkill () =< SKILL_EASY)           //For ITYTD and HNTR
        {
        Delay(35);
        Floor_RaiseToHighest(151, 32);             //Spidey
        Door_Close(43, 1024);                      //Lockout Door
        Floor_RaiseToNearest(44, 32);              //Ammo and Health
        Floor_RaiseToLowestCeiling(666, 16);       //Radiation Barriers
        Generic_Floor(150, 8, 0, 2, 0);            //Platform Removal
        FloorandCeiling_LowerByValue(149, 8, 128); // Ditto
        }
}

Share this post


Link to post

Alright, I changed that 'else' to an 'else if', but still getting the same error at the same line. Any other ideas?

Share this post


Link to post
EarthQuake said:

== is the comparison operator.


Yep that fixed it. Beginner's mistake I guess. Thanks!

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×