Chest to mimic upon opening?
-
barronvonburp
- Posts: 30
- Joined: Mon Jul 13, 2015 7:41 am
Chest to mimic upon opening?
How would one go about making this script a reality?
Re: Chest to mimic upon opening?
run a script with
"chest_1" must be the name of your chest.
Code: Select all
chest_1.chest:setMimic(true)-
barronvonburp
- Posts: 30
- Joined: Mon Jul 13, 2015 7:41 am
Re: Chest to mimic upon opening?
Right, how would i edit said mimic's HP using a script?
Re: Chest to mimic upon opening?
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
See this thread for the full sample Dungeon code: http://grimrock.net/forum/viewtopic.php ... 304#p97304
- AndakRainor
- Posts: 674
- Joined: Thu Nov 20, 2014 5:18 pm
Re: Chest to mimic upon opening?
Just for convenience:
There should have been an option in the editor gui for that!
Code: Select all
defineObject{
name = "mimic_chest",
baseObject = "chest",
components = {
{
class = "Chest",
mimic = true,
},
},
}