Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
I want to add the "secret found" sound to my "secret found" text pop up. I tried making a sound on the map and having the trigger activate it, but the game wen't tits up when I did.
I want to add the "secret found" sound to my "secret found" text pop up. I tried making a sound on the map and having the trigger activate it, but the game wen't tits up when I did.
How do I add the sound to my trigger? Thanks
Just place a floor_trigger where you want a secret to activate, then place the asset 'Secret' somewhere and connect the trigger to it. Be sure to check disable_self.
defineObject{
name = "jw_tome_of_wisdom",
baseObject = "tome_wisdom",
components = {
{
class = "Item",
uiName = "Boo Yah!",
gfxIndex = 30,
description = "A mysterious tome that will give you a skill point!",
}
},
}
Be sure to add weight or you'll crash the game if you throw an item that's supposed to interact with gravity.
defineObject{
name = "jw_tome_of_wisdom",
baseObject = "tome_wisdom",
components = {
{
class = "Item",
uiName = "Boo Yah!",
gfxIndex = 30,
weight = 1.0,
description = "A mysterious tome that will give you a skill point!"
}
}
}