Portal Problem

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
RayB
Posts: 140
Joined: Fri Mar 06, 2015 3:45 am

Portal Problem

Post by RayB »

Can somebody tell me how to use either of the portals in Grim 2? I have tried to place one in a mod but when the party walks through it the screen turns white and stays white. I was able to copy the portal definition into my mod and change the onArrival function to run a dungeon script and function of mine so I can get the screen back. But the party is then locked up. The party can't move or anything. Is it possible to free up the party after walking through the portal?
minmay
Posts: 2768
Joined: Mon Sep 23, 2013 2:24 am

Re: Portal Problem

Post by minmay »

Going through a portal sets the time multiplier to 0.3, disables controls, and fades out the screen. You can undo the effects like this:

Code: Select all

GameMode.setTimeMultiplier(1)
GameMode.setEnableControls(true)
GameMode.fadeIn(0,0)
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.
Post Reply