Is there a way to link a dialog to a unit research? I am trying to create a sort of custom production tab for my map, and I want to link the progress of a unit construction or research with a progress bar.
Is this better suited for dialogs or leaderboards?
This isn't a progress bar but it is a start to what you're trying to accomplish and the best I'm willing to do since it's 4:30am.
Ill try to add more and get it to update in the morning.
Events
Unit - Any Unit research progress is Started
Actions
Dialog - Create a Modal dialog of size (500, 400) at (0, 0) relative to Center of screen
Dialog - Show (Last created dialog) for (All players)
Dialog - Create a label for dialog (Last created dialog) with the dimensions (300, 50) anchored to Top Left with an offset of (50, 50) with the text ((Name of (Unit type of (Triggering unit))) + ("'s research will complete in " + (Text((Integer((Remaining for (Triggering unit) training queue slot 1))) seconds) using Total Minutes / Seconds (m:ss) format))) color set to White text writeout set to False with a writeout duration of 0.0
Dialog - Show (Last created dialog item) for (All players)
I don't have the editor right infront of me, but im sure its do-able just like you can like unit stats to a progress bar. You'll have to create a dialog item; theres an option that allows you to choose which type of item. The use the action to set dialog state to current value and it'll probably be something alongs the line of unit, production, any unit in production. I'll see if i can have a look latter if you still can't get it.
Rollback Post to RevisionRollBack
When I want your opinion...I'll give it to you!
To post a comment, please login or register a new account.
Is there a way to link a dialog to a unit research? I am trying to create a sort of custom production tab for my map, and I want to link the progress of a unit construction or research with a progress bar.
Is this better suited for dialogs or leaderboards?
Thanks for any help!
@rtschutter: Go
This isn't a progress bar but it is a start to what you're trying to accomplish and the best I'm willing to do since it's 4:30am. Ill try to add more and get it to update in the morning.
Events
Unit - Any Unit research progress is Started
Actions
Dialog - Create a Modal dialog of size (500, 400) at (0, 0) relative to Center of screen
Dialog - Show (Last created dialog) for (All players)
Dialog - Create a label for dialog (Last created dialog) with the dimensions (300, 50) anchored to Top Left with an offset of (50, 50) with the text ((Name of (Unit type of (Triggering unit))) + ("'s research will complete in " + (Text((Integer((Remaining for (Triggering unit) training queue slot 1))) seconds) using Total Minutes / Seconds (m:ss) format))) color set to White text writeout set to False with a writeout duration of 0.0
Dialog - Show (Last created dialog item) for (All players)
I don't have the editor right infront of me, but im sure its do-able just like you can like unit stats to a progress bar. You'll have to create a dialog item; theres an option that allows you to choose which type of item. The use the action to set dialog state to current value and it'll probably be something alongs the line of unit, production, any unit in production. I'll see if i can have a look latter if you still can't get it.