Problem description: Currently do not have a code, I have literally no idea on how to approach this. When I was younger every commercial game (pretty much) had a system like this prior to voice acting becoming the norm. What I want is to be able to come up to an NPC talk to them and boom a HUD appears with the NPCs text (may it be a generic text or their personal text) clicking or hitting a button to make it scroll down/end the conversation (I assume most of you know the idea) and so on. How would I go about this? (pictures for reference in case no one understands what I am talking about) |
So I need the hud for the box and the maptext definition (prior to it updating via the NPCs) on the same object or can I define them separate and mash them together? (Via making either 1 object or making 2 and calling them together o.o)
|
var What I came up with. Right away I separated the objs and texts however when the second one popped up and I pressed space but nothing happened. So then I tried a list, numbers are appearing and it doesn't switch on refresh. Require a little help :/ Using http://www.byond.com/developer/Forum_account/ HudGroups?tab=index |
var changed this and key_down(k) Resolved the issue without further help thank you regardless greatpirate. This is done if the byond admins want to lock it and what not |
You have some usr abuse in the code you posted. In a proc, you should never use usr.
|
A var to store what each npc says, defaulting to a generic greeting or w.e if they don't have anything to say, and a key_down() tracker. This is extremely simple to set up.