I've uploaded a new version: Alpha 2080.
What's new:
- Rewritten imps returning gold to treasure rooms
- Fixes the issue that imps will take forever to find a spot when the treasure room is almost full - An on-screen message is displayed when the thing limit is almost reached
- Enabled this classic bug for Ancient Keeper campaign, so level 10 is winnable again - Reverted flame-breath values, as it made Dragons miss too often
- Fixed AlwaysTunnelToRed classic bug.
- New variable in rules.cfg: TortureDeathChance
- Sets the chance a unit will instantly die when broken during torture.
- Default = 0, so no difference in normal behavior
- Precedes the TortureConvertChance. - New variables in rules.cfg: StunEvilEnemyChance/StunGoodEnemyChance
- Evil for creatures, Good for heroes
- Sets - when at all possible - the chance units get stunned for prison
- Default = 100, like before, all units will get stunned with imprisonment on - Introduced new level script command: SET_GAME_RULE
- Works like: SET_GAME_RULE([name],[val]), where the name comes from the rules.cfg file, and the val is the value you want to give it
- Can be used withing an IF-statement
I've added these rules to the script command:
- BodiesForVampire
- Use this to make a graveyards more or less effective on a map. You can set it to fewer when a player has many vampires, but note like all the other options, it's for all keepers. - PrisonSkeletonChance
- Use this on maps with many heroes, so that not all units that die in prison will get raised as a skeleton. - GhostConvertChance
- This allows you to make ghosts a rare occurrence. - TortureConvertChance
- The default is 33, meaning that when you have 2 map reveals for every conversion. - TortureDeathChance
- New in rules.cfg, makes torture not a surefire thing. Again, an option to balance maps with lots of heroes. - FoodGenerationSpeed
- Makes hatcheries more or less effective - StunEvilEnemyChance
- Yet another one to balance a map, use it to make it hard to capture enemy creatures in the first place. - StunGoodEnemyChance
- Same, but with heroes. My suggestion is to give this a lower value than the evil one, make owning heroes something special. - BodyRemainsFor
- Use this to make it harder or easier to collect corpses for the graveyard - FightHateKillValue
- Makes a keeper hate you more (or love you with a negative value) when you kill one of his units, when he hates you enough he'll attack. - PreserveClassicBugs
- Allows you to set classicbugs on single maps, or the other way around, to disable classic bugs in maps in a campaigns with them enabled.
- If there are maps in the database that don't work well on KeeperFX, this is a solution. - DungeonHeartHealHealth
- Normally every 8 game turns, all dungeons hearts recover 1 health. Now, set it to an higher value to quickly heal hearts, or a negative value to drain away the health of hearts.
To get the val for PreserveClassicBugs, add up the following numbers:
Code:
ResurrectForever = 1
Overflow8bitVal = 2
ClaimRoomAllThings = 4
ResurrectRemoved = 8
NoHandPurgeOnDefeat = 16
MustObeyKeepsNotDoJobs = 32
BreakNeutralWalls = 64
AlwaysTunnelToRed = 128
So SET_GAME_RULE(PreserveClassicBugs,72) will enable BreakNeutralWalls and ResurrectRemoved
Adding more rules from rules.cfg to this command is possible, so if you have a request, let me know and I'll add it.