Upgrading ability

sensesxfailx

New Member
Reaction score
0
I am having trouble making a trigger. First of all my map is an AOS type map. I need a trigger that when you upgrade iron plating, your computer player also upgrades their units defense. I just need help being pointed in the right direction i am sure its something easy its just at the moment i am brain dead and cant think of a code that would do this easily. If you need more explanation the map Human Vs Orc does something like this but instead of it being a hero ability i want it to just be a regular upgrade that you can research from a building. If that is confusing just tell me ill try and explain it in a different way. Thanks.
 
Trigger:
  • Melee Initialization
    • Events
    • Conditions
    • Actions
      • Unit - Order (Some unit) to research Defend


Not going to go in depth right now but it has something to do with this.
 
I know it requires that but the problem is there's alot more to it then just that simple line of code. I'm not at my computer so I cannot write out the code I tried but if anyone else can try and help or think of a better way to upgrade the units I'm open to ideas thank you
 
I think this should work
Trigger:
  • upgrade trig
    • Events
      • Unit - A unit owned by Player 1 (Red) Finishes research
    • Conditions
      • (Researched tech-type) Equal to Iron Plating
    • Actions
      • Player - Set the current research level of Iron Plating to 1 for Player 2 (Blue)
 
I think this should work
Trigger:
  • upgrade trig
    • Events
      • Unit - A unit owned by Player 1 (Red) Finishes research
    • Conditions
      • (Researched tech-type) Equal to Iron Plating
    • Actions
      • Player - Set the current research level of Iron Plating to 1 for Player 2 (Blue)

Looks like this guy hit the nail on the head.

you could even go a bit more in-depth and set the level of research equal to the level of the skill you are researching. Currently i am at work, or I would try to work it out.
 
Alright another problem as occured. I need to upgrade the tech of every player but in the trigger raise the tech level of ability to # for player, there is no player group just player options. idk how to make it work for everyone.
Trigger:
  • Armor
    • Events
      • Unit - A unit Finishes research
    • Conditions
      • (Researched tech-type) Equal to Upgrade Armor
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Owner of (Researching unit)) is in Red_Force) Equal to True
        • Then - Actions
          • Player - Set the current research level of Upgrade Armor to (Research_lvl + 1) for (Triggering player)
          • Set Research_lvl = (Research_lvl + 1)
          • Game - Display to (All allies of Player 1 (Red)) the text: ((Name of (Owner of (Researching unit))) + Has Just upgraded your armor)
        • Else - Actions

Theres the trigger hope you guys can help me out
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • jonas jonas:
    we already have a wealth tax on our house, it's called a property tax. I'm talking about extending that to other income-generating assets like private equity, bonds and stocks.
  • jonas jonas:
    I agree that the effect of that would be to depress asset prices, but I think that's a good thing. Makes it easier for hard working young people to grow their retirement income
    +1
  • seph ir oth seph ir oth:
    Potential problem for a wealth tax for the US would be the ultra rich just offshoring assets in another country without a wealth tax. Those that would eat the wealth tax on, say, stocks, would be the middle class that puts money slowly into the market via the likes of funds.
  • seph ir oth seph ir oth:
    happy US election day btw!
  • Varine Varine:
    Oh election day
  • The Helper The Helper:
    Election day has come and gone now it is time to sit back and watch the liberals melt down. At least it should be peaceful around my house as my roommate is as trumper as you can get.
    +2
  • jonas jonas:
    curious what the next years will bring
  • jonas jonas:
    I think at least it's good that Trump has a solid lead in the popular vote
  • The Helper The Helper:
    It will depend on what happens with the house race. The Conservatives have the president and the senate, I believe the house majority is up too. With the conservatives stacked in the supreme court now would be the time they could really do something
  • The Helper The Helper:
    I just hope its not anything stupid like banning abortion nationally or doubling down on the border wall
  • jonas jonas:
    Well, the border wall at least doesn't really harm anyone. It's true that Trump only managed to add about new 80 miles to the 650 miles built by Obama and Bush, and that it didn't do much to reduce the number of illegal immigrants, but still, it's construction jobs and doesn't hurt anyone.
  • jonas jonas:
    One can of course argue whether the money is better spent somewhere else, like reducing taxes
  • jonas jonas:
    I'm more curious what Trump will do in foreign policy and how that will affect the US/European coalition, and the balance of power in europe and ME
  • The Helper The Helper:
    I am more of a fan of fixing the broken immigration laws and looking at protecting border with drone tech or some other way I mean I just think its ridiculous to build a great wall of mexico
    +2
  • Ghan Ghan:
    Trump's foreign policy was fantastic in his last term. More of that, please. Finish the Abraham Accords. Get Saudi in. Build the coalition against Iran.
    +1
  • Lord of Bourbon Lord of Bourbon:
    Just a friendly reminder to watch your sodium intake, too much can result in harmful effects
    +1
  • The Helper The Helper:
    Thank you for the health tip Lord of Bourbon!
  • The Helper The Helper:
    I hate to even say anything because it always seems to start again after I do it but the bots have been gone for like 3 days now. Looks like the AI scraping bots are onto better pastures, are done sucking us dry, or are taking a vactation :)
  • Lord of Bourbon Lord of Bourbon:
    The bots are probably mining salt else where right now, given that the mines have reopened.
  • The Helper The Helper:
    Got a user online that has like 10 different accounts dating back like 7 years and he is cycling through them. I have too much time on my hands LOL
    +1
  • The Helper The Helper:
    like half of them are banned with no notes why
  • The Helper The Helper:
    I made this the other day it was Awesome! Chicken Pot Pie Pasta - https://www.thehelper.net/threads/chicken-chicken-pot-pie-pasta.197065/
  • The Helper The Helper:
    New Thanksgiving Holiday Appetizer recipe Turking Stuffing Balls - https://www.thehelper.net/threads/appetizer-turkey-stuffing-balls.197078/

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top