Page 1 of 1

Script to track party movement in a room?

Posted: Thu Jan 31, 2013 5:51 am
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

Re: Script to track party movement in a room?

Posted: Thu Jan 31, 2013 6:27 am
by msyblade
well, good news. You CAN use hidden pads :)

Re: Script to track party movement in a room?

Posted: Thu Jan 31, 2013 8:09 am
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.