Hi,
I'm writing this because I need a small help.
I would like to create a mod but I've a problem with dialogues and triggers.
Firstly, I would like to know how to set up dialog which starting be visible when you press a button inside barracks for example, this dialog will show tech tree with additional upgrades for all infantry. Anyone can tell me how to set this up? I've been seen many tutorials and videos on youtube and I cannot find an answer for this matter.
Secondly, How to change/replace a behavior from minerals field in all map for specific player, for example upgrade which changing harvest amount form 5 to 6.
Finally, I would like to set game attribute such as minerals capacity, for example when you choose from lobby option 2000 all minerals on the map will have 2000 harvestable minerals, not 1500. When I've try do this, and I've replace behavior, minerals capacity was set to 2000 but amount during harvest stay the same 2000.
1. I make an Ability effect-instant, button and barracks (I think) are ready. (picture included ''01'') Now I need to find the way how to create a specific dialog and trigger for show/hide when player press a button. (picture included ''02'')
2. Can I put this upgrade into a dialog later on?
3.When we creating game attribute (picture included ''game'') we can choose an option in lobby before we start the game, right? I would like to set up the ''mineral capacity'' (picture included ''mins'')depend on option chosen from game attribute. I did that before but when I've changed capacity and stats in behavior that amount been same at all time. At the beginning of a game I've check remaining minerals (was 2000) and during harvesting I've check again and all the time was 2000. Do you want to see the trigger for that how I've done this?
You have the right idea. Now for that trigger all you need to add is your dialog actions for showing/hiding it, use an if then else statement to see if it's being shown, if it is hide it, if not, show it. If you need help making the dialog for it, by all means ask. However, first look at our tutorials section and learn how they work and how to create a basic one. That way you can understand
Yes, you can. It will require conditions in the trigger to see if all the requirements for the upgrade are met, but yes.
You might want to create several different minerals field units with different capacities. (make sure actors are created for them). Then in the trigger where you change capacities you simply replace the units with the ones of the correct capacity.
3. I've create additional minerals units with different capacity. It's working when I'm test it on one mineral on the map, but I don't know how to set the trigger to replace all the same type of minerals even if I create a unit group. I've added image to show you how I trying to do it. Can anyone tell me what I'm doing wrong??
Update/20:12/ I find out what I've been doing wrong :) Solution on picture.
Hi, I'm writing this because I need a small help. I would like to create a mod but I've a problem with dialogues and triggers.
Firstly, I would like to know how to set up dialog which starting be visible when you press a button inside barracks for example, this dialog will show tech tree with additional upgrades for all infantry. Anyone can tell me how to set this up? I've been seen many tutorials and videos on youtube and I cannot find an answer for this matter.
Secondly, How to change/replace a behavior from minerals field in all map for specific player, for example upgrade which changing harvest amount form 5 to 6.
Finally, I would like to set game attribute such as minerals capacity, for example when you choose from lobby option 2000 all minerals on the map will have 2000 harvestable minerals, not 1500. When I've try do this, and I've replace behavior, minerals capacity was set to 2000 but amount during harvest stay the same 2000.
Please help:)
Try asking in Triggers. Ask for your question, your asking for a full tutorial on dialogs. i would go find one of the many tutorials.
@SoulTaker916: Go
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
1. I make an Ability effect-instant, button and barracks (I think) are ready. (picture included ''01'') Now I need to find the way how to create a specific dialog and trigger for show/hide when player press a button. (picture included ''02'')
2. Can I put this upgrade into a dialog later on?
3.When we creating game attribute (picture included ''game'') we can choose an option in lobby before we start the game, right? I would like to set up the ''mineral capacity'' (picture included ''mins'')depend on option chosen from game attribute. I did that before but when I've changed capacity and stats in behavior that amount been same at all time. At the beginning of a game I've check remaining minerals (was 2000) and during harvesting I've check again and all the time was 2000. Do you want to see the trigger for that how I've done this?
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
1. Watching and learning dialogs:D
2. Later on.
3. I've create additional minerals units with different capacity. It's working when I'm test it on one mineral on the map, but I don't know how to set the trigger to replace all the same type of minerals even if I create a unit group. I've added image to show you how I trying to do it. Can anyone tell me what I'm doing wrong??
Update/20:12/ I find out what I've been doing wrong :) Solution on picture.