artemissrose Posted July 19, 2018 Share Posted July 19, 2018 Hello Thank you for taking the time to read this. im new to modding especially scripting. Ive really been trying to teach myself but there is one project im just utterly lost on. I would like to create 4 scripts for repeated use on a trigger button:1: to turn you into a vampire lord2: to cure vampirism3: to turn you into a werewolf4: to cure Lycanthropy Ive tried searching through the source scripts for the regifts from Serana and Aela to get an idea of how to write it but I could only find the DLC1LycanthropyRegiftQuestScript and nothing else. I mainly want it to crate a button to use for testing mods. But if I ever did use it for something public I would of course never charge money for it and would always give credit where credit is due. even if someone could just point me in the right direction or show me somewhere I can learn to do it myself would be so greatly appreciated. I've searched the internet and been learning from creationkit.com and youtube videos on scripting but I haven't seen anything that touches something like this. probably because I would imagine its a complicated script. Anyways thank you for taking the time to read this and again any help at all no matter how small would be so greatly appreciated. -Artemiss Rose Link to comment Share on other sites More sharing options...
HeyYou Posted July 19, 2018 Share Posted July 19, 2018 You should post in the skyrim construction kit forum. That would be the best place to get help. :) I suck at scripting after Oblivion....... never really wanted to learn papyrus...... Link to comment Share on other sites More sharing options...
Ameisenfutter Posted July 22, 2018 Share Posted July 22, 2018 Only a short post, because I really need to go to bed. ;-) There's a Quest called "PlayerVampireQuest" with a script "PlayerVampireQuestScript" attached to it. That script contains a Function called "VampireChange" that has an Actor Form as input variable.So for turning the player into a vampire, you could call that function like so: ; scriptname extends objectreference yadayada that is attached to the button Quest Property playerVampireQuest Auto ObjectReference Property playerRef Auto Event OnActivate (ObjectReference akActionRef) if (akActionRef == playerRef) ; just to prevent anybody else from doing stupid things with the button (playerVampireQuest as PlayerWampiteQuestScript).VampireChange((playerRef as Actor)) endIf EndEvent Of course, this doesn't turn you into a vampire lord nor does it handle the other things you want to do. The good news is, for all those things the game already has functions you only need to find and call like I did. Minimum amount of coding involved. ;-)I'd try by searching the quests for Harkon and the companions (I think they have the prefix CC or something) and looking for attached scripts. Link to comment Share on other sites More sharing options...
SeraphimKensai Posted July 22, 2018 Share Posted July 22, 2018 ;-- Properties -------------------------------------- race property TargetsOriginalRace auto imagespacemodifier property ChangeFX auto race property WerewolfBeastRace auto ;-- Variables --------------------------------------- ;-- Functions --------------------------------------- function OnEffectFinish(Actor Target, Actor Caster) utility.Wait(5 as Float) ChangeFX.Apply(1.00000) Target.SetRace(TargetsOriginalRace) endFunction function OnEffectStart(Actor Target, Actor Caster) TargetsOriginalRace = Target.GetActorBase().GetRace() self.RegisterForAnimationEvent(Target as objectreference, "SetRace") utility.Wait(5 as Float) self.UnRegisterForAnimationEvent(Target as objectreference, "SetRace") Target.SetRace(WerewolfBeastRace) endIf endFunction This might give you a starting point. So for one of my effects, I wrote a custom werewolf transformation script so that its not tied to any quests, and also so it will change you back to the race you were before casting the spell as opposed to how vanilla did it where it stores your original race during a companion's quest. The race for Vampire Lord is: DLC1VampireBeastRace. You'll still have to add the Vampire Lord spells though if I'm not mistaken which can be added via script as well. Link to comment Share on other sites More sharing options...
Ghaunadaur Posted July 22, 2018 Share Posted July 22, 2018 ;-- Functions --------------------------------------- function OnEffectFinish(Actor Target, Actor Caster) ... endFunction function OnEffectStart(Actor Target, Actor Caster) ... endFunction Not good practice to override native functions/event with your own. Better give unique names to them. Link to comment Share on other sites More sharing options...
artemissrose Posted July 27, 2018 Author Share Posted July 27, 2018 Thank you so much everyone for all your help you have definitely pointed me in in a direction other than my circle of madness. Lol. I almost gave up but these suggestions are great thank you a bunch Iâll keep doing research. Aiensen Thank you for being so quick to respond and telling me about the vampire quest Iâll check that. And thank your Seraphim I really like idea of having the transformation where it will not break quests. Of corse Iâll love further advice but Iâll post an update when I can. Thanks Link to comment Share on other sites More sharing options...
SeraphimKensai Posted July 27, 2018 Share Posted July 27, 2018 Glad to be of some help, as I see myself as still just a kindergartener of modding compared to some of the real pros out there. Link to comment Share on other sites More sharing options...
Recommended Posts