Removing units from shop

13est

New Member
Reaction score
5
I am using an global uppgrade via "unit is sold"

But I want that unit to be removed from the shop after but it doesn't work.
Code:
Build Frigate West
    Events
        Unit - A unit Sells a unit
    Conditions
        (Unit-type of (Sold unit)) Equal to Frigate
        (Unit-type of (Selling unit)) Equal to Castle
        (Owner of (Selling unit)) Equal to Player 1 (Red)
    Actions
        Neutral Building - Remove Frigate from (Selling unit)
        Unit - Remove (Sold unit) from the game
        Trigger - Run West Frigate <gen> (checking conditions)
 

Komaqtion

You can change this now in User CP.
Reaction score
469
For those "Neutral Buildning" actions to work, you have to have added the unit to the building via a trigger too :D Which is why it doesn't work :(

And you could try ludnice's advice, although, if i remember correctly, this only works for trained units, like footman trained from the barracks :S Not entirely sure though :S
 

13est

New Member
Reaction score
5
Tried ludnicas advice before allready. But it only seem to work on "trained units" and not sold units by mercenary.

But I se no problem in adding the unit to the shop via trigger ;) so I will try that.


EDIT: Thanks for the fast support, it worked.
 
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