Page 1 of 1

Adding upgrade mechanics to RA

Posted: Wed May 10, 2017 4:18 pm
by kyrylo
What if it was possible to build the Technology Centre:
Image

Once built, this building would allow upgrading units/defence structures/whatnot.

For example, there's an endless debate whether MiG's should have AA or not. What if it was an upgrade that you could purchase?

Tanks don't have enough armour? Well, you could purchase an armour upgrade!

Fake structures don't provide build radius? Buy an upgrade!

SAM sites have poor radius? Upgrade!

This way each faction can be even more unique, with their own upgrades.

Anything you wish can be implemented. Please don't focus on my examples because they're only examples. I want to discuss this feature as a RA game mechanic and how it could potentially improve the gameplay.

P.S. I think it should be possible to implement it as a modded map because d2k already has upgrades, so the engine supports this kind of mechanic.

Posted: Wed May 10, 2017 4:58 pm
by noobmapmaker
Yeah I'd love this, but it diverges to much from the original in my opinion.

But I'd love it! Excess money? Pump it into research. And you can go for all kinds of things.. level 3 rifle infantry with triple health. Add weaponry, superawesome last upgrade bonus... Anything.

Hard to balance, but it would broaden the tree of strategic possibilities immensely.

*Should it be insta-buy or timed research?

Posted: Wed May 10, 2017 5:55 pm
by avalach21
noobmapmaker wrote: Yeah I'd love this, but it diverges to much from the original in my opinion.

But I'd love it! Excess money? Pump it into research. And you can go for all kinds of things.. level 3 rifle infantry with triple health. Add weaponry, superawesome last upgrade bonus... Anything.

Hard to balance, but it would broaden the tree of strategic possibilities immensely.

*Should it be insta-buy or timed research?
I agree this sounds like it could be fun, but ultimately it will deviate too far from the original source to be included in the official mod. Also would be a gigantic can of worms to balance.

Posted: Wed May 10, 2017 6:20 pm
by ZxGanon
Upgrades are very easy to implement.
Crystallized Doom has that mechanic.

Hell we even have an upgrade that exchanges current weapons (like Cannons from Tanks) with Lazers.

Posted: Wed May 10, 2017 7:02 pm
by Materianer
Nice i like this idea, make it provided with shuffle random upgrade please :D

Posted: Wed May 10, 2017 7:10 pm
by OMnom
I was contemplating testing this out in my playest, but i scrapped it because i thought it wouldn't get past the scrutiny. Specifically, i was going to place certain upgrades in the defense tab that would be buildable after certain tech levels.

Posted: Wed May 10, 2017 8:26 pm
by SirCake
It's not so easy as you think. The engine has to support the upgrade (whatever it does).

Generally you can do it with any "Trait" that has the RequiresCondition Trait. Meaning, before the condition is fullfilled the upg is deactivated, then it is activated. Also RequiresPrerequisite is similar, but that usualy checks wheter a specific unit is on the map or not instead of a condition.
(You give traits to actors, which are the units on the map)

Not all traits implement this, at all. For example I had to go at great lenghts to implement a simple silo upgrade in three outosts that gives bonus money (like derrick), because the engine was not supporting a Condition on that trait. I was using map rules and lua scripts for this.

So before you throw out an idea go check on the traits if you find anything that has RequiresCondition or anything related that has RequiresCondition or if you have an idea how to do a workaround (possibly using lua). If you can't, your idea can't be done. Easy as that.

From the top of my mind those have RequiresCondition:
All weapons
Stealth
CloakDetect
all powers (via prerequisite)

Posted: Wed May 10, 2017 9:28 pm
by Graion Dilach
You can also do what MustaphaTR is doing - picking up C# just enough to learn how to shift traits to be conditional and then send in patches for exactly that.

Also, even your logic is wrong. For example Attack* traits have the RequiresCondition, so you'd assume they could be upgradable, but having two Attack* traits will crash the game on WithSpriteTurret (the trait all turreted units in RA use) and so on.

Posted: Thu May 11, 2017 9:18 am
by SirCake
Well, that thing with the turreted is an exception to the general rule, right? (Which is Condition or Prerequisites) And it does only further limit the options you have to do upgrades.

Sure, anyone can learn C#, but noone can include custom C# in any map without the devs consent, waaaay in the future with the next releaase. I don't think thats what people wan't to hear if they want to do a quick balance check with their new cool ideas.
Mustapha on the other hand is aiming for a full conversion mod (here).

You can do a lot with only traits in the map rules .yaml allready. And that is what most map makers understand and want.