Easy NPC

Easy NPC

2M Downloads

Scoreboard Integration: Detect interaction

Gnarty opened this issue ยท 10 comments

commented

It would be good that with a scoreboard you can detect if a player gave right click to an NPC, this so that when making maps it is easier to execute commands after talking.

There should also be the option to add multiple dialogs to a single NPC

commented

Thanks for the feedback. I created a rough roadmap for the mod and will review the option with the scoreboard.

Just to set the right expectations, I assume that it will take at least 4-5 weeks before most of the features for a release version are done. But feel free to suggest additional features for this mod.

commented

A suggestion:
Support for executing commands when answering a conversation or compatibility with the FTB quest mod to accept missions

PS: Do you have discord? With the forums of discord would also be comfortable to generate requests for things and areglo of bugs

commented

I added a basic action screen which allow all kind of command even scoreboards commands for specific actions.
Let me know if this covers your need.
I added the FTB quest mod to the road map, but haven't reviewed it so far.

commented

I found a problem with this system. I can not detect who made the click since the command is executing the NPC and not the user who gave him right click, so if I make a @s in a command the NPC will execute it and if I use @p when there are many players it does not work

commented

I'm going to put it to the test Thanks for the quick update

commented

The interactions work perfect, now you ask: can you edit the NPC dialog with a command? because when they close the dialogue it could change their message

commented

Thanks a lot for the feedback. Allowing multi-way dialog is something which will be added in the next updates.
I currently testing some way to support multiple use-cases.

I just released an update which supports the @initiator and @npc placeholders for actions as well like:

  • /say Hello, @initiator ...
  • /give @initiator stone
  • /scoreboard players add @initiator close 5
  • /tp @initiator -28 63 399
commented

Thank you very much, I'm going to put it to the test

commented

It works correctly, I will be waiting for the multi dialogue :3

commented

The interactions work perfect, now you ask: can you edit the NPC dialog with a command? because when they close the dialogue it could change their message

You can do data modify, it is all stored in the data.