Jump to content

[LE] Use potions or it's effect


inomoz

Recommended Posts

Looking some way to use potion or it's effect (Skooma) in papyrus script (quest)

 

Better just cast Skooma magic effect to hero, some like this:

 

Skill.cast(game.getplayer())

 

But As I understand Skooma potion has magic effect, not skill, is any solution to apply it's magic effect in script?

 

 

Link to comment
Share on other sites

If you have a skooma in inventory you could actually do something like

PlayerRef.EquipItem(Skooma)

And it should use the potion as if you went to inventory and did it manually. Therefore giving exactly the same effects. Alternatively you can cast any spell using

SpellFormID.Cast(RefToCastAs, RefToCastOn)

See https://www.creationkit.com/index.php?title=Cast_-_Spell for more info on spell casting. RefToCastOn is optional and only relevant for things that can be cast on others and not self. For things that cast on self the RefToCastAs is relevant.

Edited by BigAndFlabby
Link to comment
Share on other sites

  • Recently Browsing   0 members

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