I'm trying to make a game where the player is a musician who's playing for people on a sidewalk, and I can't figure out how to repeatedly spawn random NPCs one at a time from the left and right ends of the sidewalk, nor to keep the process cycling after each NPC "leaves the map."
I want each NPC to have a chance at triggering a "battle" while passing by, though not necessarily by touching the player. After that, the NPC would keep walking until they leave the map, triggering the next random NPC, and so on. I also want to use a pool of NPCs that would trigger battles specific to who they are. (Ex: A Punk might trigger a battle with the "enemy" Punk.) The player will be staying in one spot as they pass by, too.
The idea is that you are waiting for each stranger to stop and engage with you. Each "battle" will actually be a performance for the individual, or possibly a group triggered by one person. Some people will just keep going, meaning they won't trigger a battle.
I'm super new at scripting and using plugins. I couldn't find a plugin, or combinations of plugins for that matter, that would allow me to do all of this. Maybe they're out there, or this isn't as hard to do myself as it's seemed so far, but I haven't been able to figure all this out. Please help!
Also, I hope this is the right part of the forum to post this. Sorry if it's not!
I want each NPC to have a chance at triggering a "battle" while passing by, though not necessarily by touching the player. After that, the NPC would keep walking until they leave the map, triggering the next random NPC, and so on. I also want to use a pool of NPCs that would trigger battles specific to who they are. (Ex: A Punk might trigger a battle with the "enemy" Punk.) The player will be staying in one spot as they pass by, too.
The idea is that you are waiting for each stranger to stop and engage with you. Each "battle" will actually be a performance for the individual, or possibly a group triggered by one person. Some people will just keep going, meaning they won't trigger a battle.
I'm super new at scripting and using plugins. I couldn't find a plugin, or combinations of plugins for that matter, that would allow me to do all of this. Maybe they're out there, or this isn't as hard to do myself as it's seemed so far, but I haven't been able to figure all this out. Please help!
Also, I hope this is the right part of the forum to post this. Sorry if it's not!