So lets say I have some random units scattered around a map. When the player gets close to one of these units, he/she has a choice to attack or not. A dialog box pops up and the "Attack" option is there. I have that all set up. Say he/she encounters 2 hydralisks. Once "Attack" is clicked, I have another box pop up, which is all set up (just the box). I would like these hydralisks to appear in this box in order to be clicked on by the attacker so he/she can decide which one he/she would want to attack. I hope that makes sense. If not, let me know.
Does anyone know how I would put these hydralisks into this dialog box?
EDIT: And I don't mean the actual hydralisks or a picture or anything. Just their names.
EDIT #2: I'm still messing with it. I am trying different variable methods right now...trying to convert a unit to a string and such. Not too much luck but I'm bound to figure this thing out sooner or later. :P
"Set Dialog Item Text" using the function "Name of Unit Type"
You could get an actual picture of the Hydralisks into your buttons by using "Set Dialog Item Image" and then using the "wireframe" for the unit type.
Thanks ..uhh.. boron. :) I have the units stored now by whatever means and the dialogs are popping up...now I am just trying to get the unit names to appear in the boxes. I'll keep working with it.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
So lets say I have some random units scattered around a map. When the player gets close to one of these units, he/she has a choice to attack or not. A dialog box pops up and the "Attack" option is there. I have that all set up. Say he/she encounters 2 hydralisks. Once "Attack" is clicked, I have another box pop up, which is all set up (just the box). I would like these hydralisks to appear in this box in order to be clicked on by the attacker so he/she can decide which one he/she would want to attack. I hope that makes sense. If not, let me know.
Does anyone know how I would put these hydralisks into this dialog box?
EDIT: And I don't mean the actual hydralisks or a picture or anything. Just their names.
EDIT #2: I'm still messing with it. I am trying different variable methods right now...trying to convert a unit to a string and such. Not too much luck but I'm bound to figure this thing out sooner or later. :P
"Set Dialog Item Text" using the function "Name of Unit Type"
You could get an actual picture of the Hydralisks into your buttons by using "Set Dialog Item Image" and then using the "wireframe" for the unit type.
Fun Fact: Strings != Text
Thanks ..uhh.. boron. :) I have the units stored now by whatever means and the dialogs are popping up...now I am just trying to get the unit names to appear in the boxes. I'll keep working with it.