I’m beginning to create an RPG in BGE (specifically UPBGE) and I want to have NPCs scattered around. I have no idea where to start in creating them, other than creating the animations. Here are some of the things I’d like to do:
- Program a system in which you can click on an npc to talk to it (I’m sure you could do this with a Mouse sensor, a message actuator, and a Text object, but I’m not sure how to make a Text object show the message I want it to (obviously, it would be very inefficient to make text objects for every single message)
- Program a system in which if you click an npc when you’re a certain distance away, you will run after it to be able to talk to them (I’d imagine you could do this with a Near sensor, Mouse sensor, and Steering actuator)
- Program a system in which an npc will walk around randomly when not being interacted (I don’t have any idea how to implement this, other than guessing that states would be involved)
I’ve just started learning Python, so I hardly have any knowledge on how to use it. I would be able to implement these features using logic bricks (preferably). Any tips on implementing these would be greatly appreciated.