I don't have much knowledge in Papyrus scripting so I'm mostly just editing the basic stuff presented in the Creation Kit itself.
This is what I wanted to do:
Using a perk like the Impact, or Elemental Potency to change the way a spell acts.
For example, Lightning changing to Chain lightning, when the player has a specified perk.
In this edit, I didn't add any new perks, but just for the testing I used Elemental Potency perk.
So if I had the Elemental Potency Perk, and casted Lightning, it triggers Chain Lightning instead.
This is what I have edited:
(Everything that has Extra in the end is duplicate of the former version)
1. In "Spell" I duplicated a Lightning Bolt spell, named it "LightningBoltExtra".
2. In Magic Effects tab, added "ShockDamageFFAimedExtra", and "ShockDamageFFAimedAreaExtra", both duplicated from the Lightning bolt and Chain Lightning.
3. In the "ShockDamageFFAimedExtra", which is the new Lightning Bolt, I added a Target Condition.
It looks like this:
Condition Function: HasPerk, Perk: "Elemental Potency" == 0.0000
Run On: Target
4. In the "ShockDamageFFAimedExtra", which is the new Chain Lightning, I added a the same Target Condition, except it has 1.0000 for the Condition Function.
5. Going back to the Spell, "LightningBoltExtra", I replaced the Effects "ShockDamageFFAimed" into "ShockDamageFFAimedExtra" and added the new "ShockDamageFFAimedAreaExtra".
I've looked up in the Magic Effects tab's Impact Perk and the Potent/Normal Conjure Flame Atronach and thought the Condition Function is where they add extra effects into the spell, and triggers which Atronach it will summon.
However, it's still only shooting out Lightning bolts, even with Elemental Potency on my character.
Do I have to dive into the Papyrus scripting, or is there some errors in the Conditions?