Plate triggered by Flying Monster

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
Damonya
Posts: 134
Joined: Thu Feb 28, 2013 1:16 pm
Location: France
Contact:

Plate triggered by Flying Monster

Post by Damonya »

Again me. I know I open too much topics, right now, and maybe some have to find me boring. :oops:

Here is my problem. I have a hidden plate and for my puzzle, I have need, the plate triggered only by monster. But when the monster is a flying monster (like a shrakk_torr), the plate is never triggered.

Someone has already encountered this problem? Is this a limitation of the game or we can bypass it?
Orwak - MOD - Beta version 1.0
alois
Posts: 112
Joined: Mon Feb 18, 2013 7:29 am

Re: Plate triggered by Flying Monster

Post by alois »

Damonya wrote:Again me. I know I open too much topics, right now, and maybe some have to find me boring. :oops:

Here is my problem. I have a hidden plate and for my puzzle, I have need, the plate triggered only by monster. But when the monster is a flying monster (like a shrakk_torr), the plate is never triggered.

Someone has already encountered this problem? Is this a limitation of the game or we can bypass it?
You can do the following: set a timer, with a small time interval (say: 0.1 seconds) which, when activated, launches a lookForMonster() function in a script, and then reactivates itself. The lookForMonster function is something like

Code: Select all

function lookForMonster()
   for entity in entitiesAt(party.level,x,y) do -- here x,y are the coordinates of the location where the monster has to be
      if (entity.name == "shrakk_torr") then
         -- do whatever you need to do
      end
   end
end
Note that you do not even need a pressure plate :)

You can activate the timer with an hidden pressure plate when the party enters the room, and deactivate it when it leaves the room.

alois :)
User avatar
Damonya
Posts: 134
Joined: Thu Feb 28, 2013 1:16 pm
Location: France
Contact:

Re: Plate triggered by Flying Monster

Post by Damonya »

Ok thank you once more alois, I would never have thought to do it like that. So problem solved. :)
Orwak - MOD - Beta version 1.0
User avatar
Diarmuid
Posts: 807
Joined: Thu Nov 22, 2012 6:59 am
Location: Montreal, Canada
Contact:

Re: Plate triggered by Flying Monster

Post by Diarmuid »

An onMove hook in the shrakk torr would be more efficient and less error-prone (they move very fas and I have had trouble with Shrakks and timers...).
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: Plate triggered by Flying Monster

Post by Neikun »

You could just clone the monster and set flying = false.
I don't know what that will mean for pits, though.
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
Post Reply