Jump to content

Super Spell\Shout that uses dragon souls instead of magika


GRock84

Recommended Posts

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 by GRock84
Link to comment
Share on other sites

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
endEvent

Here 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 by porroone
Link to comment
Share on other sites

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

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 by GRock84
Link to comment
Share on other sites

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...