Ryyz Posted October 2, 2021 Share Posted October 2, 2021 So I'm trying to make some changes to shrines. I want to make it where if you use a shrine it adds a spell and if you interact with a different shrine it removes the previous spell and adds one from that shrine. I thought have a script that checks if the player has the spell for that shrine and if player doesn't add it but if it does remove it... the problem with that is if the player interacts with the same shrine again it removes the spell from that shrine. This is easy with magiceffects but I don't know how to do it with spells. I also thought have the script linked to that specific activator but that causes incompatibilities with mods that add new shrines to places. I'm not sure if there's a way to make it apply to every activator using that base rather than just an object reference. Link to comment Share on other sites More sharing options...
dizietemblesssma Posted October 4, 2021 Share Posted October 4, 2021 I think you could this by storing the current shrine somewhere and then compare on interacting with any shrine. Maybe use an alias and set that to the shrine when adding a spell, compare the alias when interacting and if the same do nothing else set the alias again to the new shrine and set the new spell? diziet edit: or, check the shrine in a series of if statements, in the statement that matches check to see if the active magic effect already exists, act accordingly Link to comment Share on other sites More sharing options...
Recommended Posts