how to add an upgrade to be searched on a building

Status
Not open for further replies.
Level 3
Joined
Oct 20, 2017
Messages
52
example: I can have one of the two units and each one has a different upgrade. I have a construction to do the research, but I wanted only one of the upgrades of the unit that I selected appears to be researched, that is, I wanted a trigger and added to such an upgrade that can be searched for that unit that I selected.
 
Level 10
Joined
Mar 26, 2017
Messages
376
You can toggle tech availability for a player using SetPlayerTechMaxAllowed.

Be reminded that the upgrades must be listed under 'Researches Available' for the building in the first place. From there on, a tech can be turned off at game start (and turned back on following the appropriate event).
 
Level 3
Joined
Oct 20, 2017
Messages
52
I would like a trigger to be added to an upgrade that can be searched in a building when I select /train a specific unit
 
Level 3
Joined
Oct 20, 2017
Messages
52
  • Unit - A unit Finishes training a unit
  • Player - Set the max research level of Iron Forged Swords to 1 for Player 1 (Red)
Thanks, it worked here ^^.
I used the following trigger:
(note: I did this test trigger)
  • No Upgrade
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player - Set the max research level of Iron Forged Swords to 0 for Player 1 (Red)
      • Player - Set the max research level of Iron Plating to 0 for Player 1 (Red)
      • Player - Set the max research level of Black Gunpowder to 0 for Player 1 (Red)
      • Player - Set the max research level of Studded Leather Armor to 0 for Player 1 (Red)
      • -------- Other players --------
  • Add Upgrade
    • Events
      • Unit - A unit Finishes training a unit
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Trained unit)) Equal to Footman
        • Then - Actions
          • Player - Limit training of Footman to 0 for (Triggering player)
          • Player - Limit training of Rifleman to 0 for (Triggering player)
          • Player - Set the max research level of Iron Forged Swords to 1 for (Triggering player)
          • Player - Set the max research level of Iron Plating to 1 for (Triggering player)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Trained unit)) Equal to Rifleman
            • Then - Actions
              • Player - Limit training of Footman to 0 for (Triggering player)
              • Player - Limit training of Rifleman to 0 for (Triggering player)
              • Player - Set the max research level of Black Gunpowder to 1 for (Triggering player)
              • Player - Set the max research level of Studded Leather Armor to 1 for (Triggering player)
            • Else - Actions
 

Attachments

  • Test No Upgrade.w3x
    16.7 KB · Views: 21
Status
Not open for further replies.
Top