GRock84 Posted March 30, 2013 Share Posted March 30, 2013 (edited) Hi there!I'm currrently working on a spell or shout (havent decided yet most likely shout) that will use dragons souls in place of magika to provide enhanced abilities (Super Dovahkiin Mode if you will), sorta like vampire or werewolf forms but more temporary (60 secs) and more positive abilities instead of weaknesses (ie weakness to sun light etc). In other words when you use the spell or shout it cost 1 dragon soul each time you use it.. I'm almost certain this will require a script of some sort. I am quite new to scripting in the creation kit so I was hoping someone could give me an idea of what such a script would look like or at least a good place to start or maybe even alternative way to accomplish this goal. thanks Edited March 30, 2013 by GRock84 Link to comment Share on other sites More sharing options...
porroone Posted March 30, 2013 Share Posted March 30, 2013 (edited) Event OnEffectStart(Actor akTarget, Actor akActor) if akActor.GetAv("DragonSouls") > 0 Player.ModAv("DragonSouls",-1) else Debug.Notification("You dont have souls to spend") endIf endEventHere is a small example on how would it work, you may want to put a conditional inside a magic effect, checking if the player has Dragons souls.Also I really like the idea, I might implement it in my mod :smile: Edited March 30, 2013 by porroone Link to comment Share on other sites More sharing options...
GRock84 Posted March 31, 2013 Author Share Posted March 31, 2013 Thanks so much for your reply. I added you script in but i ran into another issue that is not related to your script at all. When i add the spell to my character either by spell tome or console command, i get the 'spell learned' message but the spell is nowhere to be seen in my magic section. I am certain it has nothing to do with the script as removing it had no effect as did removing the conditions. so i have been unable to test the spell. perhaps its because I have too many magic effects added to this one spell? Is there a limit? I have 27 lol Link to comment Share on other sites More sharing options...
GRock84 Posted March 31, 2013 Author Share Posted March 31, 2013 (edited) nevermind fixed it lol had to state a magic skill in all the magic effects of the spell. tested the spell in game and everything ran fine but the script didnt run. so to clarify, I add the script to the magic effect in the papyrus script section. but im not entirely sure what I should select as the property object? I add the script here --> Here and this is the property window --> Here what do I pick as the object? edit: fixed links.... edit2: also i want to add the dragon aspect glow effect with maybe some custom bound armor. cool? good idea? maybe too cheesy? Edited March 31, 2013 by GRock84 Link to comment Share on other sites More sharing options...
GRock84 Posted April 1, 2013 Author Share Posted April 1, 2013 so here is what i got for the script so far and now i cant get it to compile... I know it has something to do with referencing the player or something but im not sure how to do that. Scriptname removePCdragonsoul extends activemagiceffect {removes dragon souls when Dovahkiin Suleyk spell is cast} MagicEffect Property Player Auto Event OnEffectStart(Actor akTarget, Actor akActor) if akActor.GetAv("DragonSouls") > 0 Player.ModAv("DragonSouls",-1) else Debug.Notification("Spell requires a Dragon Soul.") endIf endEvent and this is the error I get: \removePCdragonsoul.psc(8,15): ModAv is not a function or does not exist Link to comment Share on other sites More sharing options...
GRock84 Posted April 1, 2013 Author Share Posted April 1, 2013 finally got the script to subtract a dragon soul everytime it was cast but once the soul count reaches 0 you are still able to cast it. I need the spell to be disabled if you dont have any souls left. here is the tweaked code: MagicEffect Property Player Auto Event OnEffectStart(Actor akTarget, Actor akActor) if Game.GetPlayer().GetAV("DragonSouls") > 0 Game.GetPlayer().ModAV("DragonSouls",-1) else Debug.Notification("Spell requires a Dragon Soul.") endIf endEvent how do I make it so the spell does not cast if the player is out of souls? Link to comment Share on other sites More sharing options...
porroone Posted April 1, 2013 Share Posted April 1, 2013 You must set a conditional inside the Magic Effect to check if the player has dragon souls, so the effect wont trigger unless there are dragon souls. Link to comment Share on other sites More sharing options...
GRock84 Posted April 3, 2013 Author Share Posted April 3, 2013 (edited) Should I set the condition for all effects or just one? Also I noticed the debug message never pops up. Edited April 3, 2013 by GRock84 Link to comment Share on other sites More sharing options...
Recommended Posts