ID:902005
 
Keywords: alert, box, dialog, help, image, picture
Code:


Alright, so, according to my friend, I'm making a BYOND game with an "overly in-depth" story. Well, I sort of am and for the storyline, characters are going to be talking to your character. And I was wondering about a few things:

1) I want to dialog to pop up at the player (which I can do), but I also wanted a picture of the character to accompany the words said by the character and the player's choices. For example, if you have words appear in an alert box and then have choices appear afterwards, is it possible to have a picture appear, as well?

2) Also, would that be the best way? Would it be easier to have the NPC's words/picture appear in the large, black text box?

Either way, I'm not so sure on how to do #2, either. I'm looking for opinions and some help. Thanks guys.


HUDs are probably your best option here in many ways.

With the addition of maptext, this is actually quite easy.

As for a picture, if you assign an image/icon to a variable that every mob has and attach that same image/icon to the icon variable of a screen object, you could put their image on the client's screen.

mob/var/face_image = 'face.dmi'

obj/face_hud
screen_loc = "SOUTHWEST"
layer = FLY_LAYER
New(mob/owner, client/output_to)
..()
icon = owner.face_image
output_to.screen += src