New User Q's - Timed Battles, Map States?

Hello, totally new user both to the forums and RPGM. I recently had an idea for a game that felt "like an RPG Maker game" in that it would entail walking around maps, interacting with characters, and having turn-based battles, so I took the plunge and bought RPG Maker MV as soon as it was on sale and now here I am.

I've taken a couple days to watch and read through my share of beginner tutorials to learn the basics and workflow of the engine, and it's given me confidence that most of my ideas will work well in RPGM relatively unchanged. I only have two very broad questions I was hoping to get some veteran feedback on before I commit fully to anything that may be outside of my capabilities or the possibilities of the system itself. I'm not necessarily asking people to do anything for me, just get a general idea if experienced users believe what I would like to achieve sounds possible.

First, and probably where most people run into issues, but the battle system - thankfully, I want to keep most of the core mechanics pretty basic. Learning and using techniques of different types to deal and heal damage is all totally fine by me, especially with the level of control over damage formulas and such I've already learned about. The two main ways I wanted to customize battles would be limiting every battle to a fixed number of turns, and altering how HP works.
1) Is it possible to make negative HP values below 0 function in any way? I already found you can remove the action restrictions from the Knockout state, which I assume allows a character to continue fighting even if their HP is 0. If HP is hardcoded into the engine, would it be possible to create some other statistic to use in its place, and represent it on screen during battles with a similar meter?
2) Would there be any universal way to make battles end after a fixed number of turns? I imagine it can be done using a Common Event triggered by the battle beginning and checking an incrementing variable every turn, but the only option I see that sounds applicable is Abort Battle, and I was curious to know if Abort Battle bypasses any end of battle effects like experience or item drops. Either way, I feel like this will require I get into making my own plugin, because I would probably have to make my own battle results screen.
Essentially, rather than a battle ending when players or enemies are reduced to 0 HP, I want every battle to last until a turn count has been reached, and the result of the battle to then be determined 1 of 4 outcomes (Player/Opponent positive HP, P/O negative HP, P positive O negative, P negative O positive). Again, if the actual HP system in the engine can't be used to do this, would it be possible to implement some other statistic, which techniques in battle could then influence instead?


Second, and this one I feel is much simpler in concept, but the tutorials I watched didn't cover this, so I was curious if anyone's invented a solution - are there toggleable states of any kind for maps similar to the pages for individual events? To clarify, I'm planning for my game to take place in the same set of locations for the entire game (a school), just over the course of multiple in-game "days" where characters may be in different places or not be found at all, the player may have access to new or different sub-areas, etc. Can I have one map for any given location and simply assign different configurations of events to it, or will each planned location need to have a completely new map for each day, multiplying the needed number of maps several times?

I was planning for each day to have different time periods as well (morning, afternoon, for example). If I had to have something like 20+ copies of each map to account for these changes in time over multiple days, would that have a negative impact on my game's file sizes or load times? Would there be anything else I could do about that when exporting the game, or would I have to drop the idea? How many maps is usually fine for a game before performance issues can be expected, if it happens at all?

This probably reads like an essay, so I apologize if this is overly complicated, especially for a first post. Thanks so much in advance to anyone reading or able to help.
Can I have one map for any given location and simply assign different configurations of events to it, or will each planned location need to have a completely new map for each day, multiplying the needed number of maps several times?
Not exactly.
The only dynamic part of the maps are the events.
But you can use many pages on the event and therefore have the events configured differently for different days on the same map.

But for some cases it's easier to copy the map and make changes to it.

Is it possible to make negative HP values below 0 function in any way?
not without plugins.
But depending on what you want the battlesystem can be configured very finely as most parameter values are not hardcoded but their use depends on the mathematical damage formulae that you can set for each skill.

Would there be any universal way to make battles end after a fixed number of turns?
troop events, they can give a game over or a battle abort after a number of turns
Thanks for the prompt reply. I've been doing a lot more poking around in the time since posting this, and it's been very encouraging to have so few investigations turn up a "no" or "impossible." This engine seems so interesting!

However, it did occur to me I'd been thinking far too literally (proof I'm a total beginner) when it came to things like negative HP. Battles would only need to set HP to the middle value of a range with an odd number of values (0 to 10, for example), then check at the end of battle whether the HP ended up higher or lower than the start (maybe an exception for returning to the middle as well). These values could also be interpreted and visually represented as positive and negative (-5 to +5) if necessary for player comprehension or whatever. Healing and damage already do the right things, just move the number up and down...

It's possible this kind of solution is many more steps to implement, but I haven't found any plugins so far that enable configuring minimum stats or ranges extending below 0. Seems to be a bit of an uncommon demand, or maybe I just can't identify when they do allow that yet, lol.

I'm gonna have a lot of fun figuring out when I'm overthinking things in RPGMV, I have a feeling!
as I wrote above, anything can be done by plugins.

but plugins only exist for the more common ideas of what is needed, for more strange ideas (like negative HP) they would have to be programmed, which means either requested with a better concept or (if the concept is too strange) commissioned for payment.
You only get custom pluins for free if the idea is either really easy to implement or if one of the programmer considers the new idea interesting or a challenge...

That said, I can think of several ways to implement the HP idea that are much easier that. But they are dependent on other parts of your concept that you didn't detail on, so no one can even guess.
For example if your game does not need MP, then you can use one of the mana shield plugins that redirects all damage to MP until MP=0 and pretend that the MP is your regular HP and the HP are your negative counter after that is depleted.
or you can have a plugin add a third value np for negative points
or or or
Oh yeah, sorry - I didn't mean to imply I was asking for pointers on the plugins or anything like that. As I said in my OP, I'm not asking for people to do work for me, just (like in your replies) some basic feedback from those with more experience on how much is possible, so I know how to manage my expectations and ideas. The thought that plugins can do anything is impressive, and I'll certainly have to take your word for it.

As for my bump, I just saw in the rules that we're supposed to wait at least 72 hours before posting again (I think), and I didn't want to seem rude by leaving your response without a thank-you.
I didn't mean to imply I was asking for pointers on the plugins or anything like that.
But you should.
No need to reinvent the wheel even if you want to program your own plugins.
The true strenght of this community is working together, and we only ask for civility and for everyone to repect that all help given is for free (unless specifically commissioned, and you can't even see the forums for paid support until you have become veteran)

As for my bump, I just saw in the rules that we're supposed to wait at least 72 hours before posting again (I think),
you misread the rules here.
That "bumping" (or double posting as well) applies only if your own post is the last active one, and is made to allow people to read your post at their own time.
if someone else posted after you, those rules no longer apply.

Again, that is to enforce curtesy - you can't demand the time of people who help for free, and that includes waiting until they have time to react no matter how urgent it is for yourself.
Okay, thank you again for explaining! I don't have a lot of experience with forums, and I didn't want to do anything wrong or annoying to other users.

I'll do my best to explain as simply as possible the concept outline for the battles I want to have in my game. The core idea is for them to be mechanically simple because it's my first game, but still have a little stategy and planning:

The player has one character, and battles will be held against one character (single enemy) at a time as well. There will be different NPCs the player can battle in the game, but always one at a time.
There is no winning or losing the battles or game over in the traditional sense by losing all your HP or depleting the enemy's.
Every battle lasts for the same number of turns (example: 8).
Every character (Player or Opponent) has the same amount of possible HP, beginning every battle at the middle value and able to move "above" or "below" that middle value out to a fixed amount (this is where the Positive/Negative system I'd mentioned was meant to come in). Example: the HP might go from -10 to +10 and begins at 0.
The player will learn a variety of simple Moves during the game that each have a positive number, a negative number, and a Type like found in the default database (example: Fire +2/-1).
The opponent character will have one of four "Moods" made known to the player before battle begins, and which can change from one battle to the next (there will be a simple progression of time). Battles also have four Results, based on the configuration of HPs when the turn count reaches the end:
  1. Player and Opponent have positive HPs (P+O+)
  2. Player and Opponent have negative HPs (P-O-)
  3. Player has positive, Opponent has negative HPs (P+O-)
  4. Player has negative, Opponent has positive HPs (P-O+)
(I know 0 is neither positive or negative and in theory the HP can end the battle at 0. I've thought about ways to handle it, but no matter what I decide in the end I didn't overlook it).
Each Mood will correspond to a specific "Best" result, so the player will try to use their limited turns to make the correct outcome. The opponents will also know their own moves that can throw off the strategy.
The basic attack will be to Pass turn. There are four categories of skill the player can choose, and each Move (Fire +2/-1) can be selected under any of the action types to do something different on that turn:
  1. Deal damage to both the player and opponent equal to the chosen move's negative number
  2. Heal HP to both the player and opponent equal to the chosen move's positive number
  3. Deal (negative number) damage to the player while healing (positive number) to the opponent
  4. Heal (positive number) to the player while dealing (negative number) to the opponent
Every move's Type is also factored in so that numbers applied to each character in battle are multiplied (I already learned how to do this using Traits) based on each unique character's Strengths and Weaknesses.

I have no plans currently to make use of equipment, experience, level ups, or other mechanics included in the core database. I've considered including Items as possible single-use predefined attacks outside of the ones known by the player, but I'm not committed to the idea. Almost everything I have planned so far could be handled with Skills alone, if I'm understanding correctly (I also found a plugin that adds customizable Skill Cooldowns, which is pretty cool and could add more strategy to the game given there won't be any resource system like MP).

So to return to what I was trying to say in my more recent posts, there are no planned mechanics that require checking whether HP is negative or positive during battle, only at the very end, which is why I think it could be handled as a fairly simple comparison, regardless of the actual values.

But yeah, to summarize, the key points I need to figure out for my battle system are the universal Battle Turn Limit, how to perform the check that outputs the Battle's result (I think I could figure that one out if I had the rest of the mechanics set up, but it may not be an elegant solution), how to make Skills that can apply to everyone on the battlefield, and how to make Skills capable of performing a separate damage and healing action at the same time.
In that case it is just a simple display problem.
The following mechanic would be possible completely without any plugin, so you can use that as a basis:

1) give all actors and enemies an added 1000 HP or so, then let them fight as normal.
2) make a troop event that is to be run at the end of turn 8 (or whenever you want the battle to end.
3) in that troop event, check for both if their HP is above or below the 1000 added point treshold and react accordingly.

after that you only have to change the HUD of the battle. That ould require a plugin, but no change to any game mechanic - just on the HP display.
So, I got the basic concepts of the Turn Limit and the Battle Results working!

I'm not confident how well my current implementation will scale once I start adding more content like different enemies later, but for right now in its testing state it does what I want! The battles always end after the selected actions resolve on Turn 8 (I was surprised how simple this one was), it stores the participants' final HP into variables, then runs some comparisons on those to determine the pos/neg for each and assign a Result value to a variable, which I've then confirmed with an NPC who reports based on the outcome. Each of the four Results works! Exciting.

With that taken care of for now, I really have to get the different Skill categories working.
The basic attack will be to Pass turn. There are four categories of skill the player can choose, and each Move (Fire +2/-1) can be selected under any of the action types to do something different on that turn:

  1. Deal damage to both the player and opponent equal to the chosen move's negative number
  2. Heal HP to both the player and opponent equal to the chosen move's positive number
  3. Deal (negative number) damage to the player while healing (positive number) to the opponent
  4. Heal (positive number) to the player while dealing (negative number) to the opponent
All my testing so far has used placeholders that fully damage or heal one character so I could check the positive/negative results. I haven't had any luck making Skills that even just damage every actor and enemy in a given battle at the same time (#1), let alone ones with mixed effects like planned (#s 3 and 4).
I've taken a cursory look at some plugins like YEP_SkillCore because I'm pretty sure it's impossible in the unmodified engine, but I haven't gotten anything close to working yet.


Just to be sure, if there's any reason I should stop extending the lifespan of this thread, please let me know. I don't know whether it's okay for me to continue asking questions or exploring ideas like this outside of the original Topic/Post, although it has been rather helpful.
because I'm pretty sure it's impossible in the unmodified engine,
and here you are wrong
damage formula coding is a default option that has its own tutorial and forum topics here on the forum.
you need to make sure that you know its limitations but otherwise it can do everything you listed for damage effects without any plugin needed.
Interesting. I found the thread you mentioned ("Damage Formulas 101" I think), and while all this does seem to have a lot of potential, I can't really find any concrete way of dealing damage in the normal way?

Some possibilities I saw that seemed promising were using commands like setHP for both battlers, maybe even with something like setHP(a/b.hp - dmg calc), but that doesn't appear to properly "deal damage" in the usual sense so much as directly adjust HP values. To apply Type weakness/resistance using these plain HP adjustments, my best guess would be having to use if statements that work around like... a.elementrate(x) and branch from there?
It seems really complicated. And some people mentioned executing commands inside of the damage formula may cause those commands to happen when AI battlers try to decide their moves. I'm not planning to have any player characters controlled by AI, but if it's true for enemies as well then that seems like it could introduce problems. Unless I'm just totally wrong again, here...

I also found this thread where somebody offered the suggestion of having your skill call a common event wherein you then force execute a second skill, but the conclusion there seemed to be that was a suboptimal solution and someone suggested a plugin instead.
By default, skills can't target (have a Scope that includes) both enemies and allies.

You can use code in the damage formula to force any battler to take damage whether or not they were targeted by the skill, but it's generally better practice to use a plugin for something like this.

Original thread: https://forums.rpgmakerweb.com/threads/new-user-qs-timed-battles-map-states.162723/