Page 2 of 2 FirstFirst 1 2
Results 11 to 17 of 17

Thread: start with creature?

  
  1. #11

    Default Re: start with creature?

    No, level_version(1) is just put at the start of the script once. See here.

    I tried to explain before, but I'll do so one more time, because you're not getting the concept. Dungeon Keeper, in 1997 had level script. Lets call this script version 0, because programmers like to start counting at 0. Then decades later, KeeperFX came along and updated the script to a new version, with a few commands gone, several commands changed in function, and quite a few commands added.

    Now KeeperFX can use both the old DK script, and the new KeeperFX script, but you need to tell the game which script you're using. You want to use functionality that's only there in the KeeperFX script, so you tell the game you want to use KeeperFX script by adding LEVEL_VERSION(1) at the very start of your script.
    The upside is, now you can use all the new functionality. The downside is, you've got to convert the rest of the DK script to FX script. Luckily there's not many old commands that changed. However, the CREATURE_AVAILABLE has changed. So look at the KeeperFX script, read how the command works now, and change ALL INSTANCES of your script to work like that.

    So, like this:
    Code:
    CREATURE_AVAILABLE(PLAYER0,SAMURAI,1,16)
    CREATURE_AVAILABLE(PLAYER0,DARK_MISTRESS,1,4)
    CREATURE_AVAILABLE(PLAYER0,TENTACLE,1,0)
    Then, start your game, load the level. Exit the game again, and open KeeperFX.log to see if there are script errors. There it will tell you which commands are wrong now, also look those up in the KeeperFX command list, to see how you've got to change them. Be sure to click the links in my post.

  2. #12

    Default Re: start with creature?

    So I just played that level again, i’m not sure why, but the ninjas came in after I defeated the other two keepers, which was a long time!
    Is there a way have them come earlier, like when the first couple creatures come in—
    I was almost finished with the level ( I was about halfway I finished with the wandering creatures)—-but of course the game crashed!
    So now I have to start all over again lol
    Last edited by Junkman1217; June 29th, 2020 at 00:37.

  3. #13

    Default Re: start with creature?

    For the crashes, be sure to update to the 0.4.7U with the latest alpha, that should make it disappear. If you have updated and you still get a crash, I'd love to receive your keeperfx.log

    And sure, you can script it out to however you like. You could for example start out with very little creatures available(but include the samurai) and add more later on (so not further down in the script, but based on other conditions like player accomplishment or game time).

  4. #14

    Default Re: start with creature?

    LEVEL_VERSION(1)
    REM Play Level Tower of Power

    REM ******* Basic settings *******

    SET_GENERATE_SPEED(1000)

    MAX_CREATURES(PLAYER0,20)

    START_MONEY(PLAYER0,1000000)
    START_MONEY(PLAYER1,100)
    START_MONEY(PLAYER2,1000)

    ALLY_PLAYERS(PLAYER1,PLAYER_GOOD)
    ALLY_PLAYERS(PLAYER2,PLAYER_GOOD)
    ALLY_PLAYERS(PLAYER1,PLAYER2)



    ADD_CREATURE_TO_POOL(BUG,10)

    ADD_CREATURE_TO_LEVEL(PLAYER0,SAMURAI,DUNGEON_HEAR T,5,8,0)(1)

    REM ********** Available creatures **********

    CREATURE_AVAILABLE(ALL_PLAYERS,BUG,1,1)(1)
    CREATURE_AVAILABLE(PLAYER0,SAMURAI,1,16)(1)


    REM ********** Available rooms **********

    ROOM_AVAILABLE(ALL_PLAYERS,LAIR,1,1)
    ROOM_AVAILABLE(PLAYER0,GARDEN,1,1)
    ROOM_AVAILABLE(PLAYER0,TRAINING,1,1)
    ROOM_AVAILABLE(ALL_PLAYERS,RESEARCH,1,1)
    ROOM_AVAILABLE(PLAYER0,BRIDGE,1,1)
    ROOM_AVAILABLE(PLAYER0,BARRACKS,1,0)
    ROOM_AVAILABLE(PLAYER0,PRISON,1,1)
    ROOM_AVAILABLE(PLAYER0,TORTURE,1,1)
    ROOM_AVAILABLE(PLAYER0,SCAVENGER,1,0)


    REM ********** Available spells **********

    MAGIC_AVAILABLE(ALL_PLAYERS,POWER_HAND,1,1)
    MAGIC_AVAILABLE(ALL_PLAYERS,POWER_SLAP,1,1)
    MAGIC_AVAILABLE(PLAYER0,POWER_IMP,1,1)
    MAGIC_AVAILABLE(PLAYER0,POWER_SPEED,1,1)
    MAGIC_AVAILABLE(PLAYER0,POWER_HEAL_CREATURE,1,1)
    MAGIC_AVAILABLE(PLAYER0,POWER_LIGHTNING,1,1)

    REM ********** Available doors & traps **********

    DOOR_AVAILABLE(PLAYER0,WOOD,1,0)
    DOOR_AVAILABLE(PLAYER0,BRACED,1,10)
    DOOR_AVAILABLE(PLAYER0,STEEL,1,15)
    DOOR_AVAILABLE(PLAYER0,MAGIC,1,20)
    TRAP_AVAILABLE(PLAYER0,ALARM,1,0)
    TRAP_AVAILABLE(PLAYER0,LIGHTNING,1,20)
    TRAP_AVAILABLE(PLAYER0,BOULDER,1,10)
    TRAP_AVAILABLE(PLAYER0,WORD_OF_POWER,1,0)


    REM ********** settings **********

    SET_CREATURE_MAX_LEVEL(ALL_PLAYERS,THIEF,10)

    CREATE_PARTY(A)
    ADD_TO_PARTY(A,FAIRY,3,0,ATTACK_ENEMIES,0)
    ADD_TO_PARTY(A,ARCHER,5,0,ATTACK_ENEMIES,0)
    ADD_TO_PARTY(A,BARBARIAN,4,0,ATTACK_ENEMIES,0)


    DISPLAY_OBJECTIVE(12,PLAYER0)

    IF(PLAYER0,DUNGEON_DESTROYED == 1)
    LOSE_GAME
    ENDIF

    IF(PLAYER0,TOTAL_CREATURES == 0)
    LOSE_GAME
    ENDIF

    IF_ACTION_POINT(3,PLAYER0)
    WIN_GAME
    ENDIF

    SET_TIMER(PLAYER0,TIMER2)
    SET_TIMER(PLAYER0,TIMER1)

    IF(PLAYER0,TIMER2 >= 1000)
    SET_TIMER(PLAYER0,TIMER0)
    ENDIF

    IF(PLAYER0,TIMER2 >= 25000)
    SET_TIMER(PLAYER0,TIMER3)
    ENDIF

    IF(PLAYER0,TIMER0 >= 200)
    IF(PLAYER_GOOD,FAIRY < 5)
    NEXT_COMMAND_REUSABLE
    ADD_PARTY_TO_LEVEL(PLAYER_GOOD,A,4,1)
    NEXT_COMMAND_REUSABLE
    SET_TIMER(PLAYER0,TIMER0)
    ENDIF
    ENDIF

    IF(PLAYER0,TIMER1 >= 5000)
    IF(PLAYER_GOOD,ARCHER < 50)
    NEXT_COMMAND_REUSABLE
    ADD_CREATURE_TO_LEVEL(PLAYER_GOOD,ARCHER,5,1,8,0)
    NEXT_COMMAND_REUSABLE
    SET_TIMER(PLAYER0,TIMER0)
    ENDIF
    ENDIF

    IF(PLAYER0,TIMER3 >= 500)
    NEXT_COMMAND_REUSABLE
    ADD_CREATURE_TO_LEVEL(PLAYER_GOOD,GIANT,4,1,10,0)
    NEXT_COMMAND_REUSABLE
    SET_TIMER(PLAYER0,TIMER3)
    ENDIF

    IF_ACTION_POINT(1,PLAYER0)
    ADD_CREATURE_TO_LEVEL(PLAYER_GOOD,GIANT,2,4,9,0)
    ADD_CREATURE_TO_LEVEL(PLAYER_GOOD,GIANT,2,3,10,0)
    ADD_CREATURE_TO_LEVEL(PLAYER_GOOD,MONK,6,1,8,0)
    ADD_CREATURE_TO_LEVEL(PLAYER_GOOD,MONK,6,1,9,0)
    ADD_CREATURE_TO_LEVEL(PLAYER_GOOD,MONK,6,1,10,0)
    ENDIF

    would this be right?

    and with the 'add creature to level', I was trying to get 5 level 8 ninjas to spawn at my dungeon hart at the start
    and thanks a lot for all your help and patience!
    Last edited by Junkman1217; July 1st, 2020 at 03:00.

  5. #15

    Default Re: start with creature?

    No, you put 'DUNGEON_HEART' again. See post #4 in this topic.

  6. #16

    Default Re: start with creature?

    I got them to apear! Thanks and sorry for my hardheadedness

  7. #17

    Default Re: start with creature?

    good.

Similar Threads

  1. Replies: 8
    Last Post: January 17th, 2019, 08:45
  2. Replies: 3
    Last Post: June 22nd, 2014, 02:32
  3. Adding a "Start Creature"
    By Lotex in forum DK1 Troubleshooting
    Replies: 7
    Last Post: March 9th, 2011, 07:22
  4. I updated, now DK2 won't start
    By ZaDrugLord in forum DK2 Troubleshooting
    Replies: 3
    Last Post: March 15th, 2010, 01:46
  5. Won't start
    By tehbassdemon in forum KeeperFX
    Replies: 16
    Last Post: January 4th, 2010, 18:20

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
  •