Remove buildable unit from building - how?

gameshow

New Member
Reaction score
1
I have a building. it can train a unit. I want to be able to, using triggers, add and remove the ability to train this unit. How?

Right now the unit in question is a "techtree - units sold", not "techtree - units trained".
 

bugbear

New Member
Reaction score
3
Trigger:
  • Untitled Trigger 002
    • Events
      • Unit - A unit Sells a unit
    • Conditions
      • (Unit-type of (Sold unit)) Equal to Footman
    • Actions
      • Player - Make (Unit-type of (Sold unit)) Unavailable for training/construction by (Owner of (Sold unit))


That's a bare bones of the trigger you could use.
 

vypur85

Hibernate
Reaction score
803
Items in marketplace can only be removed via triggers if they are added through trigger in the first place. Meaning, you need to add the sold units through trigger in the beginning of the game, so that you're able to remove them later. To add/remove, check out these actions:

Code:
Neutral building - Add/Remove unit from/to marketplace...
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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