MZ WIP - "Reid's Journey: Foundation of Destiny"

Greetings...

Some time ago, a few years, in fact, I started a tutorial series on creating the framework for a Legend of Zelda / Dragon Warrior hybrid. The original plan was to use the tutorial to take someone through the complete process I was using to create such a game, teaching them how to use both RPG Maker MZ and GIMP at the same time. I got a few lessons in, and then life happened, and I had no choice but to suspend the project indefinitely.

A lot has changed since then, and I've come back, for a completely redirected, fresh start. Knowing how unpredictable things can be in my personal life, I realized I had to make a choice. I could either go back to spending time planning lessons, building the tutorials before actually building my game, or I could buckle down, build my game and produce tutorials later. I chose the latter. Furthermore, I took an interest in using JavaScript for event creation due to the wide range of functionality it unlocks that just isn't achievable with event commands alone.

So, if anyone were to look at any of the events driving my project's mechanics, the only vent command I use is [Script]. The entire event is driven by full JavaScript code.

So where am I at this stage of development?

I've got a working Legend of Zelda status bar that is mostly complete. Widgets include a functional minimap (no map art yet except a blank parchment) that indicates where the player is in the overworld. There's a coin widget that displays how many coin pouches the player has and how many coins they have. I've got quantity trackers for keys and bombs. I've got icons that will update showing the player's sword, armor and shield type. And I've got fully functional life and magic meters. The life meter uses red gem icons instead of hearts. These fade to dark gray as damage is taken. The magic meter uses blue magic orb icons that work the same way as magic is consumed.

I've got an automated screen transition system in place that uses only one parallel event to control where the player transfers to based on the region ID that is used. This event also serves to capture the player's location on the current map to potentially be used by other things on the map if certain conditions are right.

I'm currently working on a custom combat system. It is still turn-based, but it's appearance will be completely different. Like the original Dragon Warrior for the NES, in combat, the player will face one enemy at a time. There is a battlefield window, showing the landscape corresponding to the type of screen environment the encounter is triggered in. There is a combat action window that will scroll up and down as needed to show all combat action icons available to the player. And there is a feedback window that shows messages based on what the player and enemy does in combat. These messages will be pushed up and out of sight as new messages come in. So while looking completely fresh, the behavior of combat will be very close to how it was in Dragon Warrior.

I say "There is" rather than "There will be," because I've got the combat overlay mostly working from a visual standpoint. I'm working on the functional logic currently. There are a lot of moving parts involved, but things are shaping up nicely. My first goal is to get all the mechanics of the game sorted out, then I will begin building the world.

They say that a picture is worth a thousand words. How about two pictures?

Spoiler: Status Bar Showcase
Status Bar showcase:
1763218498321.png
You can see the minimap with a red box indicating the current screen's assigned location on it. Next is the four coin pouches and maximum number of coins. Under that, there are the bomb and key icons and the max number of each. In the right, there's the sword armor and shield icons (placeholder graphics). And finally the life and magic meters.​


Spoiler: Combat Screen
Combat Screen:
1763217631454.png
The colored boxes are placeholders showing where the combat action icons will go. The scroll up/down buttons are a little off-center, but that will be fixed easily enough. The status bar remains visible and will update as items are used and health/magic values change. The battlefield image is dynamically called by the combat overlay. This one is an AI-generated placeholder for an open field, so all game screens taking place in mostly grassy plains will use whatever the final version of this image will be. And you can see text down in the feedback window.
​
So that's it for now. I'm excited to see where this goes.



Why "Reid's Journey"?
Well, I figure that since Reid is the default hero of MZ, I might as well use him

Why "Foundation of Destiny"?
Because this project is foundational for what I would like to see as multiple series of similar adventures, created both by me and by the community. I plan to release the finished product on itch . io, with a name your own price option. But here's the thing: the graphics and sound will not be encrypted, meaning fellow creators in this community can open the released game as a project in the editor. They can then use my project as the basis for their own, even if they also wish to sell. Use of the graphics and sounds are according to the terms of using any of RPG Maker MZ's RTP elements, as I will mostly be using them. Other elements will be from Pixabay or other free art asset site that grants usage rights in commercial projects, or will be AI generated, which US law currently treats as public domain.

I plan to launch a community creation page after releasing the game. Thos who wish to use my game as their project framework will be invited to share their projeject and links to its release links with me, and I will use that page to help promote it as part of my game's "multiverse." I won't control their creative process or seek any royalties or anything like that. They'll be making their thing, and I will be as well. There's room for everyone at this table as far as I am concerned.

Anyway... That's the PLAN. I hope to execute it as best as I can. And I invite you who are reading this to come on the journey with me.

Now let's see where this road leads us.
Together!
​


11/17/2025:
Lots of progrss has been made. Encounter feedback message flow operating smoothly, designed to take "continue arrow" click input to move to the next encounter step where logical. Icon menu updated to wrap available action icons within the menu area, keeping them both vertically and horizontally centered. Placeholder squares for icons are being updated to show actual icons that will be used in-game.

Spoiler: An Encounter with the Black Knight!
1763409482514.png
Encounter step flow control logic finalized and will be integrated, most likely tomorrow. Enemy sprite display logic integrated and confirmed. Woods background added to possible encounter environments.​

Spoiler: Dungeon item test
1763412462491.png
Placeholder Dungeon Screen used to show off the dungeon map, dungeon compass and dungeon key icon representation next to the minimap. The colored globes are test-only elements to give myself these items, using bit masking so only one variable is needed for each type to keep track of all of them. So 3 variables instead of 27 switches.​
This is shaping up quite nicely I really like it! The HUD reminds me a lot of the NES LOZ.
11/20/2025:
Completed first pass of encounter flow logic integration. After lots of trial and error, The player can nowadvance through encounter steps, which are intentionally being designed to do anything from post blocks of text into the feedback window to whatever needs to happen mechanically when that step is reached.

Encounters now have basic combat stats, such as max life, and therefore current life, attack and defense. essentially what is needed to get the basic back and forth combat working until the battle is resolved. As of this morning, the encounter system has a dynamic life meter that will automatically add the correct number of life gems (purple for encounters instead of red) to the top center of the encounter scene.
Spoiler: Encounter screen with life meter
1763650755585.png
So unlike the original Dragon Warrior which inspired my encounter system, the player will be able to know how much damage they have done to the enemy. The system is designed with no hard limit on the number of life gems an enemy can have. They will fill an entire row of the combat scene and then wrap to the next row down. If I wanted, I could do something ridiculous and set the encounter's life so high that the entire combat scene is filled with them. The system won't care. Of course, I won't be doing that.

I haven't even started thinking about story or world building yet. The backend mechanics need to be in place, and be open-ended enough that when I I start crafting the actual experience, they will work as they need to.



11/21/2025:
Spent yesterday trying to fix an issue that was causing the encounter life meter from displaying full life gems at combat start, if the encounter's total life was not a multiple of 100. If I gave it something like 369 total life, its life meter would start with 3 fully purple life gems, and a 4th gem at 69% purple (they fade smoothly from purple to gray). This makes it look like the encounter starts with pre-existing "injuries". Player life gems are each worth 100 points of total life. I wanted a correlation between how player life and encounter life are presented, but it turned out that it cannot be a DIRECT correlation. So I landed on this solution:

Encounter's total life / 100
Base life gems = the whole number part of the result
add an extra life gem if there is a fractional amount as well
Base Life Gems + Extra gem (if necessary) = total life gems to display
Value of each gem = total health / total gems.
​
The logic was sound, but when I added the solution to the code, the life meter wasn't dislaying at all. I was beating my head against my desk after trying a variety of different things and ended up breaking the whole encounter overlay. I had no choice but to revert to the last working version and go through the process again.

It turned out that I had misnamed something in the code that was causing it to error out inside of the overlay process without causing MZ to hard-crash with an error. I'm not going to lie. While working directly with JavaScript allows for way more freedom in what can be achieved, it does lack the internal protections that the editor's event command process provides. Even seasoned coders can experience the frustration involved in debugging. Sometimes the problem has a simple solution, but finding the problem can be like looking for a specific needle out of a thousand needles in a haystack. One single character transposition might not stand out on a screen filled with code, even if you narrow down where in the code the process is breaking.

So yeah... that was yesterday's headache. As of this morning, it looks like it's working as intended. Not going to show a screenshot, as the only difference you would see is that the Black Knight has 4 purple life gems instead of 3, and those gems are a brighter shade of purple, because I felt they were too dark, originally. My day's going to be pretty full today, so I probably won't work on it again until tomorrow. Maybe tonight some.

Next step will be to start actually tackling the combat mechanics.



This is shaping up quite nicely I really like it! The HUD reminds me a lot of the NES LOZ.
That's the general idea, though I will be changing the layout of the status bar at some point. I don't want a direct 1:1 copy of LoZ's version. Right now, all the widgets that make it up are individual elements that must be manually placed on every map (screen) the status bar needs to exist on. This was necessary to make sure that they each work right. But once I'm done with everything that needs to be on the status bar, I'll be merging them all into a single parallel event that does everything with a finalized layout.

Thanks for the feedback. I'm glad you like how it's turning out.
11/23/2025:
Support for condition-specific rules exists in the player attack script, as well as the default rules that apply if none of those conditions are met.

In this case, if the encounter is the black knight, and if the player doesn't have at least the Swordy Rust (it is more rust than sword). the attack is treated as a bare-knuckle punch against plate armor, resulting in self injury:
Spoiler: bare-knuckle vs plate armor
1763933275639.png

The default rule assumes that the player has a weapon, and just deals an arbitrary 120 points of damage to the encounter:
Spoiler: Default attack
1763933502107.png

If I want to, I can define conditional rules for every enemy, governing special case handling of the player attack, but it won't be necessary. But having the hook in place for handling conditional rules grants an enormous amount of freedom for both narrative and mechanical elements in encounters.

Control of when the encounter's life meter shows up comes in the form of a switch. I could make it so that in the middle of a battle, the villain decides to stop fighting and do some monologuing, the life meter hides, and he starts talking. Then when the fight resumes, the meter comes back, still correctly reflecting the enemy's current life.

So that's where I'm at today. Next step is to start coding the encounter's action choice, which will be an attack of their own.



11/25/2025:
Work on the encounter system continues. As things continue to evolve, I have determined that the methodology behind the encounter overlay can be more or less repurposed into a total replacement to the way that MZ's dialogue system works. Imagine seeing a close up of the character you're conversing with, with a dynamic background tied to the environment the conversation is taking place in. That would exist where the encounter shows the battlefield and enemy sprite. To the right, a wider menu window would exist, and at the bottom a taller feedback window.

In the menu, there could be a few action icons at the top that let you do things like attack, steal from, buy/sell from (if the NPC is a shop keeper), etc. Below that would be a scrollable list of conversation topics that the player knows about. What gets said about these topics will depend entirely on whom the NPC is. I am fairly confident that such a system is possible, and is ultimately the direction I want to take the dialogue system.

Aside from world movement, this game is going to handle pretty much everything differently than a lot of RPG Maker projects.
11/26/2025:
Caught a disaster waiting to happen if left unfixed requiring me to go backwards so I'll be able to go forwards.

Also am dealing with issues concerning encounter step progression logic that have been causing some elements to process at the wrong time, in an endless loop, or not at all. Managed to get basic back-and-forth combat behavior working, only to break it while dealing with that disaster waiting to happen.

I'm glad these setbacks are happening now, because I'm learning how to catch things that contribute to them, so they hopefully will not creep up on me later.

Hoping to get the basic combat loop working normally again by tonight. I am so ready to be done with player end encounter attack scripts using arbitrary values and finally start hooking up actual gear-driven stats.
11/29/2025:
It turns out that the disaster I caught required a complete redesign of the encounter flow process, which I finally finished doing this morning. A complete combat loop of the black knight and player trading attacks until one is defeated is now working.

I made a few adjustments, giving the black knight 400 life (4 gems) and increast its attack from 80 to 100. I decreased player attack from 120 to 100.

As it stands now, if the player doesn't have a sword, punching the knight still inflicts 100 self damage, followed by the knights regular 100 damage attack, taking the player down to just 1 gem after a single round, and dead in the second. With the sword, though both are evenly matched in terms of damage, that 4th life gem the knight has allows it to outlast the player who dies in the 3rd round.

I never took out the chest containing a life gem from back when I was testing the life meter's ability to correctly and dynamically handle increased life capacity, so if the player grabs the gem and the sword before fighting the black knight, he will win, because he can survive to round 4 now and his attack lands first

This makes Black Knights an enemy that a new player cannot defeat without both the sword and their first additional life gem. so right out of the gate we've got enemy difficulty scaling without having to code any special case handling. pre-existing mechanics lend themselves to it organically.

To this point, both player and enemy damage have just been arbitrary values. my next step is to have both pull from stat-based variables, which on the player side will pull from which sword they are using. Now that the attack aspect of encounter behavior is working for both the player and the encounter, I can start tying other elements together.

right now, I'm going to go for bare-hand = 50 (unless overridden by special attack vs specific enemy rules), first sword = 100, seconds sword = 200 and 3rd sword = 300. player damage variable will be sword level x 100 if sword level > 0, 50 if sword level = 0.

Defense will be calculated as enemy dmage x 0.75 for Armor level 1, x 0.50 for Armor level 2, and 0.25 for armor level 3.

shields do not act like armor, but rather a damage avoidance element. for every shield level, if the enemy would otherwise land a hit, there's a 1 in 3 chance that the damage is blocked. Think of rolling a a 6-sided die with 2 sides marked with a shield and the rest blank. so shield level 1 will be like rolling 1 die. shield level 2 like rolling 2. It only takes one die showing a shield to constitute a block.

That's my thinking about these systems now, subject to change after testing.



11/30/2025:
Battle loop logic finalized with game variable tie-ins instead of arbitrary values plugged in for testing purposes.

Block and Dodge action integration process has now started. Block and Dodge are now clickable icons when it's the player's turn, though no actual functionality is hooked up yet. Clicking them now causes errors because the scripts they are to call do not exist yet. One step at a time. Finally I have a new screen shot to show you, also showing off the flower field encounter environment:

Spoiler: Block and Dodge Action Icons
1764488589079.png
12/2/2025:
Work continues on extending the action/response framework for Block and Dodge. I've had a bit of a real-life distraction that has slowed me down since my last update, but Tomorrow I should be able to focus again. I'm hoping to have Block and Dodge fully added before my next update.

All of this work going into the black knight encounter is not actually going to be THE Black Knight encounter. It's all for the purpose of establishing a template from which all future encounters can be produced. The approach I am taking, while seemingly complicated, actually ensures that the process is actually less complicated. An encounter operates on a dependency hierarchy, as follows:

The Encounter Overlay - This is the visual element that covers the world space area of the game screen, consisting of the encounter environment, which shows the character or object being encountered. Next, it covers the action selection window, and finally it covers the feedback message window. It makes up the GUI for combat.

Next comes the Encounter Script. This will be unique for every encounter that I'll be putting into the game. It sets up the encounter's stats, establishes its name and which image is used to represent it. after that, all of the logic for running the encounter is coded in. and the last part of it is the encounter's step flow, which is a bunch of single-line function calls that are easily modifiable or replaceable, for whatever purpose I see fit. None of the functions themselves need to be recoded.

After that come the action scripts. Actions are more or less generic processes that behave a certain way by default, but may have special case conditional rules added. That's how the punching the black knight with bare knuckles hurts the player and does nothing to the knight effect comes into play. Action scripts read stat information from the encounter script and the player's stats and has the hard coded logic for processing that information according to what the action is supposed to do. It outputs the result back to the encounter script to be applied in a subsequent encounter step.

Since my intention is to make my game open to the community to use as a framework for their own quests, (provided that it's only used that way for MZ projects), I want to make sure that while there is a lot of complexity involved in the code that controls system behavior, what the user needs to work with doesn't require that the actually know how to code. Everything will be fully documented that will tell users where to find the parts of the scripts and how to use them. And because they may examine everything I'm putting into my game, they will have examples to refer to.

So the overlay is the platform upon which all encounters run. the encounter scripts controls what appears in the overlay, sets stats and controls when the player can input actions. The action scripts are then called to do what they are supposed to do. This modular design ensures that each dependency layer is free of clutter, and that they play cooperative but independent roles in the entire process. This makes for a very powerful encounter system that is designed to be easily adapted for whatever I or anyone may need.

If someone wishes to use all the base elements my game will provide to simply create new quests, like how the original Legend of Zelda used essentially the same map in its first quest, but dungeon layouts and their locations in the overworld, as well as some new enemy variants and transition elements like walls you could walk through, then it will be possible. All of the trigger events will be coded in JavaScript, and right out of the proverbial box, they will work I'll have instances of them placed in a map the player will not have access to called "Events". They can be copied and pasted into whatever maps a user wishes them to exist on.

Hopefully this gives you a little insight on where I am hoping this project will lead. Not only a fully playable game, but something that can also serve as a creative outlet for others. And because I am in the mechanics building phase now, I am open to suggestions and ideas, as long as they fit within the context of a zelda-style adventure with turn-based combat and dragon warrior style storytelling. If you are following this project, odds are you'll play around with it, so if I can work community ideas into it before I get into world and story building, it may launch with support for those ideas.

Also, I welcome your questions and comments. I want to know what you're curious about, and what you think of what I'm working on. I won't bite.
12/5/2025:
A Brief Update and My Pledge of Transparency
​
Things were still broken in my process as of last night. I'm sure that when I find the cause, I'm going to want to kick myself for not realizing it sooner. The F8 console logs are not throwing up errors, so the code works, but something isn't working the way it's supposed to. To help me track it, I'm putting debug messages into the code at each critical step that will send data-driven messages to the console log. That should lead me exactly to where the problem is, and what I need to do to fix it.

Most people start their coding journey with a "hello world" message. I'm starting mine building a full game based on complex back-end processes that must be geared for total modular design so that when everything IS in place and fully functional, it really WILL just work

This thread is my way of being totally transparent with what I am doing and why I am doing it.

Regarding my approach to art elements in this project:
It's just me working on this. So, I will be leveraging RTP elements wherever possible and using creative commons elements where the RTP doesn't offer a solution, and generative AI only where creative commons elements do not offer what I am looking for, or to serve as placeholder elements just to have something practical in place while developing. My goal is to have a minimal amount of AI art in the release version. But the reality is, I am just one person. I am not an artist. I cannot afford to hire an artist, so given the choice between shelving my project and using AI if it means actually finishing it, then I will choose the latter. I am sick of being held back by my circumstances. I must transcend them if I am going to make real progress, and money isn't just going to fall in my lap. So I will be using whatever tools are at hand to achieve my goals.

I had thought about including a ko-fi link in this thread, but at this stage, I do not feel like I have enough to actually show of my progress to justify putting out the basket and hoping someone tosses a few bucks in. I have never been a beggar, and I certainly don't want to come off as one here. But the reality of my circumstance, made even more clear to me in light of that issue I mentioned that pulled me off task a few days ago. Were it not for some financial reinforcement I had established several years ago, I would have been stripped of my current means of income. If something like that happens again, then I am well and truly screwed. It won't matter how determined I am to see this project through, if the power gets cut off. For a moment, I reached a state of desperation that prompted me to create my Ko-fi "donation box." but that emergency financial solution stopped me from using it.

Nevertheless, I must be mindful of the precarious situation I am in. Any unexpected large expense will ruin me. So I must consider all of my options. Even tip jars/donation boxes. So I cannot promise that one will not show up here, and anywhere else that my efforts are made public. What I can promise is that I will never make donations a determining factor as to whether or not I will continue my project. They will simply make it a little easier to keep the lights on while I alternate between my job and my project.

If I am going to expect anyone to pay anything for this project when it hits itch . io, I intend to be open and honest about everything involved in its development. So let this post be my pledge of full transparency to all of you.



12/7/2025:
Block and Dodge behavior integrated as described earlier in this thread. Thorough testing confirms no observable errors.

The next step will be integration ofthe final primary combat action: Run. followed by the encounter's dodge, block and run actions. those four elements are incorporated, we move on to what tilllikely be the most complicated part of the encounter system: Item use, Skill use, and Spell use. This will require expansion of the overlay's behavior to bring up action icon subcategories. The way my action choice mechanics work, up to 999 unique actions can exist. Not that I expect to have anywhere near that many. But I wanted to make sure that end-users who wish to use the project as a framework have plenty of freedom to add to the action set without having to change what's already there.

Regarding the Block and Dodge actions:

Since I am keeping to the turn-based combat system and random encounters on screen maps, some of the LoZ-style elements like traps, fireballs, falling boulders won't work the same way. They will be handled as single-round hazard encounters. The way that the encounter system loads, there's no fancy transition to the enounter screen. The overlay simply pops up instantly. so hitting a hazard like a fireball will pop it up with the player immediately being to take action. The fireball can be blocked if the player has at least shield level 2 or it can be dodged. Boulders and traps will never be blockable, so a dodge attempt will be necessary. Trying to block a boulder will result in taking full damage from it, with a message "You foolishly attempted to block a boulder and got what you deserved...

Hazard Encounters may have several rounds to them, depending on how many there are for that screen map. If I put 5 of them on the screen, a single hazard encounter of that type will range from 1 to 5 rounds.

While I am not making a LoZ fan game, I plan to adapt as many of its tropes into something that works with the turn-based systems.

Well, that's where it stands now. I shall update again soon.
12/9/2025:
Run, referred to as "withdraw" in my system is now integrated., so all four of the primary combat commands are working. for a complete melee-only battle system. I will now round it out by developing the victory branch, for rewarding loot.

This is not going to be an experience point based game in the traditional sense, so that won't be a factor in the victory reward step.

I'm also going to take a little time to smooth out the rough edges in the encounter system, moving certain functions and function calls into different scripts to make things far more efficient. I can say "It works!" all I want, but I'm seeing things that didn't originally occur to me that need to be changed a bit to get the best results. I could wait and save these modifications for the polishing stage of development, but there will be so many more encounter-based actions such as spells, items that can be used, each needing their own scripts. so technically, the encounter system will not be "done" until the game is "done." That being the case, I'd rather go ahead and make the modifications now while there are only a few action scripts that need adjusting to conform. What's the old saying? "An ounce of prevention is worth a pound of cure."

The player will be getting many items as loot drops, just like in LoZ. But what that item will be will need to be set in the victory step, and then passed to the trigger event so that when the encounter ends, an actual item can be picked up, or left behind as the player sees fit. This keeps the world engagement aspect close to the LoZ architype, even though the combat is DW-style. So after I get done with cleaning up the encounter system, that will be the next step.

Now I could have just simulated a victory condition and done the item pickup mechanic. But I see the loot reward as part of the encounter system, and since the encounter system is the most complex part, and will be a very common occurrence, it made sense to go ahead and tackle it

So how will items, spells and skills be used in an encounter?

Very much the way they are in DW. There will be an Item, Spell and Skill icon, which will switch action menu pages. You've seen the up and down arrow buttons in the menu window. these will control page scrolling. As they are, they are a bit off-center, but it's okay as they are just placeholders.

There will actually be 3 buttons at the top and 2 at thebottom.

[ /\ ] [<<] [ < ]

Icons

[ > ] [>>]​

[ /\ ] - Home - Goes to the main action icon page. Grayed out if this page is already being viewed.
[<<] - Previous section - Goes to the first page of the previous section in the overall action hierarchy. If on the main action page, this button will jump to the first page of the last section in the overall hierarchy.
[ < ] - Previous page - Goes to the previous page in the current section, or the last page in the previous section in the overall hierarchy.
[ > ] - Next Page - Goes to the next page in the current section, or to the first page in the next section in the overall hierarchy, or to the main page if in the last page of the last section in the hierarchy
[>>] - Next section - Hoes to the first page in the next section in the overall hierarchy, or to the main page if in the last section of the hierarchy.

This will maximize ease of access to all pages and sections whether through page/section navigation or via the Spell, Item or Skill icons.

Getting it to work will likely be challenging, but I want something more intuitive than just backing up through menu layers, and this seems to be the best way to go about it. I haven't written the first line of code to control page navigation behavior, so if any of you have any thoughts on how it might be made better than what I'm thinking, please let me know. These early days of development are the right time to post suggestions on things that are not written in stone. While a game cannot be developed by committee, I am not closed-minded to ideas and suggestions for elements that have yet to be started.

I meant what I said in the first post. This is a journey we can take together, both during development and after launch.
12/11/2025:
Because I know y'all need your eye candy fix (I would too), I thought I would show off the new training yard background and one trainer character. This will serve as a visual reference for how the conversation system will look. This image uses the encounter system because appearance-wise it will look the same, but its menu options will work different. I'm not working on that system, yet, but I'm confident enough based on my success with the encounter system that I can show a mock-up.

I want to use more or less the same interface setup because if a conversation leads to combat, I'll have the system load the combat overlay on top of the conversation overlay, and then kill the conversation overlay behind the scenes. That will remove any visual jankiness that swapping systems might cause. Either that or I will try to add conversation mode to the encounter system, so only the menu behavior changes, and one system handles everything. However, I want to try to keep things as simple as possible, and avoid making systems too convoluted.

I'll burn that bridge when I come to it.
Spoiler: Trainer - world view
1765476220460.png

Spoiler: Trainer - Encounter Overlay view
1765478843851.png
12/14/2025
Okay... those modifications I said I was going to make to streamline functionality are done. However, testing the system still didn't feel right, so I overhauled the way actions are processed, and the result feels in line with my vision. The way I was doing it before looks good on paper, but in practice just wasn't working right.

The result is an entirely different animal. The player actions are governed by individual skills and are countered by skills or attributes assigned to the encounter. These skills can all be individually leveled up with 1 skill specific XP point awarded when attempting the skill FAILS. As the skill increases, failure becomes less likely against the encounter, resulting in a skill cap that is simply based on inability to fail (takes a long time to hit that) rather than an arbitrary hard cap. Technically, a skill can be leveled infinitely, as long as there's always something that has a high enough counter-skill or attribute to make failure a possibility. There is no visual cue to leveling up a skill. No messages or flashy effects. Players will notice increased success rates over time. There is also an ever increasing number of skill-specific XP needed to level up a skill, which causes advancement to slow down more and more the higher the skill gets.

The skills that the player can currently level are as follows:
Attack (rolled against enemy's Defense) Deals weapon damage if successful. must have weapon
Defense (rolled against enemy's attack) parries enemy's attack if successful. must have weapon
Block (rolled against enemy's attack) adds additional damage mitigation if successful. must have shield
Dodge (Rolled against Enemy's attack) avoids damage if successful. Always available
Withdraw (rolled against enemy's pursuit) - Player withdraws from battle if successful
Pursuit (Rolled against enemy's Withdraw) - Player prevents enemy from withdrawing if successful

There is a potential penalty for dodging in consecutive rounds, put in place to discourage dodge spamming. It's not an overly harsh penalty. Just a 50% chance that a successful dodge avoids all but 10 points of damage (simulates receiving a glancing blow), rather than full damage avoidance.

Also, enemies can level up their skills while in combat. This pertains to the current encounter only, ensuring that the challenge for that battle remains more or less consistent, but due to player skills leveling up, when facing the same enemy type in a future encounter, it may be significantly easier.

an enemy's ability to level is also based on failure, so a tough enemy will likely not improve much in an encounter, so how skilled the player already is will organically impact this.

I tested straight up attack vs defend using this system with the skill levels set evenly and bot the player and enemy with equal life. The results were very close fights with the player winning some and the enemy winning some, mor or less proportionately. Adjusting skill levels up or down for one or the other had an expected result with the one having higher skills winning most of the time.

When I get into world and lore building, I'll be able to balance the skill levels for enemies so that they provide essentially the right amount of challenge for the player as they first encounter them. Spells, gear and items will also augment skill rolls, so decisive stat-driven advantages enemies might have may be mitigated or eliminated.

So this looks like the final systemic approach to basic combat actions.

I've also gotten the enemy's AI driven action choices finalized with something that feels natural rather than forced. It's a simple random number vs weighted choice model, tied to conditions I set for the encounter. This makes it so depending on a given circumstance, an enemy might favor attack over defense, but if another circumstance, such as the enemy running low on life, withdrawing might be a possibility. This makes an enemy's action choices rules-driven rather than hard-scripted. This is another way that an enemy with high skill levels can be balance-tweaked for theb player experience. I can even make it so that weak enemies will heavily lean towards withdrawing if the player has full armor, weapon and shield. Or I can make it where an enemy that is very easy to defeat is given rare loot , but a very high probability of witdrawing, making actually defeting them before they run very difficult. Like fighting a metal slime in original Dragon Warrior. They had very few HP, but significant defense, and would run away 90% of the time. Worth hunting, but hard to stay engaged with to defeat.

So mechanics wise, this project is becoming quite interesting.
12/15/2025:
One last major code migration needs to be done. All functions currently being handled by an encounter script are being moved into a new manager script. All encounter behaviors and action resolutions will be handled by that script. It has become necessary to do this because every new action that gets added needs functions to handle them, both for the player and for the encounter. It's not so bad now, but as more and more actions get added, the more and more raw JavaScript code would be added. As I have stated, it is my intent for the community to use my game as a foundation for building their own quests/adventure/stories using the same framework as I am building. Therefore, I want encounter scripts to be clen and human-readable with only the bare minimum of raw code, likely a single function at the very beginning that launches the manager script. Everything after that will be single line function calls that will be easily understandable even for those with little or no knowledge of JavaScript. And I will be releasing full documentation on how they work. An an encounter script will have 3 sections:

  1. Encounter Definition - This is where the encounter's sprite will be defined, followed by the name that will be used by the action scripts for feedback messages. After that the encounter's max life and current life values. and then the skill level values needed to drive the encounter's combat action success/failure results.
  2. Encounter AI - This will be a relatively simple looking section with one line essentially calling for a random number, and a few lines controlling the outcome. It will be easy for me or anyone working with my framework to set up multiple weighted choice groups that can make encounters behave in a wide variety of ways based on certain conditions.
  3. Encounter Step Flow - This section will control the flow of an encounter. When narrative text is displayed in the feedback window, when the player can select actions, when the encounter makes its move, what happens when the player or encounter die, and what happens when the player or encounter withdraw from combat, as well as any number of other things that might be added for branching events within that encounter, such as the enemy changing form, or some special case interruption
With all the functions living in the encounter script, one must scroll through lines and lines of of raw code to get to these sections. If something in that code is accidentally altered, then the encounter will either break or become highly unstable. By moving all that code into a single manager script, we're left with a file that is intended to be edited, and easily corrected if something is entered wrong.

The manager script will ultimately be massive. but it will not be something that a creator will need to touch unless they want to get their hands dirty and add functionality beyond the scope of the core framework. The Action Scripts will be the same way. New actions beyond the scope of my core framework will need to be coded. However, post launch I will be open to suggestions for these and may add them into subsequent adventures.

I'm not only approaching my design with my game in mind. I am also approaching it with what the community will be able to do with it in mind.
12/18/2025:
How combat AI works
​
Combat AI is relatively simple in what it does, but what it does can allow emergently complex results. At its heart, it is just a method for the encounter to randomly select which action it will take on its current turn. And if only a single weighted AI model were to be used in an encounter, that's all that would happen. But each encounter can be given multiple models, each governed by a specific condition, with some actions not even being possible under that condition, then you get an encounter that starts off behaving one way, and can potentially change that behavior as the encounter progresses, and some conditions no longer get met but others do.

Let me share the Black Knight (Test) encounter script's AI section:


JavaScript:
ai: {models: [{                             // Must be at start of AI section

when: (ctx) => ctx.encLife > 100,           // Condition for this AI model
actions: {attack: 7, dodge: 3}              // List actions available under this condition and their weight values (higher numbers more likely than lower numbers

},{                                         // Must be between AI models

when: (ctx) => ctx.encLife <= 100,          // Condition for this AI model
actions: {attack: 7, dodge: 3, withdraw: 1} // List actions available under this condition and their weight values (higher numbers more likely than lower numbers

}]},                                        // Must be at the end of AI section

There are two models at play here. One for when the encounter is above 100 life, and one when it is at or below 100 (one life gem)

In the latter case, this aggressive and otherwise brave enemy has a slim chance of making a strategic withdrawal from the battle rather than fighting to the death. But there's a difference between what you in the user-facing scripting see and what system sees.

The system first adds the weight values assigned to the actions. 7 + 3 + 1 =11
It multiplies the result by 2. 11 x 2 = 22.
A random number from 1 to 22 is rolled and checked against the following:

1 = withdraw
2-4 = Dodge
5-18 = Attack
19-21 = Dodge
22 = Withdraw.

In a random number generation every possible result has the same probability from roll to roll. However it is more likely that the result will occur somewhere between the minimum and maximum range. So the above result table is what I choose to call a symmetrical likelihood model, with the more heavily weighted action choice in the middle, and the lesser weighted before and after it, and the least weighted at either extreme.

But I, or anyone using my framework to create their own adventure, only need to be concerned with setting the condition and action weight values, as the script excerpt demonstrates. The back-end functions do the work to generate the result.

So again, it is a case of complexity from simplicity. It has been tested, and it works.
1/14/2026 - DELAYS
I don't have much to report. Since my last update, I've been having to deal with other things that have gotten in the way of me being able to focus on the project. I told you all that i would be completely transparent and I define that to mean not only sharing what I've done, but also, what I haven't done. I prefer to own both sides of the equation, rather than making excuses.

I'll be honest. Even after ironing out the kinks I was having with the encounter system, and even though everything works as it should, I am not happy with the results. Things can look good on paper, but prove to be boring as hell in practice. I could stick a proverbial fork in the encounter system and call it done, because it technically is. But if I were to play a game with it as it is, I'd likely uninstall it and never look twice. I will not be foisting that on those who might be mu customers. So I'm shelving the encounter system for now. I'll revisit it later when more of games mechanics are in place. It'll still look the way I've shown in the images I've posted. But the way it works will be better than the steaming pile of meh that it is now.

So what happens next?

My time is still limited at the moment, but Thare are still some status bar widgets that need to be added, then I need to get started on world mechanics. My next update will cover the specifics. I just wanted to touch base on where things stand at the moment.
I'm not dead. Neither is the project. I'm about to start diving back in. Will update Soon(TM).

Original thread: https://forums.rpgmakerweb.com/threads/wip-reids-journey-foundation-of-destiny.181038/