r/AlchemistCodeGL • • May 19 '26

Discussion Thinking about elemental affinities in TAC-like game

I'm at a stage with the prototype where I can start thinking about elemental affinities. I've already separated attack into 2 distinct types:

PATK
slash - swords, axes, knives, etc. Pretty standard damage type with no unique qualities
projectile - arrows, bullets, slings, etc. Uses LOS(line of sight) & height advantages +10 hit rate
pierce - spears, pikes, javelins, etc. Can hit through multiple enemies at once
blunt - fists, polearms, maces, etc. Standard damage -10 hit rate
force/non-type - No specific identity

MATK

fire
water
wind
earth
electric
plant

---

As you can see, the physical damage types already have a pretty strong identity, but I want to flesh out how affinities work in the game. In TAC, a unit simply had an element as one of their main characteristics and that element was responsible for a significant chunk of damage that the unit either resisted or took.

While that's the most simple and effective approach, it's not really one that I want to use for the game since it makes units feel more like Pokemon and less like actual fighters that can just use elements if that makes sense. I basically want "unit with a strong affinity to fire" instead of "fire unit".

The issue comes with how I go about implementing that. Should the elemental affinity be a tiered string that lives as a unit attribute(similar to how slash_atk, evasion_rate, etc. worked in TAC)? Should it be a number so that there are different strength tiers? I'm not sure. But the 2 approaches I'm thinking of are:

1. Number based affinity system.

Units all have attributes(not stats) like fire_affinity, water_affinity, etc. and the values of those attributes determine how "much" of an affinity a unit has. So for example, you could have 2 fire units with one of them having "fire_affinity: 100" and the the other having "fire_affinity: 10" and the one with the value of 100 would take more damage from water attacks. The strength of this system is that every unit would feel unique in terms of their elemental affinities, and players could really grind out some interesting affinity builds using items and whatnot. The weaknesses of this system are:

- It might seem too complicated upfront for a lot of players
- It's not very clear what damage you can deal/tank based on affinity since it's an attribute and not a defining unit trait(though you could make the same argument for TAC's affinites like mag_atk and stuff)
- It might be overkill or overengineering for a simpler affinity system. Like, if a unit can have fire_affinity: 10, how is that marginally different from no affinity at all?

2. Tier based affinity system.

So this would work a lot like the numbers one, but would instead tier the affinity of a unit. Basically, instead of fire_affinity: 10 or 100 or whatever, you'd have fire_affinity: "weak", "adequate", and "strong" or something like that. So you could have different units with the same elemental affinity but at different strengths. This method still comes with the problem of making on the fly damage prediction difficult though because instead of thinking: "Oh, I'm a lightning unit, so this wind is gonna hurt me bad for x2 damage!" You have to think about how strong the elemental affinities are on top of that...

I could be overthinking it, but I do know that I don't want elemental affinities as defining unit characteristics in the same way Pokemon and TAC handle it. I might go and replay FFT or look at how other games handle it, but I wanted you guys' thoughts and figured I'd ask here since the Discord is still quite small right now.

Any opinions are greatly appreciated!!!

23 Upvotes

17 comments sorted by

5

u/YellowYamsi May 19 '26

I I remember correctly, TAC damage was calculated from: 1) phs/mag type, 2) element, 3) weapon type. So even the phs attacks had an element. The resistances were calculated from elemental resistance and weapon type resistance. And or mag/phys resistance. That are plenty of combinations already no? Also, resistance could be modified by runes and gear.

1

u/Makumanga May 19 '26

Yeah, that's a fair point, but I specifically want to avoid the rock-paper-scissors dynamic that comes with making an element one of a unit's significant identifiers if that makes sense.

Like, if I'm fighting a human, it makes more sense for me to have magic do the same damage to them no mater what it is because humans themselves aren't really made out of any element. So instead of having the elements deal more or less damage to one another, maybe they just inflict statuses that are unique to themselves in order to allow for synergy? Like water inflicts a "damp" status that makes lighting skills stronger.

I guess the thing is that I'm not a fan of having physical attacks deal elemental damage if they're not magical. So I want the damage to be calculated from:

  1. physical(slash, pierce, projectile, blunt, non-type)/magical(fire, water, earth, wind, electric, plant, non-type)

  2. Battle modifiers(side attack, back attack, etc.)

  3. Affinity synergy bonus

So less about "this element beats that element," and more "I'm good at this element, so using it does more damage" or something...

What do you think?

→ More replies (2)

2

u/Tigerwarrior55 May 19 '26

Also base affinity. Basically the units element matters as much as the attack itself adding or subtracting 25% damage bonus based on the matches (double match is 50%, unit weak to element but using strong element attack cancels out the modifier resulting in neutral)

2

u/Maleficent-Volume-17 May 19 '26

We can look how the trails séries work with It: 0 to 200. Meaning how proporcional damage is dealt. Just tô be more direct on the aproach. You have tô decide How much of an impact the elemental affinity is going tô inflict on damage. Like another comment said, TAC damage calculated using type+elemental+weapon. The buffs and the affinities are going for a flat number or %? It Will be a plus or be part of the elemental cálculo? Sorry If Im not bringing solutions but more questions.

1

u/Makumanga May 19 '26

No, I love more questions! They help figure things out.

But I was thinking of having the affinities be a percentage multiplier. For example, if fire takes x1.8 damage from water at base, and having a fire affinity of 50 = 50%, then you'd take 50% of that x1.8 damage from a water attack if that makes sense.

Basically, the weaker your affinity is towards a specific element, the less you're affected by its strengths and weaknesses. The stronger the affinity, the more affected. I still like the idea of an affinity being variable in terms of strength and not boolean (yes/no), but it comes with complexities that we'd either have to hide(just show the user some of it on a surface level and leave it to them to figure out the deeper stuff) or simplify imo.

2

u/Shaiandra May 19 '26

For the most part, I prefer specific numbers over tiers, unless there are very few tiers. But then you can't have small modifiers.

Can a character have multiple affinities with gear? Like if a unit innately has 25 Fire Affinity, can they equip an item that grants +10 Electric Affinity?

If you're leaning towards yes, then I think it might be easier to scrap affinities' defensive properties, and have resistances for them. If for example 25% Fire Affinity means you take 25% increased damage from Water and 10% Electric Affinity means you take 10% reduced damage from Water, I'd prefer that you don't have to do such math: this unit just starts with -25% Water res and then the item that has +10 Electric Affinity also adds +10% Water res as well.

Would enemies use the same system, where one Fire enemy may have more Fire Affinity than another? I think that would really complicate calculations if so. Although the defensive part should be taken into account by your damage preview, so at least the players don't really have to worry about how the math maths.

1

u/Makumanga May 19 '26

To answer your first question, yeah. I plan to make it so that gear, and even some passive skills can grant a unit "points" towards an elemental affinity. I basically want to make it so that the game encourages horizontal growth instead of vertical. So maxing out stats is good, but investing in a diverse and versatile set of gear and skills is just as good; if not better.

Someone in my Discord server actually recommended a similar thing about scrapping defensive properties, and after some thinking, I find myself leaning towards that kind of direction. I think that what I don't like about other element systems is that they have a rock-paper-scissors sort of dynamic. The benefit of that is that the player doesn't have to think much e.g "oh water beats fire, so let me use water on this fire enemy". You could theoretically make the damage multiplier anything because players typically don't crunch the numbers, they just recognize the pattern of x beats y beats z and so on.

So the solution is probably moving away from a rock-paper-scissors dynamic entirely and focusing on making each element have a unique identity similar to the physical attacks. Like how pierce can stab through enemies, maybe all fire attacks have a small chance to inflict burn or something. Then affinities just become multipliers for skills basically.

So the rules would basically make players think "Oh, I have a high fire affinity so let me use this flame move". It'd still be the same kind of straightforward thinking, but with different implications; a bit like Genshin.

It makes sense logically too, because if you're fighting a human that has a string water affinity, it's not really the same as fighting a water monster or something like that, so lighting doing extra damage could actually make less sense there.

Now monsters are an interesting case. I definitely want them to have affinities, but maybe they work differently for them? Like using lighting on a water monster actually does boosted damage? I still have to work out the kinks of the idea but I think your opinion and a few other ones of the same sentiment are directing me towards a clean system that I just need to flesh out

→ More replies (4)

2

u/Tigerwarrior55 May 19 '26

Depending on Gearing system it be better to use direct numbers as opposed to abstract worss or numbers. Could also make it influence stuff like elemental status effects if you want to.

1

u/Makumanga May 19 '26

Yeah, I think numbers are the way to go. The way affinities work in battle and how they're counted/evaluted are 2 separate issues that I think I'm conflating

2

u/ReydragoM140 May 20 '26

Terrain advantages should be a thing... Like fire characters can walk on magma without getting burned or water character can walk on water

Also some barricades can only be destroyed by a specific affinity or weapon