Posted: Tue Nov 29, 2022 11:49 am Post subject:
PowersUpToLevel= specific slot AND first available?
Subject description: Combining -1 and positive integer behaviour for different slots?
I had an idea, wrote it down extremely satisfied with myself, and realised it might not work. Before I scratch it out, I want to check that there's not something I've missed.
I want to have a building that uses the TibSun upgrade system. I want it to have three (N>1) upgrade slots that take power plants. I also want it to have exactly 1 upgrade slot that takes one of several weapons upgrades.
I believe this cannot be done?
To have four upgrade slots I'd need to set Upgrades=4. If the power plants have PowersUpToLevel=-1 they can be put in any of the four slots, including the weapon slot. If the power plants have PowersUpToLevel=1 or another positive number, they can only be put in that specific slot, and not any of the three power-plant slots.
If the weapon upgrades have PowersUpToLevel=-1 (and graphics that sensibly allow them to fit in a power plant slot), I could potentially slap down more than one weapon upgrade on the building, with all the confusion that entails.
Is there any way around this? Aside from making three different power plants with distinct PowersUpToLevel= values.
(The closest thing I've thought of as a workaround is to give the power plants PowersUpToLevel=-1 and the weapons PowersUpToLevel=4. This would allow either four power plants or three power plants and a weapon, but it would have to make graphical sense for the weapon to sit in a slot that can also take a power plant.) QUICK_EDIT
I dont think its possible to achieve what you are trying to do.
PowersUpToLevel= is only used to specify the location of the artwork used by the upgrade & isn't used to limit the placing of the upgrade to a specific slot.
So for example if you used PowersUpToLevel=4 then that upgrade would use the PowerUp4LocXX=, PowerUp4LocYY= & PowerUp4LocZZ= tags for its artwork. You would still be able to place it on the building four times, just that all of them would be displayed in the same location on the building.
You would have to use BuildLimit= on the upgrades to make sure that only one weapon & three power upgrades could be placed on the building. _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum