Jump to content

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


ChewGun

Recommended Posts

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.

Link to comment

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)

 

....

Link to comment

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.

Link to comment

Archived

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

  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use