As long as you are using cloneObject, then you only need to define the properties that you want to change. All other properties are read from the 'baseObject'. In order to add your own sound effect, you will need to (untested, could have spelling mistakes etc)...
1. Save it in wav format to mod_assets/samples/new_goromorg_attack_sound.wav.
2. Add an entry to sounds.lua in your dungeon scripts (I don't know if that is there by default, if not, you will also need to import it in your dungeon's init.lua).
Code: Select all
defineSound{
name = "new_goromorg_attack_sound",
filename = "assets/samples/new_goromorg_attack_sound.wav",
loop = false,
volume = 0.25,
}
3. Clone the Goromorog and set the attackSound = your_sound_name.
Code: Select all
cloneObject{
name = "new_goromorg",
baseObject = "goromorg",
attackSound = "new_goromorg_attack_sound",
}