Daniel12321 / NPCs

MIT License
18 stars 13 forks source link

[FEATURE]"Have we met before" condition, Wait and Stop actions. #36

Open Bardr opened 7 years ago

Bardr commented 7 years ago

It would be great to use these functionalities. For example:

0: Condition: MetBefore Failed=>1 Met=>4
1: Message: Hello %player_name% ! I have a quest for you !
2: Delay: 15 ticks
3: Message: Bring me a good sword if you can !
4: Condition: Item sword Failed=> 9 Met=>5 Take: Enabled
5: Message: Great sword, come again tomorrow.
6: Wait: Time: 12H WaitMessage: See you tomorrow ! 
// now, this acts like an anchor, when player will come again and talk to a NPC,
// he will start from this moment,
// WaitMessage will be used when player will interact with NPC while he waits
7: Message: I have next quest for you.
// ... and so on
8: Message: I don't have more quests for you, thanks for helping !
// and when we want to stop, we just using Stop action, to prevent see 'helper messages'
8: Stop
9: Message: So do it and bring me one !

With disabled repeat we can make a mini quest story from NPC. This feature will bring plugin to the new level and allow to more complex interactions with NPC. If you don't understand me I can write pseudo code for this. Please let me know what do you think about this !

Eufranio commented 7 years ago

PixelBuilt-Quests can do quests.

Bardr commented 7 years ago

Yeah, I found your plugin after writing this... I will check your plugin when I will be home. Btw. Cooldown feature will be great in this plugin.