Announcement: Be excellent to each other.


Caravel Forum : DROD Boards : Bugs : "Pressure plate released" event does not work
New Topic New Poll Post Reply
Poster Message
uncopy2002
Level: Smiter
Rank Points: 432
Registered: 07-28-2014
IP: Logged

File: Pressure plate released event bug.hold (1.2 KB)
Downloaded 44 times.
License: Public Domain
icon "Pressure plate released" event does not work (+1)  
Demo hold included. The three characters are set at different priority (1, 500 and 9999), who will speech for either "pressure plate triggered" and "pressure plate released" event.

When something steps on a pressure plate, the characters of priority later than it properly reports pressure plate being triggered, which works as expected. However, not under any circumstances have they managed to detect pressure plated being released at all.


Edit: A brief search seems to reveal this ancient thread back in 2007, which mentioned more test case failures. I suggest we should consider all Wait for events comprehensively in this thread.
http://forum.caravelgames.com/viewtopic.php?TopicID=15070

Edit 2: "Activated temporal split" doesn't work either.

[Last edited by uncopy2002 at 02-27-2016 02:08 PM]
02-27-2016 at 11:53 AM
View Profile Send Private Message to User Show all user's posts Quote Reply
skell
Level: Legendary Smitemaster
Avatar
Rank Points: 3824
Registered: 12-28-2004
IP: Logged
icon Re: "Pressure plate released" event does not work (+1)  
Events which happen after monster movement will never detect the event when used together with "If" command, because the event is triggered after monsters move (including scripted characters), and on the next turn the event is already cleared.

This can be cleverly worked around by using a separate character for checking Wait for Event, without any IF, and then setting variable (and if you need to check it repeatedly make it generate another entity that does the check).

The reason using it without IF works is because when a character fails a Wait for Event check this information is stored, and then after the room is fully processed all of the characters which were waiting for a cue event are processed. And if the event DID occur, on the next turn they'll continue executing the script from the next command.

____________________________
My website
10-18-2020 at 11:20 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts High Scores This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Bugs : "Pressure plate released" event does not work
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.9
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.