Jump to content

Creation kit adding an ability by potion


deep911112

Recommended Posts

Hi,

I made the abilities I want with the creation kit.
I even checked that this ability works normally in in-game. (using the console "player.addspell XXXXXX")
I want to get this ability through a potion.
I referenced Esbern's potion.
1. I made "Perk A"
2. made "Magic effect A". (apply "Perk A")
3. made "Ability A" (apply "Magic effect A")
4. made "Perk B" (type : ability , Data : "Ability A")
5. made "Magic effect B". (apply "Perk B")
6. made "Potion A" (Effect : "Magic effect B")
I expected to add "Ability A" by using the "Potion A", but it didn't work.
When applying a duration to the potion, "Ability A" was maintained only for the duration.
How do I make a potion that acquires abilities?
(I’m worried that the content was delivered well because I’m not good at English.)
Link to comment
Share on other sites

One method that might work. Add a script to the magic effect. In the OnEffectFinish event add the spell directly to the player. You can use the OnEffectStart for any visual FX you might want to take place.

 

Simple example (not tested for compilation or functionality):

 

ScriptName AddAbilityByPotionScript Extends ActiveMagicEffect
 
Spell Property myAbilitySpell Auto
 
Event OnEffectFinish(Actor akTarget, Actor akCaster)
  Game.GetPlayer().AddSpell(MyAbilitySpell)
EndEvent

Link to comment
Share on other sites

  • Recently Browsing   0 members

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