If you use magic, how do you come up with the rules for it?

If your game uses magc, how do you go about determining how you will create the formulas for the different kinds of magic? What reasoning do you use to create whatever rules for your elements? Do you stand by these rules of yours as a standard that might be noticeable in some way in other games you might work on? Or do you just wing it and come up with whatever you want?

I've decided on certain standards for myself in what certain magics will do. In regard to the usual elements, I have cold magic drain  tp so that it is harder for physical fighters to activate skills. And I have it affect mp as well. So cold magic in my world can be quite a debilitater as it negatively affects both mp and tp.

For fire, I've just decided to allow the TP amount factor into the strength of the damage. For fire, TP is "fuel". The more TP, the stronger the fire attack.

I remember some games in which Holy magic came with a bunch of status curing or healing spells. What I've done is create light magic that is dependent on the amount of HP a character has. The more HP, the more damage. Of course I wouldn't base it solely on HP because the swings in damage would be extreme and there would very easily be a point where such magic will be ineffective even against the weakest of opponents.

Wind magic, I decided to base it on max mp. As you level, your max mp will determine the force of wind magic.

Shadow magic bypasses all defenses. So it tends to have lower damage output since there is no blocking it at all.

I try to balance between the usual MAT formula while adding in the necessary extras for each element, to help set them all apart.

But getting back to the reasoning behind this, the methods I explain above just make sense to me when I think of these magics, or the traits of their elements, how they've been used. I've just become attached to this way of developing elements. So I'm probably going to use these rules or something similar to them in other works as well.
A rule that appears to be common across all fictions is there's a price for casting the magic, always. Be it mana, life, or energy, casting a spell takes something from you. I actually like Alchemy from FMA, which breaks it down into a basic conversion: Output will always equal input. Any 'cheats' in the system can be attributed to inputs you're not accounting for.

As for how I come up with the rules, it's generally I build the world first, then the rules of that world. For example, in my upcoming game, magic is more or less freecast; the only limits on what you can cast is the magic you actually know. The main problem is that the more you use magic, the more you embrace magic. 
I like your way of thinking....adding a bit of spice to the classics.

I myself have light magic damage based off HP as well...but the opposite of yours. Light magic is of course linked to healing magic that restores HP. Light Damaging magic does more damage the LESS hp the caster has...so its a risk/reward system. 
As for how I come up with the rules, it's generally I build the world first, then the rules of that world. For example, in my upcoming game, magic is more or less freecast; the only limits on what you can cast is the magic you actually know. The main problem is that the more you use magic, the more you embrace magic. 
So for your work, are you saying that the more a character uses magic, the more they change in stats?
So for your work, are you saying that the more a character uses magic, the more they change in stats?
Magic in my work has the traditional MP requirements, which will likely be trivial, and a mechanic called Purity. Magic users in this game (With a couple of exceptions) are evil; magic is too corruptive. If you use too much magic, you fall into evil.
Create use of the elementals CWells! I like how cold magic saps away MP and TP...I've seen ice associated with mp damage in a rare few instances, but never actually tried doing it myself...

I always try and make the different elementals as balanced as possible, without just making them the same spell with a different elemental (because that gets boring, you know?)

A simple variation is to make them all add status effects!

-Fire burns.

-Thunder paralyzes.

-Ice freezes.

-From there, there's not many basic RPG status effects that align with many elementals. But I don't always use standard elementals or status effects!

I dabble with different formulas. Sometimes, changing the way some spells create magic. For example, fire, thunder, and water are created with raw magic energy, and thus magic defense protects against them. But earth and ice create solid physical matter and fling those at the enemy, thus physical defense protects against them.

In one project, wind spells have higher speed priority, while earth spells are slower.

As for a cost, I usually just use good ol' MP.

Sometimes I like having a medium to channel magic energy to be able to cast spells. Sometimes it's magical artifacts, sometimes it's more like "geomancy" and requires something nearby. So you need dirt or rocks to be able to cast earth magic, water to cast water spells, and so on.

Or maybe magic is associated with some kind of elemental deity. So you must obtain the favor of a particular deity to be able to cast spells associated with them.
My first step is coming up with very broad "themes" for characters and/or classes.

After that, I define skills/attacks exclusively gameplay-wise while sticking to these themes.

Only after that I "cover" the skills with narrative/cosmetic explanations.

For example, I decided that the "theme" of one of my characters is "bringing up the best in others, and covering for their weaknesses".

Now I'll come up with a bunch of skills based on this theme (the character will need to be versatile and be able to buff others) and balance them with other "sets".

After that, I'll look at the skills and decide if they are a form of magic, a fighting style or something else.
I use combo effects for my spells because magic is often too obtuse in RPGs.

Fire on its own is well and good, but casting Wind spells on a burning enemy will fuel the flame.

Water is rarely used unless it's poison related or fire enemies, yet casting Lightning magic on a wet enemy enhances the effect.

Light and Shadow are two sides of the same coin, like Yin and Yang, and combining their effects on an enemy strengthens both of them.

With the multitude of spell combos achievable, magic isn't simply a routine conditional branch of "if enemy.fire, cast water; else, cast fire".

Adding strategy to magic is a clear and obvious winner to making it less mundane and more interesting.
I use combo effects for my spells because magic is often too obtuse in RPGs.

Fire on its own is well and good, but casting Wind spells on a burning enemy will fuel the flame.

Water is rarely used unless it's poison related or fire enemies, yet casting Lightning magic on a wet enemy enhances the effect.

Light and Shadow are two sides of the same coin, like Yin and Yang, and combining their effects on an enemy strengthens both of them.

With the multitude of spell combos achievable, magic isn't simply a routine conditional branch of "if enemy.fire, cast water; else, cast fire".

Adding strategy to magic is a clear and obvious winner to making it less mundane and more interesting.
I've taken this skind of approach too, having certain elements compliment each other. A wet target gets cold faster, so water magic in my game will boost the strength of ice spells.
A game I played had very interesting views/rules on magic.  You could only have affinity to a single magic type and the strength and availability depended entirely on the map or environment itself. For example, healing magic was wind, so if you're in a cave or the thick of a forest somewhere with little/slow air flow, you certainly won't be using healing magic. And fire which reflected the intensity of the sun and running through a completely open field midday would grant a fire user their fire magic. Water is similar to healing but needs a water source, sometimes a forest would work as well (dew, rain drops in a rain forest.) You'd switch up your party members depending on the terrain to give yourself an advantage. At first it was confusing and unconventional, but it got fun the more I played around with it. Very unique, at least in my experience. I'd love to implement an idea like that somewhere. Not sure how to go about doing that with the RPG maker program though.
Environmental effects can just be variable based.  Pretty simple.
Create use of the elementals CWells! I like how cold magic saps away MP and TP...I've seen ice associated with mp damage in a rare few instances, but never actually tried doing it myself...


I always try and make the different elementals as balanced as possible, without just making them the same spell with a different elemental (because that gets boring, you know?)


A simple variation is to make them all add status effects!


-Fire burns.


-Thunder paralyzes.


-Ice freezes.


-From there, there's not many basic RPG status effects that align with many elementals. But I don't always use standard elementals or status effects!


I dabble with different formulas. Sometimes, changing the way some spells create magic. For example, fire, thunder, and water are created with raw magic energy, and thus magic defense protects against them. But earth and ice create solid physical matter and fling those at the enemy, thus physical defense protects against them.


In one project, wind spells have higher speed priority, while earth spells are slower.
...I might have to steal some of those ideas. That's actually well thought out, I feel silly now.
Environmental effects can just be variable based.  Pretty simple.
I haven't done anything relating to a battle system yet. And I'm still incredibly noobish. Fun idea though...
Random thoughts inspired by your magic system:

All spells generate TP

Water: damages and adds "Wet" status to target

Fire: extra damage based off current TP, consumes all TP after use (Bonus is cut in half if wet or maybe no bonus at all)

Ice: Reduces TP or MP (Reduces double effect if target is wet)

Wind: Damages all foes. (spreads status effects to other foes if a target is wet, air born diseases!!! )

Earth: Damage is based off caster's Defense (Does less damage if caster is wet)

Thunder: Does more damage if caster has higher AGI then the target. (Does 2x damage if target is wet)

fun to think up ideas
This is kind of a tangent away from what everyone has been talking about, but another side of magic discussion is how it is justified and/or explained in your game. My game uses the four elements (earth, wind, water, fire) as a base, with people generally having an affinity towards one element. How I go about making it "fit" a bit better within the game's lore is describing what an affinity physically does to a person. Like, a fire adept has a higher body temperature and is comfortable in the heat (opposite for water), or a wind adept's skin is more static than usual (the whole "rubbing sock feet on a carpet and touching people, or hair standing on end thing).

I think it makes it a bit more believable, or at least adds a bit more depth and polish when you better integrate magic into your game. Some pretty neat ideas for elemental effects, guys; I can dig it.
...I might have to steal some of those ideas. That's actually well thought out, I feel silly now.
Most of my ideas are derived from "borrowing" ideas from various sources and kind of mixing them together, with a little sprinkle of peculiarity. So steal away!

This is kind of a tangent away from what everyone has been talking about, but another side of magic discussion is how it is justified and/or explained in your game. My game uses the four elements (earth, wind, water, fire) as a base, with people generally having an affinity towards one element. How I go about making it "fit" a bit better within the game's lore is describing what an affinity physically does to a person. Like, a fire adept has a higher body temperature and is comfortable in the heat (opposite for water), or a wind adept's skin is more static than usual (the whole "rubbing sock feet on a carpet and touching people, or hair standing on end thing).

I think it makes it a bit more believable, or at least adds a bit more depth and polish when you better integrate magic into your game. Some pretty neat ideas for elemental effects, guys; I can dig it.
Hmmm, now that I think about it, I had an idea once that was sort of like that, I mean, sort of. I guess a good way to describe it would be that magic has that effect on people, but they've been effected that way for...a LONG time, so they sort of "evolved" to be more in-tune with their elemental. Picture the four elemental Spiritual girls from RPG Maker XP, or the ones from VX/A. Moreso the XP ones. By using their chosen elemental for thousands, maybe millions of years (maybe less, after all, magic is pretty hax) people have evolved to basically become their elemental. Humanoid sentient elementals basically.

I actually just thought of most of that now. The connection thing, had some idea with different elemental races basically, but I "borrowed" your idea, combined it with my own, and morphed it...it's not really copying, is it??? Hmm...
One of the important rules that I've come to develop affects both magic as well as any equipment that has some sort of effect on stats.

I've spent time working out ways to rationalize how certain parameters will change based on whatever is being done in game and based on whatever skills are available that might be affected by the changed parameters.

Like, I have magic that strengthens when DEF is raised. But I want this magic to be dependent only on the inherent parameters of the character using the skill. It shouldn't strengthen because of gear that is worn. So I've been working on armor that is PDR/MDR based instead of having the equipment actually raise the DEF stat. So, the armor created can be used long term, since the percentage of damage guarded from will scale up along incoming ATK. I think this works better as far as keeping stats in check goes. I do have some special skills that directly affect DEF, but these are of slightly special means.

One rule I have for my magic states are:

Any State that raises ATK or MAT is direct. So it will scale up ATK or MAT by a certain percentage. 130% or whatever.

Any State that is defensive in nature will act more as a barrier than an increase in DEF or MDF. So defenses are more PRD/MDR

With the exception of states meant to change the character directly, which results in dramatic increases in DEF or some other.

This makes it easier for me to avoid any over scaling of DEF or MDF as characters level up when they use a defensive barrier that suddenly might make on impervious to harm. Using percentages from PDR/MDR, there will always be some measure of damage that comes through, where as if I were to directly scale DEF or MDF, one might end up seeing, "User takes no damage."
Like, I have magic that strengthens when DEF is raised. But I want this magic to be dependent only on the inherent parameters of the character using the skill. It shouldn't strengthen because of gear that is worn. So I've been working on armor that is PDR/MDR based instead of having the equipment actually raise the DEF stat.
There's no need to skimp on DEF just to get that result.  There is already a method defined within Game_Actor and Game_BattlerBase called param_base.  It is used in the format of param_base(param_id).  Since the user of an ability is called "a" in the damage formulas, you can easily do this:

a.param_base(3) * 4 - b.def * 2

That is the standard damage formula using BASE Defense instead of gear modified Defense for the damage.  There's no need to redefine how defense and armor works just to accommodate a very simple formula for specific spells.  You can always still use PDR for armor defenses, but feel free to add some DEF to it as well without worrying about increasing spell potency.
There's no need to skimp on DEF just to get that result.  There is already a method defined within Game_Actor and Game_BattlerBase called param_base.  It is used in the format of param_base(param_id).  Since the user of an ability is called "a" in the damage formulas, you can easily do this:

a.param_base(3) * 4 - b.def * 2

That is the standard damage formula using BASE Defense instead of gear modified Defense for the damage.  There's no need to redefine how defense and armor works just to accommodate a very simple formula for specific spells.  You can always still use PDR for armor defenses, but feel free to add some DEF to it as well without worrying about increasing spell potency.
WAH! I'm stunned. I can do that? Dang. Still learning things. Great, I guess I can fix up my earth magic for good.
My game has a very heavy reliance on magic.  As such, I've had to put a lot of thought into it.  What I've come up with is not new to fiction, but pretty novel in the JRPG world.  I've done away with the traditional elemental rock-paper-scissors approach in favor of something a little more sensible.  There are still elemental spells (setting things on fire is still a fire spell, for instance), but most spells are just "magic."  Healing spells, binding spells, bleeding spells, heart-attack inducing (insta-death, if it hits) spells, spells to toss your enemy around the room (thereby inflicting damage and stun)...You name it, a mage can do it.  Standing near a lake?  Well, why not magic some of that water onto your enemy, then freeze him solid.  Or, if you're feeling especially lucky, electrocute him (summoning lightning is very inaccurate, though, and might end up hitting one of your party members).  Some spells are very powerful and can one-shot just about anything that's not a boss.  But those super-destructive spells are difficult to pull off and have a high chance of backfiring on the caster.

There are lots of defensive spells and utility spells too.  Taking a beating?  Cast stoneflesh on yourself and watch your enemies blades break on your skin.  That door's locked?  Well, you could kick it in...Or just use a simple unlocking charm.  No fuss, no muss.

There's still a little bit of elemental rock-paper-scissors, though.  If you're fighting a lava-dwelling monster, it's probably not a great idea to hit him with fire spells, for example.  But if you hit that same monster with water...Watch out for the steam, bro.

Original thread: https://forums.rpgmakerweb.com/threads/if-you-use-magic-how-do-you-come-up-with-the-rules-for-it.23424/