Announcement: Remember: you are giving away your fantastic ideas for free, and somebody else might even make money from them (or appear to). That's just how the world works! If you're worried about it, maybe you shouldn't post your ideas here.


Caravel Forum : DROD Boards : Feature Requests : Add some means to trigger scripts on room exit
New Topic New Poll Post Reply
Poster Message
Dragon Fogel
Level: Smitemaster
Rank Points: 2824
Registered: 06-21-2014
IP: Logged
icon Add some means to trigger scripts on room exit (+2)  
This would mostly be a convenience feature. Sometimes you might want to reset a variable or change player role or whatever when the player leaves a room, and it would be more convenient to be able to set up a script to do that on room exit rather than account for every possible room the player could exit into and put the script there.

This is mostly on my mind due to a particular room in The Descent of King Hesper where we forgot to clear a variable upon leaving the room, and it had side effects elsewhere. That room can be exited in multiple ways, so if there were a way to just say "reset the variable when you leave the room", that would be a simpler fix than most other options.
06-10-2025 at 11:09 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
mauvebutterfly
Level: Smitemaster
Avatar
Rank Points: 817
Registered: 05-03-2015
IP: Logged
icon Re: Add some means to trigger scripts on room exit (+2)  
Custom weapon tokens are an obvious example of something that would benefit from this feature. I'd really appreciate being able to run a script on room exit.

____________________________
106th Skywatcher
06-11-2025 at 01:59 AM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
averagemoe
Level: Smitemaster
Avatar
Rank Points: 557
Registered: 03-22-2012
IP: Logged
icon Re: Add some means to trigger scripts on room exit (0)  
I've been doing this thing where I have a global script that first checks if it's turn zero, and if so, it resets everything to the default (player role as Beethro with a sword), and then ends.

____________________________
The internet is no place to act like a wild animal.
06-11-2025 at 05:22 AM
View Profile Send Private Message to User Show all user's posts Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Feature Requests : Add some means to trigger scripts on room exit
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.