louisthird Posted August 14, 2020 Share Posted August 14, 2020 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 More sharing options...
Pelgar Posted August 14, 2020 Share Posted August 14, 2020 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 More sharing options...
louisthird Posted August 14, 2020 Author Share Posted August 14, 2020 Thanks for the reply Pelgar! Ok, so it is just as simple as that in the game. Find a keyword attached to the things you're looking for and test for it. I'll research it. Link to comment Share on other sites More sharing options...
louisthird Posted August 14, 2020 Author Share Posted August 14, 2020 Keyword FeaturedItem looks good. It is added by the sample of Weapon and Armor mods that I looked at. Link to comment Share on other sites More sharing options...
Recommended Posts