but also i want to do it via dialog box one that can give you a choice between 3+ terran units... like marine marauder medic for starters... a dialog box with 6 slots... i intend to use them.
I assume you know how to create a dialog box through script? Here's the pseudocode. Hope it's enough for you to figure it out.
You would need to declare a struct that stores each of the buttons and the units that it will create.
Create a trigger that will catch dialog button clicked events, lets call it tSelectHero
Upon creation of the dialog and it's buttons, store each of the buttons in a different index of the struct and
add the TriggerDialogButtonClicked event to each of the buttons to invoke tSelectHero.
At tSelectHero, do a search through the struct for the index of DialogItemLastUsed (I think, can't remember syntax)
Use the index to callback the unit and create the unit with the unit creation function.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
but also i want to do it via dialog box one that can give you a choice between 3+ terran units... like marine marauder medic for starters... a dialog box with 6 slots... i intend to use them.
I assume you know how to create a dialog box through script? Here's the pseudocode. Hope it's enough for you to figure it out.
add the TriggerDialogButtonClicked event to each of the buttons to invoke tSelectHero.