Version 3.00
Another RPG Engine » Devlog
- Targeting logic has been overhauled. It is now handled through functions rather than widgets, and certain adjustments such as Firefly have been automated.
- A
Hitlist
class has been defined to facilitate this. It is an array that takes a set of targets and tracks the chance of selection for each. Smart targeting effects have been placed in a method function,addFactors
. - Added several additional smart targeting clauses.
- Added an additional targeting factor: "Wallflower". This functions as the inverse of Firefly, halving the chance of being targeted.
- Firefly and Wallflower adjustment factors can now be modified through the
setup
variablesFIREFLY_FACTOR
andWALLFLOWER_FACTOR
. - Added support for enemies being affected by loss-of-control effects.
- The functionality of
threatTarget
is now automatically provided by theHitlist
constructor. - Default calculation for threat values has been cut by 100, to better sync with other targeting adjustments. This includes
THREAT_DECAY
. guardCheck
andprotectionCheck
are now static methods ofHitlist
and are automatically called whenever thereturnTarget
method ofHitlist
is used.- Actors now have getters for their own party and the opposing party, because I got sick of having to write that out manually.
- The getter for
targetMod
has been altered to automatically return relevant mods for the action. For example, piercing moves will addpierce
and debuff-inflicting moves will addeffect
. effectCount
now takes an argument that will exclude sticky effects.- AI logic functions have been moved from
database-enemies
to a new file,logic-functions.js
. - The functionality of
dispelTarget
has been adapted into the logic functiondispelCheck
. - A new logic function,
cureCheck
, has been created. This is the ailment version ofdispelCheck
, for enemies that use curative moves. - New Effect property:
threat
. This is the value checked bydispelCheck
andcureCheck
, rather than just a straight count. This allows you to weight certain effects more highly. By default, all effects have a threat of 1, except for Blessing and Curse, which have 3. Effects with indefinite durations have their threat doubled, and effects with definite durations have their threat increased by the duration over 4. - The
multihit
function has been slightly altered to avoid using widgets. It now lacks the potential for spread functionality; usemultihitCustom
for that. immortal
,large
, andmaskhp
are now canonized as officialActor
properties; you can assign them to database entries without needing to go throughspecialInit
.- Created setters for
Action
properties to make them easier to edit. You'll no longer need to preface your properties with underscores. - New
Actor
property:lastDmg
. This tracks the amount of damage the character inflicts with their attacks. It is reset at the start of every battle and every turn. This can be used for additional targeting logic, e.g. prioritizing the most dangerous character. - New
Effect
property:unique
. This prevents multiple instances of the effect from existing in a party. A handler for dealing with this functionality has been added toaddEffect
. - I have started cleaning up enemy database entries by defining their actions in the action database, which will make them significantly less messy. These actions are defined in the
enemy-actions.js
file in thecustom
folder; it is separate from thedatabase-actions
file to keep that file clean. Currently, only Dipper and Mabel are done. - Existing effects and enemies have been split off into core files, as actions are.
Files
rpgengine source.zip 6.4 MB
May 08, 2021
Get Another RPG Engine
Another RPG Engine
Engine for creating RPGs in Twine 2 and SugarCube.
Status | In development |
Author | Another RPG Enthusiast |
Genre | Role Playing, Interactive Fiction |
Tags | Game Design, Game engine, Minimalist, Singleplayer, Text based, Turn-based, Turn-Based Combat, Twine |
Languages | English |
Accessibility | Color-blind friendly |
More posts
- Version 6.00Jan 04, 2024
- Version 5.01Aug 27, 2022
- Version 5.00.1 hotfixAug 08, 2022
- Version 5.00: Inventory OverhaulAug 07, 2022
- Version 4.03Jul 16, 2022
- Experiment 03: It's About TimeJun 12, 2022
- Version 4.02.1May 26, 2022
- Version 4.02May 22, 2022
- Version 4.01Jan 31, 2022
- Version 4.00Dec 31, 2021
Leave a comment
Log in with itch.io to leave a comment.