Jump to content

Quick Questions, Quick Answers


Mattiewagg

Recommended Posts

What perks do Vampire NPC's have?

What perks can I edit that would affect them?

Are they affected by Stages?

Can't I scan a cell for NPC's and dynamically add a script to them?

 

How can I use the OnHit effect to reduce the damage received to 0?

Edited by Kerberus14
Link to comment
Share on other sites

  • Replies 2.6k
  • Created
  • Last Reply

Top Posters In This Topic

Vampire NPCs are all stage 4. You can check their actorbase to see what perks they have. As I recall vampires do not have any special perks.

 

That standard way of adding a script to an NPC dynamically is to put it in a cloak spell and add the cloak spel to the player.

Link to comment
Share on other sites

Right, that worked, thanks :D.

Spell Property FormRight auto
Spell Property FormLeft auto

Event OnPlayerLoadGame()

FormRight=PlayerRef.GetEquippedSpell(0)
FormLeft=PlayerRef.GetEquippedSpell(1)

PlayerRef.UnEquipItem(FormRight,false,true)
PlayerRef.UnEquipItem(FormLeft,false,true)

EndEvent

This Event won't do anything, am I doing something wrong?

Link to comment
Share on other sites

Right, that worked, thanks :D.

Spell Property FormRight auto
Spell Property FormLeft auto

Event OnPlayerLoadGame()

FormRight=PlayerRef.GetEquippedSpell(0)
FormLeft=PlayerRef.GetEquippedSpell(1)

PlayerRef.UnEquipItem(FormRight,false,true)
PlayerRef.UnEquipItem(FormLeft,false,true)

EndEvent

This Event won't do anything, am I doing something wrong?

OnPlayerLoadGame() doesn't fire on the first game load. You gotta save first, then it will work on subsequent game loads.

Link to comment
Share on other sites

I know that, but it still doesn't do anything lol, it should unequip my spells but it doesn't, while UnEquipAll does it..

 

I've tested with messageboxes, the FormRight and FormLeft retrieves the spell references, but the UnEquipItem doesn't work.. why?

Edited by Kerberus14
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...