I am thinking about making a mod for Skyrim. One thing that this mod hinges on is checking if a player already knows a spell. I have been looking high and low for a script command, but have yet to find one.
Is there a script command somewhere that can check this? For example, something that would allow this:
If player."HasSpell" spellid {
player.RemoveSpell spellid
} else {
player.AddSpell spellid
}
...or something to that effect. If there isn't a command, can anyone think of alternatives/workarounds to accomplishing this?