Hi, I'm new here :D I'm working on a map and trying to use a drop down 'legacy' option with on/off values in the creation screen. I think I have the on/off values figured out, but that is as far as I can go it alone. The goal is that when legacy is 'on' that certain units and abilities are allowed for all players of the game, and if it is off for them to be grayed out or removed. (grayed out is preferred atm, especially if it is easier)
I understand that I need to use triggers for this and what I have so far is:
Local Variables
gamemode = No Attribute ID <Attribute ID (Game)>
Actions
Variable - Set gamemode = Game Mode
General - Switch (Actions) depending on gamemode
Cases
General - If (Legacy)
Actions
Player Group - For each player Player in (All players) do (Actions)
Not sure if I'm on the right path. Help is sooo appreciated.... pls/thx
The one that I would suggest to use is adding a requirement like "Not available in legacy mode" orso, and add this requirement to all locations where it is needed.
Then make this requirement check if an upgrade or research is active (name this upgrade/research thing 'legacy mode disabled' orso), and at the trigger you stated above give the players the upgrade if legacy mode is disabled.
This is at least one of the methods, there are no doubt more methods available to do this.
Yeah... Idk how to do this... I really have no idea what I'm doing when it comes to using game mode / trigger stuff.
As in, I'll need a bit more explanation to what you said, if you can pls.
Hi, I'm new here :D I'm working on a map and trying to use a drop down 'legacy' option with on/off values in the creation screen. I think I have the on/off values figured out, but that is as far as I can go it alone. The goal is that when legacy is 'on' that certain units and abilities are allowed for all players of the game, and if it is off for them to be grayed out or removed. (grayed out is preferred atm, especially if it is easier)
I understand that I need to use triggers for this and what I have so far is:
Local Variables
gamemode = No Attribute ID <Attribute ID (Game)>
Actions
Variable - Set gamemode = Game Mode
General - Switch (Actions) depending on gamemode
Cases
General - If (Legacy)
Actions
Player Group - For each player Player in (All players) do (Actions)
Not sure if I'm on the right path. Help is sooo appreciated.... pls/thx
@zjat: Go
there are probably several options for this.
The one that I would suggest to use is adding a requirement like "Not available in legacy mode" orso, and add this requirement to all locations where it is needed. Then make this requirement check if an upgrade or research is active (name this upgrade/research thing 'legacy mode disabled' orso), and at the trigger you stated above give the players the upgrade if legacy mode is disabled.
This is at least one of the methods, there are no doubt more methods available to do this.
@Helral: Go
Yeah... Idk how to do this... I really have no idea what I'm doing when it comes to using game mode / trigger stuff. As in, I'll need a bit more explanation to what you said, if you can pls.