Limiting of 1 Single Upgrade Structure

Somatic

You can change this now in User CP.
Reaction score
84
I have a Building which is upgraded from another Structure. But I want to make it such that When this Building is Build, the Base Structure this Building is Upgraded from is not avabilar to be Constructed again.

Ill Briefly Explain this, My Base Structures Upgrades to the Super Weapon Base. Which can be Upgraded to 3 different Structures. And, My aim is to Make the Super weapon Base Impossible to be upgraded from the Base Structure, after you own either of the Super Weapon.

Any idea?
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
888
Something like this might work:

Code:
Not Available
    Events
        Unit - A unit Finishes an upgrade
    Conditions
        (Unit-type of (Triggering unit)) Equal to <Some Unit-Type>
    Actions
        Player - Make <Some Unit-Type> Unavailable for training/construction by (Owner of (Triggering unit))
 

elmstfreddie

The Finglonger
Reaction score
203
Naw that only works for building the unit. Not upgrading to.

Maybe if he already has one you could set the upgrade progress to 0%?
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
888
> Naw that only works for building the unit. Not upgrading to.

Tested and verified. Fires for upgrades. ;)
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
And, if your only structure is destroyed?


Player - Limit training / construction of <unit type> to 1 for Player 1
Repeat for all players, in some trigger with the event "map init".

And, to get this requirement to the new structure, add your new structure(s) to the base structure's "techtree - dependency equivalents".

That should do it. Without triggers.
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
888
> Player - Limit training / construction of <unit type> to 1 for Player 1

I'm not sure where you're going here. I though about that, but then when the building is upgraded, there won't be one of that unit-type, allowing you to build another base unit. How does using the Dependency Equivalent get around that?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> How does using the Dependency Equivalent get around that?

...

By telling the game that the base structure should still have some importance when changed to one of those...
Or the other way around, by telling the game that the new upgraded structure actually is equivalent to the previous base structure.
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
888
Oh, got it. The game thinks those structures are the same. At least, as far as the requirements go. :p
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top