I've decided to "update" my map, and instead of using standard buildings to make units and research upgrades, such as in WC3, I am going to move on to dialog buttons. I understand how to make them and recall them (except what really bugs me is that I have to do the whole "Dialog - Any Dialog Item is used by Player 1 with event type Clicked" and I can't use "Any Player", so I have to do it for all players).
My question is this: I have a dialog button called "Upgrades". You click it and a box pops up with three icons, a gun, health, and a foot [damage, health, and movement speed]. I need to make the dialog button contain the price of the upgrade (I'm going to make an invisible unit that contains all of these upgrades that will be researching them for the players as they press the buttons). So in the dialog editor (text editor) I have the "assests/junk/junkpicture.ddt" and I want to add the cost of the upgrade, maybe using something like "getvaluecatalog<ability<RedHQ<DamageUpgrade<Cost"
I hope my request/question makes sense. I can't figure it out, so I have turned to you! Let me know if you come up with another workaround. Thanks for the assist.
Could you copy the text of the command from the editor please? I cant seem to find a way for it to accept anything other than a integer when selecting who did something to the dialog, thanks.
So I'll rephrase the question. I have a button with a picture of a gun on it. This button causes a building to research an upgrade (damage +1). I want to somehow add, onto this button, a price tag. I could just write in "25 Minerals", however, the cost of the upgrade increases per use.
I think this is where i might lose you again, i hope not, but I wanted to know if there is a way to get the cost of the upgrade into the button, the cost is dynamic/ever changing with each use. (Aka have the game recall the value of the ability and display it)
Ok i figured out a way to solve the "Dialog - Any Dialog Item is used by Player 1 with event type Clicked" problem. Just simply add "Dialog - Any Dialog Item is used by Player 2 with event type Clicked", "Dialog - Any Dialog Item is used by Player 3 with event type Clicked", and "Dialog - Any Dialog Item is used by Player 4 with event type Clicked" etc all in the same events thing and presto, haven't seen any problems with it yet.
Now as far as the upgrades displaying current cost goes.......I'm at your MERCY haha i have NO idea what the command to recall a integer value is.
The whole typing-the-catalog-lookup-into-the-string thing isn't going to work out. What you'll want to do is look up the catalog value, convert it to a string (via convert integer to string), and then add the strings together.
You'll probably want to do that just by saving it to a local variable of the correct data type; as for actually using the catalog functions, I'm not very experienced, but I'd guess it's something like "Catalog Field Value Get". Here's the API page for that function: Catalog Field Value Get.
Hi guys.
I've decided to "update" my map, and instead of using standard buildings to make units and research upgrades, such as in WC3, I am going to move on to dialog buttons. I understand how to make them and recall them (except what really bugs me is that I have to do the whole "Dialog - Any Dialog Item is used by Player 1 with event type Clicked" and I can't use "Any Player", so I have to do it for all players).
My question is this: I have a dialog button called "Upgrades". You click it and a box pops up with three icons, a gun, health, and a foot [damage, health, and movement speed]. I need to make the dialog button contain the price of the upgrade (I'm going to make an invisible unit that contains all of these upgrades that will be researching them for the players as they press the buttons). So in the dialog editor (text editor) I have the "assests/junk/junkpicture.ddt" and I want to add the cost of the upgrade, maybe using something like "getvaluecatalog<ability<RedHQ<DamageUpgrade<Cost"
I hope my request/question makes sense. I can't figure it out, so I have turned to you! Let me know if you come up with another workaround. Thanks for the assist.
-ViG
Im not at a computer with the editor, but i know theres a way to watch for any player, pressing any dialog button.
Bump? Anyone? I cant figure it out, but i know you guys can! : )
I didn't quiet understand your question, but what I know is that Any Player works fine in "Any Player uses Any Dialog Item".
@Pfaeff: Go
Could you copy the text of the command from the editor please? I cant seem to find a way for it to accept anything other than a integer when selecting who did something to the dialog, thanks.
So I'll rephrase the question. I have a button with a picture of a gun on it. This button causes a building to research an upgrade (damage +1). I want to somehow add, onto this button, a price tag. I could just write in "25 Minerals", however, the cost of the upgrade increases per use.
I think this is where i might lose you again, i hope not, but I wanted to know if there is a way to get the cost of the upgrade into the button, the cost is dynamic/ever changing with each use. (Aka have the game recall the value of the ability and display it)
Thanks.
I have made a picture to help describe my issue:
Ok i figured out a way to solve the "Dialog - Any Dialog Item is used by Player 1 with event type Clicked" problem. Just simply add "Dialog - Any Dialog Item is used by Player 2 with event type Clicked", "Dialog - Any Dialog Item is used by Player 3 with event type Clicked", and "Dialog - Any Dialog Item is used by Player 4 with event type Clicked" etc all in the same events thing and presto, haven't seen any problems with it yet.
Now as far as the upgrades displaying current cost goes.......I'm at your MERCY haha i have NO idea what the command to recall a integer value is.
The whole typing-the-catalog-lookup-into-the-string thing isn't going to work out. What you'll want to do is look up the catalog value, convert it to a string (via convert integer to string), and then add the strings together.
@VulfeSC: Go
Yes yes yes yes yes, Thank you. That's kinda what I was thinking.
Part 2: How exactly do I "look up the catalog value"
You'll probably want to do that just by saving it to a local variable of the correct data type; as for actually using the catalog functions, I'm not very experienced, but I'd guess it's something like "Catalog Field Value Get". Here's the API page for that function: Catalog Field Value Get.
@VulfeSC: Go
Alright I'll take a look at some other pages to do with catalog values till' i get the hang of what I'd need to do. Thanks for the help.