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

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.
But even a spell that costs nothing (zero mana, no penalty) still costs you a (valuable?) turn to cast if you go by ingame terms. I think FMA's system is pretty cool, but it ignores the cost of time spent preparing/casting the spell. Time is a valuable something, yet isn't considered a worthy sacrifice in its alchemy system.
Me, I have a somewhat complicated magic system for a non-rm game that has eight elements, Air, Fire, Earth, and Water; and Steel, Coal, Electric, and Steam, (Natural and Artificial elements) which interact in different ways and requires a specific element to harm it.
But even a spell that costs nothing (zero mana, no penalty) still costs you a (valuable?) turn to cast if you go by ingame terms. I think FMA's system is pretty cool, but it ignores the cost of time spent preparing/casting the spell. Time is a valuable something, yet isn't considered a worthy sacrifice in its alchemy system.
For normal Alchemists, they need to make a transmutation circle, and they need a bigger circle for a bigger, more powerful transmutation. Bigger circle takes more time to make. Characters that don't need to make transmutation circles bypass this, yes, but that's part of the point.
I think coming up with ideas for magic-based mechanics is something I generally do on a project to project basis. Early on in development I play most idea creation by ear and go with what sounds good, and try not to reference other recent ideas too much. I like to come up with extreme and obtuse ideas and work them into a setting that breaks away from rpg norms.

Here's an idea I came up with.

In a game where magic is the primary tool for combat, consider something that uses different types of spell casting stances.

Given that magic is something that comes from the user's will or mind (assuming that is true at least), then things like mental perparation and feelings couild alter the way spells are cast.

For example: Take a fire mage.

In an aggressive stance, a fire mage's will creates things like fireballs and explosions.

In a defensive stance, that same will generates fire walls and blasts of white hot light to protect instead.

Or maybe try mixing it up a different way.

In a quick stance, fire magic consists of things like ember shots and sparks.

While in a power stance, fire magic is big and explosive.

You could come up with all sorts of things like dueling stances, barrier types, and other specific spell stances.

Also in Crysalis, the free sample game you can download here, introduces and teaches how to make a simple shape-shifitng spell caster. Changing the type of enchantment / ability style used unlocks different abilities and alters a character's role in battle. So there's that idea too.

As for writing the rules into the game's story, that's a bit tricker. I think story wise this sort of area should be left soft until you get balance sorted out and then take care of it. Focus on working on a magic system with fair rules, and then try to mold the story around that. That is usually what I end up doing to get that initial head start on little lore details like that.
Magic is an innate ability in my current project. It is an ability a character is born with. Other characters obtain abilities through orbs that are created with the purified essence of an Elemental ( Fire, Water, Thunder etc. ). When defeated they drop the crystalised form of their element in battle. The most powerful skills in the game use a % of the user's Life force.

But mostly for governing the rules, I go for simple, practical logic rather than trying to think up elaborate, idea-shattering systems. Like some posters mentioned, Fire burns, Ice freezes etc. Water magic is regenerative and can drench allies and foes alike ( this is also extended to the weather patterns in my game; rainy weather will give all characters the Drenched status, halving damage from Fire but making them more vulnerable to Thunder magic ), Light magic blinds, Dark/Elder magic poisons and curses.

I've also associated each of the 8 elements with a particular 'buff' ability in battle.

Fire is PWR/Attack.

Water is MP/Mana.

Earth is DEF.

Air is MAG/Intellect.

Stuff like that, really. They're also associated with certain states, but that's another story.
I don't have much to add, since people have already suggested complementary elements. 🙂 Though I do have an idea with regards to opposing elements.

Correct me if I'm wrong, but aren't some fires made bigger by water? So it makes more sense for fire to be opposed to earth, as soil and rock tend to smother fires. (I'm not really big on the idea of separate elements for earth and rock, ice and water. I'm looking at you, Bionicle.)

I also like how in Final Fantasy (probably others as well), curative magic hurts the undead. It's like what the bible says- darkness and light can have no fellowship.
I don't have much to add, since people have already suggested complementary elements. 🙂 Though I do have an idea with regards to opposing elements.

Correct me if I'm wrong, but aren't some fires made bigger by water? So it makes more sense for fire to be opposed to earth, as soil and rock tend to smother fires. (I'm not really big on the idea of separate elements for earth and rock, ice and water. I'm looking at you, Bionicle.)

I also like how in Final Fantasy (probably others as well), curative magic hurts the undead. It's like what the bible says- darkness and light can have no fellowship.
Elemental attributes for monsters and characters is a whole other subject entirely!

Personally, I tend to do a case by case set-up for elemental attributes. Not like Pokémon, where if you know a Pokémons type(s), then you know it's weakness and resistances (as long as you remember the type match-ups)

And speaking of Pokémon, it separates things that could be considered "earth" into 3 different types (maybe 4).

Rock - which is typically rocks and stones

Ground - which is usually dirt and tremors, doesn't hit flyers

Grass - plants and stuff

Also, Steel could count as a derivative of Earth, but I don't see that too often.

Why do I like separating those things? Well, think how they interact. An earthquake wouldn't hit a flying foe, but if you chuck a boulder at them? It's gonna knock them out of the sky. Also, the effects of a boulder compared to tree? Normally, both would hurt similarly if lobbed into you, but when magical elementals are involved, a thing made of stone will be different than something made of wood and leaves. Also, throw a tree into a fire enemy, you'll only make it stronger, but drop a boulder on it? You just might put it out.

BUT, that brings me back to the point I was making about case-by-case set-up. Take two fire elemental enemies. One is a fire elemental, a living embodiment of flame. The other is a fire dragon, a fire-aligned red dragon that can breath flames. Chuck a tree at the fire elemental, it will consume the wood and burn stronger. Chuck a tree at a fire dragon, and you'll do some damage. Sling a fireball...heals the fire elemental, does nothing to the fire dragon. Summon a waterfall on the fire elemental, and now it's nothing but steam. Do the same to a fire dragon, and it will weaken it a little, maybe douse it's flames for a brief time, but otherwise it's not hurt much.

That's usually as far as I go. If you wanted to get overly technical about it, each individual ability would have it's own effect on every enemy differently, but...that's probably going too far.

I always run on about these kind of things, don't I...

One more thing! On the subject of Undead being hurt by healing (and healed by death spells), I figured it was because Undeath is like the opposite of Life, where Death is in the middle. Life = Positive, Undeath = Negative, Death = Zero. Going beyond zero is cheating.

It gets complicated when you want to use that kind of logic, and throw in an undead party member. (undead can be heroes too!) So a group healing spell will hurt them! You need special items to heal them! I do a similar, but different, thing with robots.

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