Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17

Thread: start with creature?

  
  1. #1

    Default start with creature?

    is there a way to set a level so that I can start it (not with a portal) with a certain creature, like a samurai? and maybe choose what level he is?

    and is there a way to make a samurai through come my portal?

    thanks!
    Last edited by Junkman1217; June 28th, 2020 at 04:24.

  2. #2

    Default Re: start with creature?

    Of course, it pays to look through the script commands, and there is indeed a command for that. Also, you can simply place one with the map editor.

  3. #3

    Default Re: start with creature?

    Quote Originally Posted by Junkman1217 View Post
    is there a way to set a level so that I can start it (not with a portal) with a certain creature, like a samurai? and maybe choose what level he is?

    and is there a way to make a samurai through come my portal?

    thanks!
    I added this to a level in keeper+ campaign, nothing happened

    CREATURE_AVAILABLE(PLAYER0,SAMURAI,1,1)

    ADD_CREATURE_TO_LEVEL(PLAYER0,SAMURAI,DUNGEON_HEAR T,6,400)
    (on my end it's DUNGEON_HEART, not DUNGEON_HEAR T)

    does it matter where I put it?
    Last edited by Junkman1217; June 28th, 2020 at 15:15.

  4. #4

    Default Re: start with creature?

    That first line of code is correct, so if there are samurai in the pool, one creature may come. If you correctly set it to LEVEL_VERSION(1) the samurai should come even if you don't have the rooms for that.

    The ADD_CREATURE_TO_LEVEL command is wrong. There is no [destination] in this command, just [action point]. You could put the unit at a dungeon heart with that though, by specifying the player. So this is what you want:
    Code:
    ADD_CREATURE_TO_LEVEL(PLAYER0,SAMURAI,PLAYER0,6,400)

  5. #5

    Default Re: start with creature?

    Ok, thanks In any case I got the samurai to come through the portal (only one so far)
    But I sped up the game so he would train quicker but for some reason heroes arent getting triggered

  6. #6

    Default Re: start with creature?

    You only asked for 1. If you want more than 1, don't set it to 1,1, but say 1,10.
    And what do you mean by 'aren't getting triggered'?

  7. #7

    Default Re: start with creature?

    I figured it out, The first wave was set to trigger when I had six creatures, But I had the max creatures set for me at five—thanks

  8. #8

    Default Re: start with creature?

    so I think I did the same thing with a level that was hard to start with (trying to make it easier)
    im trying to add samurais with the portal--but its not working
    ( I put them right under the 'orc', so they should come in through my portal after the 'orc', right?


    REM Play Level Manudania

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

    SET_GENERATE_SPEED(300)

    MAX_CREATURES(PLAYER0,26)
    MAX_CREATURES(PLAYER1,10)
    MAX_CREATURES(PLAYER2,34)

    START_MONEY(PLAYER0,999000)
    START_MONEY(PLAYER1,0)
    START_MONEY(PLAYER2,100)
    START_MONEY(PLAYER3,100)

    COMPUTER_PLAYER(PLAYER1,0)
    COMPUTER_PLAYER(PLAYER2,0)
    COMPUTER_PLAYER(PLAYER_GOOD,0)

    ALLY_PLAYERS(PLAYER0,PLAYER1)
    ALLY_PLAYERS(PLAYER2,PLAYER3)
    ALLY_PLAYERS(PLAYER2,PLAYER_GOOD)
    ALLY_PLAYERS(PLAYER3,PLAYER_GOOD)

    ADD_CREATURE_TO_POOL(FLY,5)
    ADD_CREATURE_TO_POOL(BUG,5)
    ADD_CREATURE_TO_POOL(SPIDER,5)
    ADD_CREATURE_TO_POOL(DEMONSPAWN,10)
    ADD_CREATURE_TO_POOL(SORCEROR,8)
    ADD_CREATURE_TO_POOL(BILE_DEMON,6)
    ADD_CREATURE_TO_POOL(DRAGON,12)
    ADD_CREATURE_TO_POOL(HELL_HOUND,20)

    ADD_CREATURE_TO_POOL(TROLL,10)
    ADD_CREATURE_TO_POOL(ORC,10)
    ADD_CREATURE_TO_POOL(SAMURAI,16)
    ADD_CREATURE_TO_POOL(DARK_MISTRESS,12)
    ADD_CREATURE_TO_POOL(TENTACLE,5)
    ADD_CREATURE_TO_POOL(HORNY,12)

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

    CREATURE_AVAILABLE(PLAYER2,FLY,1,1)
    CREATURE_AVAILABLE(PLAYER2,BUG,1,1)
    CREATURE_AVAILABLE(PLAYER2,SPIDER,1,1)
    CREATURE_AVAILABLE(PLAYER2,DEMONSPAWN,1,1)
    CREATURE_AVAILABLE(PLAYER2,SORCEROR,1,1)
    CREATURE_AVAILABLE(PLAYER2,BILE_DEMON,1,1)
    CREATURE_AVAILABLE(PLAYER2,DRAGON,1,1)
    CREATURE_AVAILABLE(PLAYER2,HELL_HOUND,1,1)

    CREATURE_AVAILABLE(PLAYER0,TROLL,1,1)
    CREATURE_AVAILABLE(PLAYER0,ORC,1,1)
    CREATURE_AVAILABLE(PLAYER0,SAMURAI,1,16)
    CREATURE_AVAILABLE(PLAYER0,DARK_MISTRESS,1,4)
    CREATURE_AVAILABLE(PLAYER0,TENTACLE,1,1)
    CREATURE_AVAILABLE(PLAYER0,HORNY,1,1)
    CREATURE_AVAILABLE(PLAYER1,TROLL,1,1)
    Last edited by Junkman1217; June 28th, 2020 at 18:24.

  9. #9

    Default Re: start with creature?

    The order in which you put them does not matter. I see all your creature available commands have 1,1 at the end, so this tells me you did not put level_version(1) in the script. If you want to force creatures, put level_version(1) in the script. Then, change all the instances where you just want to get the units from the portal with the correct room, to '1,0', and only the ones where you want an 'x' number of units to ignore the room requirements to '1,x'.

    There could be more commands in the script for Manudania that work differently in version 1 compared to version 0 of the script. To check, start the level, close the game, then open keeperfx.log with notepad or something. Near the top it would tell you about errors in the level script, and use the wiki page I linked above to update the outdated script commands.

  10. #10

    Default Re: start with creature?

    Quote Originally Posted by YourMaster View Post
    The order in which you put them does not matter. I see all your creature available commands have 1,1 at the end, so this tells me you did not put level_version(1) in the script. If you want to force creatures, put level_version(1) in the script. Then, change all the instances where you just want to get the units from the portal with the correct room, to '1,0', and only the ones where you want an 'x' number of units to ignore the room requirements to '1,x'.

    There could be more commands in the script for Manudania that work differently in version 1 compared to version 0 of the script. To check, start the level, close the game, then open keeperfx.log with notepad or something. Near the top it would tell you about errors in the level script, and use the wiki page I linked above to update the outdated script commands.
    Code:
    REM Play Level Manudania
    
    REM ******* Basic settings *******
    
    SET_GENERATE_SPEED(300)
    
    MAX_CREATURES(PLAYER0,26)
    MAX_CREATURES(PLAYER1,10)
    MAX_CREATURES(PLAYER2,34)
    
    START_MONEY(PLAYER0,999000)
    START_MONEY(PLAYER1,0)
    START_MONEY(PLAYER2,100)
    START_MONEY(PLAYER3,100)
    
    COMPUTER_PLAYER(PLAYER1,0)
    COMPUTER_PLAYER(PLAYER2,0)
    COMPUTER_PLAYER(PLAYER_GOOD,0)
    
    ALLY_PLAYERS(PLAYER0,PLAYER1)
    ALLY_PLAYERS(PLAYER2,PLAYER3)
    ALLY_PLAYERS(PLAYER2,PLAYER_GOOD)
    ALLY_PLAYERS(PLAYER3,PLAYER_GOOD)
    
    ADD_CREATURE_TO_POOL(FLY,5)
    ADD_CREATURE_TO_POOL(BUG,5)
    ADD_CREATURE_TO_POOL(SPIDER,5)
    ADD_CREATURE_TO_POOL(DEMONSPAWN,10)
    ADD_CREATURE_TO_POOL(SORCEROR,8)
    ADD_CREATURE_TO_POOL(BILE_DEMON,6)
    ADD_CREATURE_TO_POOL(DRAGON,12)
    ADD_CREATURE_TO_POOL(HELL_HOUND,20)
    
    ADD_CREATURE_TO_POOL(TROLL,10)
    ADD_CREATURE_TO_POOL(ORC,10)
    ADD_CREATURE_TO_POOL(SAMURAI,16) level_version(1)
    ADD_CREATURE_TO_POOL(DARK_MISTRESS,6)
    ADD_CREATURE_TO_POOL(TENTACLE,5)
    ADD_CREATURE_TO_POOL(HORNY,12)
    
    REM ********** Available creatures **********
    
    CREATURE_AVAILABLE(PLAYER2,FLY,1,1)
    CREATURE_AVAILABLE(PLAYER2,BUG,1,1)
    CREATURE_AVAILABLE(PLAYER2,SPIDER,1,1)
    CREATURE_AVAILABLE(PLAYER2,DEMONSPAWN,1,1)
    CREATURE_AVAILABLE(PLAYER2,SORCEROR,1,1)
    CREATURE_AVAILABLE(PLAYER2,BILE_DEMON,1,1)
    CREATURE_AVAILABLE(PLAYER2,DRAGON,1,1)
    CREATURE_AVAILABLE(PLAYER2,HELL_HOUND,1,1)
    
    CREATURE_AVAILABLE(PLAYER0,TROLL,1,1)
    CREATURE_AVAILABLE(PLAYER0,ORC,1,1)
    CREATURE_AVAILABLE(PLAYER0,SAMURAI,1,16) level_version(1)
    CREATURE_AVAILABLE(PLAYER0,DARK_MISTRESS,1,4)
    CREATURE_AVAILABLE(PLAYER0,TENTACLE,1,1)
    CREATURE_AVAILABLE(PLAYER0,HORNY,1,1)
    CREATURE_AVAILABLE(PLAYER1,TROLL,1,1)
    like that? and would the (1) on the end be the level he is?
    Last edited by YourMaster; June 28th, 2020 at 22:26. Reason: Put code in [code] tag

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
  •