Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Sun Oct 13, 2024 11:32 am
All times are UTC + 0
PowersUpToLevel= specific slot AND first available?
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [3 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
MCV
Medic


Joined: 11 Jan 2007

PostPosted: 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?
Reply with quote  Mark this post and the followings unread

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.)

Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Tue Nov 29, 2022 1:02 pm    Post subject: Reply with quote  Mark this post and the followings unread

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.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
MCV
Medic


Joined: 11 Jan 2007

PostPosted: Tue Nov 29, 2022 1:19 pm    Post subject: Reply with quote  Mark this post and the followings unread

That makes total sense and I hate it. Thanks.

Back to the drawing board!

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
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


Powered by phpBB © phpBB Group

[ Time: 0.2740s ][ Queries: 11 (0.0271s) ][ Debug on ]