Bossfight and water

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!
Post Reply
vieuxchat
Posts: 48
Joined: Wed Mar 02, 2016 3:14 pm

Bossfight and water

Post by vieuxchat »

When I create a bossfight, start it and the party enters the water, the music of the bossfight stops.
Is there a way to prevent this ?

Thanks in advance.
minmay
Posts: 2790
Joined: Mon Sep 23, 2013 2:24 am

Re: Bossfight and water

Post by minmay »

There is not. Even if you remove the "underwater" track, the level's music will still restart when you leave the water.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
vieuxchat
Posts: 48
Joined: Wed Mar 02, 2016 3:14 pm

Re: Bossfight and water

Post by vieuxchat »

Thank you.
It's a bit sad. No over/underwater bossfight with epic music :(
User avatar
Isaac
Posts: 3192
Joined: Fri Mar 02, 2012 10:02 pm

Re: Bossfight and water

Post by Isaac »

This seems to work when I try it...

Code: Select all

function bossMusic()
 --call via hidden one time floor_trigger under the party when they fall.
	
	GameMode.playStream(boss.bossfight:getMusic())
end
I tried this in a boss fight starting with the party on land, and then falling into the water. The music stops as soon as they fall in, but starts again immediately ~and ends with the end of the boss fight.

It is too bad that the music won't play constantly while the party move in and out of the water.

**However... A careful choice of music might help a lot... I'd imagine that a regular drum beat might not sound so bad despite occasional restarts. 8-)
minmay
Posts: 2790
Joined: Mon Sep 23, 2013 2:24 am

Re: Bossfight and water

Post by minmay »

But that still restarts the music every time.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
vieuxchat
Posts: 48
Joined: Wed Mar 02, 2016 3:14 pm

Re: Bossfight and water

Post by vieuxchat »

The music also stops when I get out of the water...
Hum... Maybe a heart beat music could be enough. But a simple timer that starts the heartbeatsound every seconds would be enough.
Anyway, thanks for the try.
User avatar
Isaac
Posts: 3192
Joined: Fri Mar 02, 2012 10:02 pm

Re: Bossfight and water

Post by Isaac »

minmay wrote:But that still restarts the music every time.
Of course ~like it says.

If there is a last glog session for LoG2 before any LoG3 release, that might be a thing to ask... That a flag or a playstream_alt() be added, to the game; that does allow unbroken streams.

* I think the sudden stop when plunging under water, is meant to better emphasize the change to a [more] dangerous environment.
Post Reply