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!
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.
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.
Last edited by Junkman1217; June 28th, 2020 at 15:15.
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)
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
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'?
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
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.
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.
like that? and would the (1) on the end be the level he is?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)
Last edited by YourMaster; June 28th, 2020 at 22:26. Reason: Put code in [code] tag