Jump to content

Easy? Testing for a legendary weapon or armor


Recommended Posts

Hello Papyrus Gods,

 

Is testing for a legendary weapon or legendary armor easy? Is it a one-liner? It looks like there are several legendary tags. I bet it is easy, but not sure of simplest and most reliable method. I am not concerned what legendary effect it is... just that it has one.

 

Anyone know the best way?

 

Regards,

-louisthird

Link to comment
Share on other sites

I'm not sure about legendary weapons and armor but I use the keyword EncTypeLegendary to detect legendary Gunners in a companion mod I'm working on. You can probably find a keyword that is attached to legendary armor and weapons and do something similar.

Event Actor.OnKill(Actor akSender, Actor akVictim)
	
	If (akSender == PlayerRef) && Alias_Jenny.GetActorRef().IsInFaction(CurrentCompanionFaction)
		if (akVictim.HasKeyword(EncTypeLegendary)) ;Jenny loves killing legendary gunners
			CompJenny_KillLegendary_Gunner_Msg.Show()
			(ComJennyAffinityQuest as comjennyaffinityscript).Jenny_Loves(True)
			PlayerGunnerKillsTotal += 1
	EndIF
		EndIf
EndEvent

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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