Announcement: Be excellent to each other.


Caravel Forum : DROD RPG Boards : RPG Feature Requests : Modifying "Speed" for Scripted Characters
New Topic New Poll Post Reply
Poster Message
TFMurphy
Level: Smitemaster
Rank Points: 3118
Registered: 06-11-2007
IP: Logged
icon Modifying "Speed" for Scripted Characters (+2)  
Before I launch into this request, let me explain something about turn order. Each entity in a standard DROD room has a Process Sequence. This, along with the order the entities were created, dictates in what order they move.

As an example, the default Process Sequence for most monsters is 1000. Entities with a lower Process Sequence (like Mimics/Decoys/Clones with 100, Fegundos with 150, Slayers with 200 and so forth) move before entities with higher Process Sequences, no matter what order they're placed in the room.

Characters have a Process Sequence of 9999. This guarantees that they move after every monster. This is a great default value, because it allows the character to check for all room changes that have occurred in the room and react accordingly.

========

After working on my own heavily scripted projects though, it occurred to me that it would be very useful if this ordering for Characters could be overridden for particular scripts. The benefits of this would be as follows:

DROD RPG
* With the existence of Global and Default Scripts, being able to dictate the order these scripts run in is *HIGHLY* useful. When coding the TotS port, there were many times where I had to be extra careful in how I placed Global Scripts, simply because in order to get them to interact in the right way, I had to make sure that they ran in a particular order. If I could set some of these scripts to slightly higher or lower Process Sequences though, I would be better able to dictate the order they ran in, or guarantee that certain unique scripts in a room ran before or after Global Scripts.

DROD TCB
* The ability to code Custom Monsters that move before others allows for more options in puzzle creation, and can even be intuitive if used well. As an example, the Reverse-Mimic we've seen in some holds doesn't quite work as well as it could due to the fact that it moves after every other monster, unlike real Mimics. If you could set the Process Sequence of a Reverse-Mimic to 100, though, you'd end up with one that moved exactly when all other Mimics do.

Just as with all things, this does have the potential to be abused, but I think the above benefits outweigh that. And TCB would also find use of it in Global and Default Scripts once it inherits the advanced script options from RPG.

========

The remaining question is how best to allow setting or changing this. Ideally, it would be a number attached to an individual character or Default Script rather than a Script Command; that way, it would have the right Process Sequence even at Turn 0. It's plausible that there might be uses for a Script Command to change it on the fly (it wouldn't be the only time in TCB that monsters change their movement order dynamically), but being able to set before Turn 0 would be the most critical part of it all. Possibly a button or box to the left of the Okay at the bottom of the script editor?

If you have any questions about this, feel free to ask.

05-21-2009 at 12:27 AM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
Someone Else
Level: Smitemaster
Avatar
Rank Points: 2340
Registered: 06-14-2005
IP: Logged
icon Re: Modifying "Speed" for Scripted Characters (0)  
Wow. I have had issues with this problem, but I had no idea that it could be fixed. Brilliant!
05-21-2009 at 06:09 AM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
calthax
Level: Roachling
Rank Points: 1
Registered: 11-08-2013
IP: Logged
icon Re: Modifying "Speed" for Scripted Characters (0)  
can you explain what happens every turn using this process sequence
12-22-2013 at 02:19 AM
View Profile Send Private Message to User Show all user's posts Quote Reply
12th Archivist
Level: Smitemaster
Avatar
Rank Points: 789
Registered: 12-07-2008
IP: Logged
icon Re: Modifying "Speed" for Scripted Characters (0)  
calthax wrote:
can you explain what happens every turn using this process sequence
Here is a full list of what happens during a turn (at least in classic DROD; it's shorter in RPG, but the idea still applies). This feature would be especially useful in classic DROD since it lets scripted monsters move with normal monsters, but there's a use in RPG as well. If some default scripts have a lower speed, they automatically get processed first. This saves scripters from having to place characters or script commands in a certain order to make them work at the right time; the computer would do it automatically.

____________________________
It was going well until it exploded.
~Scott Manley

Check out the DROD Wikia project here!

[Last edited by 12th Archivist at 12-22-2013 04:25 AM]
12-22-2013 at 04:24 AM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD RPG Boards : RPG Feature Requests : Modifying "Speed" for Scripted Characters
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.