Skip to content

NPC traders#13

Draft
GremlingThing wants to merge 8 commits into
Tk420634:masterfrom
GremlingThing:master
Draft

NPC traders#13
GremlingThing wants to merge 8 commits into
Tk420634:masterfrom
GremlingThing:master

Conversation

@GremlingThing

Copy link
Copy Markdown
Collaborator

About The Pull Request

The start of a component based NPC trader!

2 components, one to control the "NPC" (being the mob it's attached to) and the other one is the interaction UI

A helper spawner object landmark was added to help create interactable traders in the world editor and to spawn one in with little setup needed 👍

Todo things:

  • Create a "ClickedOn" signal and allow blocking OnClick calls by the person who's clicked on.
  • (Added onto ClickedOn) Using this method, allow people who can see the NPC trader & in range to be able to talk to them rather than being next to them.
  • Make the trader UI work
  • RnD interaction methods for how to purchase things from the trader
  • Create a new behaviour for the NPC trader to "retrieve" the item
  • Seek closest table to the person who's purchasing the item and place item on the table after being retrieved.
  • Teach fenny what the vars mean in the map editor :3

Changed Main menu
Refactors npc dialogue to be a base object to be OOP'd
Wasn't aware I pasted something in a few days ago, weh

NPC trading is moved into the main folder cause it uses the relative path of the imports, which smell. I love inferno!!!!!!!!!!!!!!!!!!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant