limit building + increasing max. stock of units

  • Thread starter Thread starter Psycho13
  • Start date Start date
P

Psycho13

Guest
Is it possible to limt a building so it can only be build like say one time, for all player ?

Code:
Player - Limit training of Armory to 1 for (Owner of (Triggering unit))

can I use that trigger and put it in "Map initialization" ?

---------------------------------------------------------
::Second::
---------------------------------------------------------​
Is it possible to increase the max. stock of a unit with a trigger ?

I currently have set the stock max. of a unit that is being sold in a shop to 10 and I want to increase it when you upgrade the shop.

Is it possible so yes, how.. ?
 
1.
Already answered.

2.
There is "Neutral building - add unit" that allows to set a stock maximum.
You may have to remove the available ones before though.
 
Code:
Upgr 1
    Events
        Unit - A unit Finishes an upgrade
    Conditions
        (Unit-type of (Triggering unit)) Equal to Mercenaries Camp
    Actions
        Neutral Building - Limit (Triggering unit) to 20 unit slots

does this do the trick ?
the units sold by mercenaries camp are default stock max 10 (all)
now I wanna change it to 20....

does that work ? or do I have to use another trigger ?
plz correct me if I am wrong and plz tell me what to do then...

Code:
Player - Limit training of Armory to 1 for (Owner of (Triggering unit))
this trigger didn't work...

I want all players to be only able to make 1 armory (its a building)
 
so how can I change the stock maximum of a unit with a trigger.

and the limit of the building didn't work see above post it contains a new addon..

no one got an answer ?? :confused:
 
well in the object editor theres an option that says maxium stock or sumtin....
 
> Player - Limit training of Armory to 1 for (Owner of (Triggering unit))

For this, I guess, that, in your trigger, there is no "triggering unit".
There isn't one in "Map Initialization"...

Just do it explicitely for "Player 1", repeat for "Player 2"... all players.



And, reread post #2.
 
I testet it but it didn't work... in the object editor I said to the unit that his max stocking is 10...

now I made 2 units mercenary camp lvl 2 and lvl 3...
if the mercenary camp is upgraded (to lvl 2)
the soldier (mercenary) stock is set to 20 and maximum is set to 20 also...
for lvl 3 it is set to 30...

now the lvl 2 and 3 mercenary camp doesn't have the unit in his sold/trained units... I thought this way I don't have to remove the units...

so I say to add the units to the camp with the trigger where I also can say what the stock options are but then the units still have the stock settings from the unit it self... do I have to remove the stock settings from the units ? set it to 0 ?

I wanna have 10 buildings lvl 1 mercenary camp to lvl 10 and you start with all units in it with a stock of 10 (max 10) and every upg. gives 10 extra in stock (and 10 extra in max stock) so you end with 100 in stock and max 100...

is this possible... ? give me some more help plz..

--------------------------

the limit building works but not for buildings that you can upg. is there a way to limit them ?
 
Try making ten different versions of the unit that's sold, each one with a higher maximum stock, and give each version of the camp a different one.
 
thats the problem... I don't wanna do that and can not enlse you tell me how to make a units stock higher then 32...
 
bump...

still need some help with the units stock trigger...
or is this just not possible..

please help me find the answer
I can not find an answer and don't know how to get a units stock above 32... if that is even possible..
if it is possible tell me how then I won't need the trigger.
or is it both not possible...

please give an answer I can use like the trigger to be used or the setting to be changed or so... :(
 
Hmm. Here's an idea. I know that you can stock 100 items at a shop at time. Try making a dummy item based off of a tome or something, and when a player buys the item, give them a unit.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    Happy Sunday!
  • The Helper The Helper:
    I lovc that I can post webp and X links now! :)
  • The Helper The Helper:
    Happy Thursday!
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper
  • Stephen Stephen:
    Oh no - please don't lose the Nuon content
  • The Helper The Helper:
    Someone email AtariAge and see if they want me to transfer the forum data over to it
  • Ghan Ghan:
    Could probably keep NUON stuff around here if we wanted.
  • Ghan Ghan:
    Hmm what to do about the World Editor site though?
  • Stephen Stephen:
    I'd rather personally just own a backup of the Nuon data than see it go to AtariAge honestly. If it gets enshittified as per usual, or if some of the "regular" Jaguar folks get there, it's not gonna be fun
  • The Helper The Helper:
    There will be a github of the forum data so the NUON Forum Data I guess would be available there
  • The Helper The Helper:
    World Editor is technically Ryoko stuff not mine you guys can keep that I am not in that even

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top