User Tag List

Results 1 to 2 of 2
  1. #1
    Keese

    Join Date
    Mar 2006
    Age
    22
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    BigEnemy script help

    I was looking for a way to make enemies bigger (making an octorock 2x2 instead of 1x1) and was given this script.

    For some reason when I import it and go to compile it gives me a syntax error on line 14, expecting assign or semicolon on token {

    I'm pretty new to scripting, so it's complete gibberish to me lol. I just copy/paste them into my games. Any help is greatly appreciated. :D
    [Eats a pretzel]

  2. #2
    Keese

    Join Date
    Mar 2006
    Age
    22
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here's the script:

    PHP Code:
    global script BigEnemies
    {
        
    void run()
        {
            while(
    true)
            {
                
    ExtendEnemies();
                
    Waitframe();
            }
        }
        
        
    void ExtendEnemies
        
    {
            
    npc enemy;
            
            for(
    int i=Screen->NumNPCs(); i>0i--)
            {
                
    enemy=Screen->LoadNPC(i);
                
                if(
    enemy->Extend==&& enemy->Attributes[10]!=0)
                {
                    if(
    enemy->Attributes[10]==1)
                        
    enemy->Extend=1;
                    else if(
    enemy->Attributes[10]==2)
                        
    enemy->Extend=2;
                }
            }
        }

    [Eats a pretzel]

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •