Jump to content

[LE] Race locking items


Recommended Posts

I am making a mod that is supposed to have items that should only be accessible to the standard variant of every race. like a breton or a khajiit could pick up or equip the items, but if the game classes them as a vampire or werewolf variant, the items become useless/hidden. I want the quest line I plan to develop to be hidden if the player is a vampire or werewolf, and I want the items to be useless if they are obtained somehow.

Link to comment
Share on other sites

There are couple of ways you could do this, here is a simple example:

- Let's say that you have an armor that you want to add a 'Perk' when the player equips it.

You could make a script that when the player equips the armor to check for vampirism.



Perk Property MyPerk auto
Spell Property VampSpell auto
{The spell to check for vampirism}

Event OnEquipped(Actor akActor)
If ( akActor == Game.GetPlayer())
If (akActor.HasSpell(VampSpell))
; Do Nothing
Else
akActor.AddPerk(MyPerk)
EndIf
EndIf
EndEvent


This way even if the Player is a vampire and equips the armor the Perk will not be added.


With the same logic you could use a "Key Word" to check if the player is a vampire or a werewolf.







I hope it helps.

Stay home and stay frosty!!.

Edited by maxarturo
Link to comment
Share on other sites

  • Recently Browsing   0 members

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