Jump to content

ShowBarterMenu Question


marieruth

Recommended Posts

So I set the percent discount in a script to be 100% or

 

BlahBlahBlah.ShowBarterMenu -100

 

To essentially be free, but in the GECK wiki, I saw this:

 

http://i.imgur.com/eCoZXfV.png

 

The prices in the game don't change at all when I have it set to -100

 

Would -99 or something create the same effect?

Link to comment
Share on other sites

If your goal is to allow the player to freely move items between their own inventory and an NPC's, why not simply use OpenTeammateContainer? Contrary to what the name suggests, this function can be used on any NPC, rather than just team-mates of the player, by simply setting the IgnoreTeammate flag to one. For example, calling the function like this:

ExampleRef.OpenTeammateContainer 1

Will allow the player to access ExampleRef's inventory in the same way that they might access a companion's inventory, regardless of whether the player is actually ExampleRef's team-mate or not.

 

Hope this helps! :smile:

Edited by Jojash
Link to comment
Share on other sites

If your goal is to allow the player to freely move items between their own inventory and an NPC's, why not simply use OpenTeammateContainer? Contrary to what the name suggests, this function can be used on any NPC, rather than just team-mates of the player, by simply setting the IgnoreTeammate flag to one. For example, calling the function like this:

ExampleRef.OpenTeammateContainer 1

Will allow the player to access ExampleRef's inventory in the same way that they might access a companion's inventory, regardless of whether the player is actually ExampleRef's team-mate or not.

 

Hope this helps! :smile:

 

Oh, I haven't even heard of that before, thanks for sharing that with me! It'll help me out greatly.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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