This is something a bit beyond my scope of understanding but I'm looking to see if there's a way to add this on to the map.yaml, or if it's too complex a hack:
https://github.com/OpenRA/OpenRA/issues/12042
I'd love to test this feature after the next release to see if there's any balance implications with it. If not it could serve as a nice polish for the paratroopers.
[RA] Add 1-rank to paratroopers - map hack
- Graion Dilach
- Posts: 277
- Joined: Fri May 15, 2015 5:57 pm
Works, thanks. I still need to define the rank number for the cloned unit but can't find the trait.
Code: Select all
Rules:
E1R1
Inherits: E1
RenderSprites:
Image: E1
ProducibleWithLevel:
Prerequisites: 0
E3R1
Inherits: E3
RenderSprites:
Image: E3
ProducibleWithLevel:
Prerequisites: 0
AFLD:
ParatroopersPower@paratroopers:
DropItems: E1R1,E1R1,E1R1,E3R1,E3R1
- Graion Dilach
- Posts: 277
- Joined: Fri May 15, 2015 5:57 pm
Was tired, dammit, when I wrote that. 0 should have been null aka empty. >_> but it needs to be defined since the fallback would've been inherited and thereby would be barracks.infiltrated IIRC (Maybe it'd be more proper if it would require the appropriate techlevel prereq).
It also have an InitialLevels property where you can specify the basic ranks.
It also have an InitialLevels property where you can specify the basic ranks.
Code: Select all
ProducibleWithLevel:
Prerequisites: techlevel.infonly
Anyway, you probably also want to make those extra actors unbuildable:
Code: Select all
Buildable:
Prerequisites: ~disabled
InitialLevels defaults to "1". So we shouldn't need to explicitly define it.Graion Dilach wrote: ↑ It also have an InitialLevels property where you can specify the basic ranks.
Works!!! Thanks a lot for your help guys.
Code: Select all
Rules:
E1:
Selectable:
Class: E1
E3:
Selectable:
Class: E3
E1R1:
Inherits: E1
RenderSprites:
Image: E1
ProducibleWithLevel:
Prerequisites: techlevel.infonly
InitialLevels: 1
Buildable:
Prerequisites: ~disabled
E3R1:
Inherits: E3
RenderSprites:
Image: E3
ProducibleWithLevel:
Prerequisites: techlevel.infonly
InitialLevels: 1
Buildable:
Prerequisites: ~disabled
AFLD:
ParatroopersPower@paratroopers:
DropItems: E1R1,E1R1,E1R1,E3R1,E3R1