descawed / tesconvert

A tool for converting player characters between The Elder Scrolls III: Morrowind and The Elder Scrolls IV: Oblivion
0 stars 0 forks source link

Spells #6

Closed descawed closed 4 years ago

descawed commented 4 years ago

Need to convert over the player's known spells and known magic effects. For spells that contain effects that can't be transferred over (like Levitate), do we cut the whole spell or just that effect (assuming there are other, convertible effects)? I'm leaning towards the whole spell, because the effects that don't exist (Levitate, Almsivi Intervention, Divine Intervention, Mark, Recall) are typically the primary component of a spell, and the spell is likely to be fundamentally altered without them. But we should also allow mapping these effects to effects added by mods.

descawed commented 4 years ago

We may have to do this before #8 because active magic effects have a reference to the spell they belong to. This means we need to not only convert the player's own spells, but also any spells currently effecting the player.

descawed commented 4 years ago

Things to consider when deciding how to convert spells:

descawed commented 4 years ago

Spell conversion has been implemented. I decided not to toss the entire spell if only some effects can't be converted; a spell will be converted if any of its effects can be converted.

One question I've left unanswered is what to do with an edge case for the Calm, Demoralize, and Rally effects. In Morrowind, each of these are two separate effects, one for creatures and one for humanoids. In Oblivion, there's only a single effect that affects both types of actors. For now, I'm not doing any special handling of this. If a Morrowind spell contains, e.g., both a Rally Creature and Rally Humanoid effect, the Oblivion spell will have two Rally effects. This is probably not the desired behavior, though; maybe we should have a check for this. That's not a pressing issue, however, so I'm going to close this issue for now.