Page 1 of 1

Chest to mimic upon opening?

Posted: Tue Jul 14, 2015 9:25 pm
by barronvonburp
How would one go about making this script a reality?

Re: Chest to mimic upon opening?

Posted: Tue Jul 14, 2015 9:54 pm
by THOM
run a script with

Code: Select all

chest_1.chest:setMimic(true)
"chest_1" must be the name of your chest.

Re: Chest to mimic upon opening?

Posted: Wed Jul 15, 2015 1:29 am
by barronvonburp
Right, how would i edit said mimic's HP using a script?

Re: Chest to mimic upon opening?

Posted: Wed Jul 15, 2015 2:26 am
by Azel
I spawn modified mimic's but I cheat a bit. I use a floor trigger instead of relying on the Player to click the Chest.

See this thread for the full sample Dungeon code: http://grimrock.net/forum/viewtopic.php ... 304#p97304

Re: Chest to mimic upon opening?

Posted: Sun Apr 03, 2016 2:29 pm
by AndakRainor
Just for convenience:

Code: Select all

defineObject{
  name = "mimic_chest",
  baseObject = "chest",
  components = {
    {
      class = "Chest",
      mimic = true,
    },
  },
}
There should have been an option in the editor gui for that!