Results 1 to 4 of 4

Thread: Changing the rooms required to attract creatures with script

  
  1. #1

    Default Changing the rooms required to attract creatures with script

    I noticed that keeperfx changed samurai to require atleast a torture room to attract, a quick look in the config files confirms it.

    Code:
    EntranceRoom = TRAINING BARRACKS TORTURE
    RoomSlabsRequired = 9 6 1
    This breaks one of my custom levels a bit, so i was looking for ways to revert it.
    I found the Command SET_CREATURE_CONFIGURATION, but it doesn't seem to work for the EntranceRoom property

    Code:
    SET_CREATURE_CONFIGURATION(SAMURAI,EntranceRoom,TRAINING BARRACKS NULL)
    SET_CREATURE_CONFIGURATION(SAMURAI,RoomSlabsRequired,9 6 0)
    I've also tried seperating the values into different arguments

    Code:
    SET_CREATURE_CONFIGURATION(SAMURAI,EntranceRoom,TRAINING,BARRACKS,NULL)
    SET_CREATURE_CONFIGURATION(SAMURAI,RoomSlabsRequired,9,6,0)
    But it also doesn't seem to work, the same command functions properly for setting other stuff like AttackPreference just fine.
    I've also found and tried the SET_CREATURE_PROPERTY command, but it doesn't work either.

    Anyone got tips on how i can set this up without a custom Samurai config file?

  2. #2

    Default Re: Changing the rooms required to attract creatures with script

    KeeperFX did not as much 'change' the requirements for heroes, but set them. In the original game the heroes had no room requirements at all, KeeperFX gave them room requirements. And these have been unchanged for at least 15 years now. Which map did it break for you?

    You needed to do it as separate arguments, but I did do a recent fix to SET_CREATURE_CONFIGURATION. Could you let me know if it works for you on the latest alpha?

  3. #3

    Default Re: Changing the rooms required to attract creatures with script

    Thanks, it works on the newest alpha.

    As said, it's a custom level, but i don't plan on releasing it just yet.
    I swear that i saw recent patchnotes regarding adding torture chamber to the rooms required for samurai, and i remember it being different about a year ago.

  4. #4

    Default Re: Changing the rooms required to attract creatures with script

    Well because you asked I checked to see it really was unchanged for all this time. But you might want to reconsider changing the requirements for the unit if the map is not released yet. Your players will in fact expect the normal room requirements, unless you can somehow communicate that your map differs there.

Similar Threads

  1. Kill all creatures from specific player? Script any?
    By UnknownMaster21 in forum KeeperFX
    Replies: 14
    Last Post: February 25th, 2015, 00:37
  2. Changing creatures available at start
    By cactus53 in forum KeeperFX
    Replies: 2
    Last Post: February 12th, 2012, 18:20
  3. Creatures Not Entering (Not Script Problem)
    By Metal Gear Rex in forum DK1 Mapmaking
    Replies: 3
    Last Post: December 5th, 2009, 23: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
  •