Version 4.01


NEW FEATURE: Full support for the "timeline" turn model. To activate it, set the TURN_MODEL variable to "timeline". Documentation pending. Might be buggy. Report any issues. I intended to couple this release with a new microgame to demonstrate the ins and outs of the timeline system, but unfortunately, it's taking longer than expected. I hope to release that and some documentation on the new system before long, but I can't give any hard dates. Other changes:
  • New Action properties recoveryTime and waitTime have been added to work with the new system.
  • A new variable, TURN_MODEL, can now be set in StoryInit to determine the turn model you want to use. Currently, only the free-action model and the timeline model are functional.
  • Additionally, actors must now be active in order to perform delayed actions, unless they have the delayPersist attribute. This will not affect the free-action model, but it will affect other turn models by allowing delayPersist actions to execute when it isn't the user's turn.
  • Removed an extra shieldCheck in applyEffect that was a holdover from the old version.
  • New Effect property: onDecay. This is a string name of an action to be executed when the effect decays. (It will not execute if the effect is removed by other means.) The subject of the action is determined by the subject property of the effect, which must be added manually on application.
  • The default preview logic for actions has now been offloaded to its own file, preview-function.js, to make it easier to customize for your needs.
  • Swapped the argument order for args and effects in applyEffect, because making effects an Action property meant I found myself needing to define args more often than effects. Any actions currently using the function will need to edited, but it should be a simple adjustment.
  • Added a style tweak: Marker elements (bullet points) are now set to appear like text-adventure prompts. I consider this a neater way of formatting lists of player choices. To edit this, go to markers.css in custom/stylesheets.

Files

rpgengine source.zip 6.5 MB
Jan 31, 2022

Get Another RPG Engine

Leave a comment

Log in with itch.io to leave a comment.