Jump to content

Recommended Posts

Posted

Let me expand a bit , I am building a mod with a ton of player homes scattered throughout the game,
So far its going well
But I would like to be able to access a vendor from all spots without making a new vendor for each one
sort of like how the commissary terminals worked in NV

Posted

Attach a new script to the activator, and append this code:

Actor Property ActorRef Auto Const

Event OnActivate(ObjectReference akActionRef)
	ActorRef.ShowBarterMenu()
EndEvent

Save it, and then go to the properties and fill the ActorRef with the actor that will act as your unique merchant for all your activators. It will just open their merchant container, with no dialogue.

Posted

Thank you , the vendor menu comes up although without any caps or all the items in the list :/

Could that code be used in a similar manner to connect all player home containers to a centralised one ?

 

Make sure the vendor NPC is properly set up with a merchant faction. Take a look at how the other vendor NPCs are set up in the vanilla game, and see if you missed anything. :smile:

 

As for the container, yes, it's the same approach. Set up a container NIF as an activator and make it target the actual container :

ObjectReference Property TargetContainer Auto Const


Event OnActivate(ObjectReference akActionRef)
	If (akActionRef == Game.GetPlayer())	
		TargetContainer.Activate(akActionRef)		
	EndIf
EndEvent
  • Recently Browsing   0 members

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