MarkusBordihn / BOs-Easy-NPC

Create easily NPC for your world or for your mod.
Other
19 stars 7 forks source link

[FAQ] Spawn NPC thru out the "Lore" #165

Open xiHinox opened 5 months ago

xiHinox commented 5 months ago

Hello dear Easy NPC Devs/Community,

I am currently working on a RPG lore concept where your NPCs play a significant role, appearing at various points throughout different chapters. Ideally, this would unfold parallel to the lore progression, seamlessly integrating with the narrative. I wanted to spawn these NPC's or wanted to let them appear automatically as players advance through the story/when a new world is created (that the NPCs spawn automaticley even if a new World is created - like in dawncraft).

I'm curious to know if such a setup is feasible, and if it is, I'd like to hear your insights on how it could be implemented. Any guidance or suggestions you could provide would be greatly appreciated!

Best regards, Hinox

MarkusBordihn commented 5 months ago

Please confirm if I understand your use-case correctly.

Things which came to my mind.

If you want to place the NPC at specific placed and you have access to the map, you can use structures with an NPC Spawner. This allows you to define a structure pool and spawn them together with the structure, even if the structure is only a green field or so. See: https://github.com/MarkusBordihn/BOs-Easy-NPC/wiki/Spawner

Alternative you can use the import command, which works with command blocks and normal scripts like: https://github.com/MarkusBordihn/BOs-Easy-NPC/wiki/Import

Hidding NPCs for specific players is not implemented yet, but will be done very soon. This allows you to hide the NPC for specific players but make them visible for others.

xiHinox commented 5 months ago

Please confirm if I understand your use-case correctly.

  • The NPCs should spawn automatically and on random places like normal mobs ?
  • The NPCs should be only visible for player with a specific state (multiplayer) ?
  • Configuration of the NPC should be done outside of the world ?

Things which came to my mind.

If you want to place the NPC at specific placed and you have access to the map, you can use structures with an NPC Spawner. This allows you to define a structure pool and spawn them together with the structure, even if the structure is only a green field or so. See: https://github.com/MarkusBordihn/BOs-Easy-NPC/wiki/Spawner

Alternative you can use the import command, which works with command blocks and normal scripts like: https://github.com/MarkusBordihn/BOs-Easy-NPC/wiki/Import

Hidding NPCs for specific players is not implemented yet, but will be done very soon. This allows you to hide the NPC for specific players but make them visible for others.

Hey and thank you, for your answer!

Alright, let me give you a detailed example of my plan:

I'm planning a modpack with a complex questline, for which I'll be using the FTB Quests Mod. My aim is to enhance atmosphere by using the Easy NPC mod to provide a richer experience, allowing players to interact with the world, particularly with your NPCs, within the lore. Various NPCs with different dialogues, etc., should automatically spawn after completing missions, possibly triggered by a command executed by FTB Quests or something like that (could be an mission item as well, where the Play gets and "!" on the Item, when a new dialogue would be ready (like in THE END: REIMAGINED - marketplace mod where the Player got such an item, that spawns an NPC that gives him Quests)). Players can then engage in dialogue with these NPCs through pre-designed dialogues or other interactive options (like Special Trades). after the player finnished the next mission the old NPC (of the old mission) should despawn or update itself, so there arent 100 of them in one world (here i thought about, that the NPC could standardly stay in a Village, when there is no other mission active) This system should seamlessly function across different worlds without the need for additional setup when generating a new world (for example: when sb starts the Modpack and wants to play, he could do it without importing any files firstly). Additionally, I've been considering creating a custom mod that would spawn players on a predetermined island, where the main village, central to the lore, is located. Upon world generation, players would automatically spawn on this island, which would remain consistent across different "New world generations", while the surrounding terrain would be randomly generated.

However, since I lack the expertise to implement this myself and don't know how it would function, it remains more of a concept at this stage.

To come back to your points: "The NPCs should spawn automatically and on random places like normal mobs ?" -> automatically, yes. But not like other Mobs, so i got 100 of them, this should be a unique charakter thru out the lore

"The NPCs should be only visible for player with a specific state (multiplayer) ?" -> Would be a thing, but for example in Multyplayer it would be cool to have like one NPC for everybody staying the "main village". Further thru out the missions he can spawn individually and "private"

"Configuration of the NPC should be done outside of the world ?" -> There should be no config for the "normal player" for those NPCs of the lore. I would somehow set them up and after that, they should be and not changeable part of the Game/Lore

I hope you can follow my plans and maaaaaybe got an idea how to make it work. :o

Cheers, Hinox

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 3 days.