Overworld Merchant

Scripting with the OverworldMerchant class.

An OverworldMerchant is a merchant in the game world that can be interacted with.

Fields & Properties

Name
Description
Type
Access

merchant

The merchant. This determines how the InventoolWindow will open.

Merchant

public

inRangeIndicator

An object that is enabled when the player is in range of the merchant.

GameObject

public

interactionAction

The action to invoke when Interact is called.

Action

public

Active Merchant

You can get the active merchant (the merchant currently in range) with the OverworldMerchant.activeMerchant field.

Interaction

You can use the Interact method to interact with a merchant. Interacting with a merchant will open the Inventool Window for the specific merchant type (depends on the merchant field).

myMerchant.Interact();

Last updated