Jump to content

Is there a way to apply poison on player/npc through script?


ChewGun

Recommended Posts

Posted

Dunno if right subforum, please move the topic and forgive me if not.

 

So, the question is in the title. And I don't want to emulate the poison's effects through script, just apply some of the native ones provided in the game.

Posted

There might well be an easier/ more direct way to do this, but pretty sure the below would work:

Make new a fire and forget cast on self spell (say: PoisonSpell). Add the poison effect you want to the Magic Effect of the spell.

 

Then in your script

 

Spell property PoisonSpell auto

Actor property PoisonVictim auto

 

....

PoisonSpell.cast(PoisonVictim)

 

....

Posted

There might well be an easier/ more direct way to do this, but pretty sure the below would work:

Make new a fire and forget cast on self spell (say: PoisonSpell). Add the poison effect you want to the Magic Effect of the spell.

 

Then in your script

 

Spell property PoisonSpell auto

Actor property PoisonVictim auto

 

....

PoisonSpell.cast(PoisonVictim)

 

....

That's exactly what I'm trying to avoid. I want to apply currently existing potion or its magic effect.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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