Script to track party movement in a room?

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
Ryeath_Greystalk
Posts: 366
Joined: Tue Jan 15, 2013 3:26 am
Location: Oregon

Script to track party movement in a room?

Post by Ryeath_Greystalk »

I've been racking my brain trying to make ths work with my very limited knowledge, but I have come asking for help again.

I have a room with all trap doors on the floor and the party needs to find the correct path across. Since (as far as I know) I can't put a pressure plate on a trap door I'm looking for a way to keep track of the party location as they move through a room to know when they are on an active trap door and need to be dumped.

So far I've tried using a couple different variations of 'while' statements, i.e. while party.y > 21 do etc, but just end up getting, I pressume, and endless loop because the editor in the preview mode freezes up as soon as the function triggers.

I also see a onMove() function in the list that JKOS has linked, but no matter how I phrase it I just get attempt to call...nil value.

I scoured the forums here and the closest thing I can find is the one that makes the party have to walk backwards, but I can't figure out how it tracks the party posistions.

Any help would be greatly appreciated.

Thanks
User avatar
msyblade
Posts: 792
Joined: Fri Oct 12, 2012 4:40 am
Location: New Mexico, USA
Contact:

Re: Script to track party movement in a room?

Post by msyblade »

well, good news. You CAN use hidden pads :)
Currently conspiring with many modders on the "Legends of the Northern Realms"project.

"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
Ryeath_Greystalk
Posts: 366
Joined: Tue Jan 15, 2013 3:26 am
Location: Oregon

Re: Script to track party movement in a room?

Post by Ryeath_Greystalk »

msyblade wrote:well, good news. You CAN use hidden pads :)
Well, now that was easy. I'm sure feeling pretty dumb about now.

Thanks msyblade.
Post Reply