You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Scheduler as is can only push entities to its stack. If I want to change the order of entities acting then I am forced to hack this into the engine. I can’t just modify the speed - if I want a new entity to act first then I have to push a silent turn on all other entities to get there, which is a bigger hack than modifying ROT.js. I needed this hack for player summoned entities that copy the player’s moves - they must act before the monsters, because the player will assume they follow the same rules as themselves.
I’ve used an old version of ROT.js as I was building on top of an engine of mine from 2015 and didn’t want to deal with any changes that would be easy to miss. I’ve basically duplicated the Event scheduler stack push and rewritten it to an unshift, then I’ve repeated that operation down to the Speed Scheduler which was all I needed.
Being able to request and load arrays of entities would also be useful for games that do some hacking with turn order.
The text was updated successfully, but these errors were encountered:
The Scheduler as is can only push entities to its stack. If I want to change the order of entities acting then I am forced to hack this into the engine. I can’t just modify the speed - if I want a new entity to act first then I have to push a silent turn on all other entities to get there, which is a bigger hack than modifying ROT.js. I needed this hack for player summoned entities that copy the player’s moves - they must act before the monsters, because the player will assume they follow the same rules as themselves.
My hack of ROT.js is used in my game No’hanz:
https://st33d.itch.io/nohanz
I’ve used an old version of ROT.js as I was building on top of an engine of mine from 2015 and didn’t want to deal with any changes that would be easy to miss. I’ve basically duplicated the Event scheduler stack push and rewritten it to an unshift, then I’ve repeated that operation down to the Speed Scheduler which was all I needed.
Being able to request and load arrays of entities would also be useful for games that do some hacking with turn order.
The text was updated successfully, but these errors were encountered: