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 : "Run label ... on ..." command
New Topic New Poll Post Reply
Poster Message
skell
Level: Legendary Smitemaster
Avatar
Rank Points: 3734
Registered: 12-28-2004
IP: Logged
icon "Run label ... on ..." command (+2)  
Extracted from this thread/

It's been many times requested to be able to have special handling of character's death and I came up with a neat solution:

1. A new command Run label ... on ..., which will allow you to select a label to run and a list of situations where it runs. For this case let's discuss only "On Death".
2. When a character that has registered On Death command is killed, instead they are turned invisible and they are marked.
3. After every monster's move is processed. All marked characters then do the equivalent of "Go to label" and are processed normally. Actually removing the character from the room will be on the architect.
4. At the end of turn processing, somewhere after bombs explode, fire traps burn and spike traps pierce, all of the characters that were killed by the above.
5. A character killed by a character during this processing will be immediately marked and added to the end of the list of marked characters.

Potential problem: #5 means we can have infinite loop of characters reappearing and killing each other, so there will have to be some kind of upper limit of how many times it can happen per turn and it will be 1,216 - the total number of squares in a room.

____________________________
My website | Facebook | Twitter
11-24-2020 at 09:22 AM
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 : Feature Requests : "Run label ... on ..." command
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.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.