Hi again! Sorry, but this is probably going to be my most complicated request.
I’m trying to create some NPCs that move between specific passages and can move to different passages when the player takes a major action. To define a major action, something like talking to a different NPC, getting something to eat, using the bathroom, or studying. For something like this, I’d imagine I’d have to implement some sort of time system so that each action takes up a specific amount of time, which is also something I’m not really sure how to add in.
Just to clarify, I haven’t made any actual NPCs yet either since I don’t know how to. I’ve seen HiEv’s older replies on how to make NPCs and how to get them to move, but I’m still pretty confused on how it works.
At the moment, player movement is done by using buttons to go to different passages like so:
<span id = "buttons1"> <<button "Kitchen">><<replace #buttons1>> <<goto [[Kitchen]]>> <</replace>><</button>> <<button "Bathroom">><<replace #buttons1>> <<goto [[Bathroom]]>> <</replace>><</button>> <<button "Upstairs">><<replace #buttons1>> <<goto [[Upstairs]]>> <</replace>><</button>> </span>
I want that in each location, the player can have unique interactions with the NPC, like different dialogue choices or action choices, but the options are still there if the player returns to that location with that same NPC in that location at the same time. I’d also like something to track each NPC’s current location inside of those buttons, with something like
Upstairs - $name1 is here or Upstairs - $name1 and $name2 is here
Basically, what I want are four things:
- How to create NPCs
- How to create a routine where NPCs move to different passages based on the time and day
- How to track where NPCs are on button locations
- How to create a time and day system that determines when NPCs move
Sorry if that sounded confusing, but that’s about it for my request.