Results 1 to 5 of 5

Thread: There is an error in my script??

  
  1. #1

    Default There is an error in my script??

    I create a level, i want to do that when keeper blue dies, and the heros too, i win the game, here is the script:

    IF(PLAYER1,DUNGEON_DESTROYED,1)
    IF(PLAYER_GOOD,DUNGEON_DESTROYED,1)
    WIN_GAME
    ENDIF
    ENDIF
    I have done 4 levels but is exactly the same, i dont know how to make this.

  2. #2
    Elite Dragon Mothrayas's Avatar
    Join Date
    Nov 2009
    Location
    The Netherlands
    Posts
    1,635

    Default Re: There is an error in my script??

    Please be more specific in your questions.

    What kind of error are you getting? Does the game win instantly? Does the game win instantly when only one condition is met? Does the game even make an error?

    Let me try to make a random guess here.
    Does your level have a Dungeon Heart for the Heroes? If not, you should check whether TOTAL_CREATURES == 0 to check if all have been killed.

    Other than that, I don't see any problem about the script.

    The Awakening


  3. #3

    Default Re: There is an error in my script??

    I never win the level! Thats the problem, the heros has a heart, also the blue keeper. In my other levels i doesnt have problems but i change it, and change it and it doesnt work, in my other levels i use flags, total_creatures, dungeon_destroyed and timers to win the level, but here is where i have problems. Also, i can do that the level has 2 or more differents ways to win?

  4. #4
    KeeperFX Author mefistotelis's Avatar
    Join Date
    Sep 2009
    Location
    Poland
    Posts
    1,242

    Default Re: There is an error in my script??

    Quote Originally Posted by Kerdinario View Post
    I never win the level! Thats the problem, the heros has a heart, also the blue keeper.
    Interesing. Looks like a bug.
    Please check the log file for errors. If this won't help, please provide a saved game from latest KeeperFX.

    Quote Originally Posted by Kerdinario View Post
    i can do that the level has 2 or more differents ways to win?
    Yes. You can have up to 4 victory conditions. If you do too many of them, the log file will contain an error "Too many WIN GAME conditions in script".

    The best way to check a script syntax is to load a level, then exit and look at the log file - I tried to put information about any problems with script in the log.

  5. #5

    Default Re: There is an error in my script??

    I have check the script with adikted right now, i found the error, i must put == to the script, no a ",". Thanks you anyways

Similar Threads

  1. New script commands
    By mefistotelis in forum KeeperFX
    Replies: 89
    Last Post: May 18th, 2016, 09:04
  2. Script error in level 20
    By friscmanseby in forum KeeperFX
    Replies: 1
    Last Post: June 19th, 2012, 04:36
  3. Strange Error in Map, Error from KeeperFX?
    By Metal Gear Rex in forum KeeperFX
    Replies: 2
    Last Post: April 2nd, 2011, 12:12
  4. Research Order Script
    By Metal Gear Rex in forum DK1 Mapmaking
    Replies: 4
    Last Post: November 5th, 2010, 18:15
  5. Creatures Not Entering (Not Script Problem)
    By Metal Gear Rex in forum DK1 Mapmaking
    Replies: 3
    Last Post: December 6th, 2009, 00:57

Tags for this Thread

Posting Permissions

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