New Species Trait : Militaristic ?

For what's not in 'Top Priority Game Design'. Post your ideas, visions, suggestions for the game, rules, modifications, etc.

Moderator: Oberlus

Post Reply
Message
Author
User avatar
LienRag
Cosmic Dragon
Posts: 2146
Joined: Fri May 17, 2019 5:03 pm

New Species Trait : Militaristic ?

#1 Post by LienRag »

I don't know if it's possible with the code base, but could a new trait be "militaristic : ability to mobilize all the planet for war" ?
Militaristic species would get a +150 % bonus from "Protection" focus (very militaristic could get +200 %, extremely militaristic +300 %).
Obviously we could get "pacific" also who would get +75 % bonus only from "Protection" focus.

Ophiuchus
Programmer
Posts: 3433
Joined: Tue Sep 30, 2014 10:01 am
Location: Wall IV

Re: New Species Trait : Militaristic ?

#2 Post by Ophiuchus »

Technically possible.
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.

Look, ma... four combat bouts!

User avatar
Oberlus
Cosmic Dragon
Posts: 5714
Joined: Mon Apr 10, 2017 4:25 pm

Re: New Species Trait : Militaristic ?

#3 Post by Oberlus »

Those words (Militaristic, Pacifist) are somewhat reserved for species (moral) values.

If this is about Planetary Defenses, call it something more directly related to that.

User avatar
LienRag
Cosmic Dragon
Posts: 2146
Joined: Fri May 17, 2019 5:03 pm

Re: New Species Trait : Militaristic ?

#4 Post by LienRag »

Ophiuchus wrote: Wed Jul 15, 2020 8:19 am Technically possible.
How would one code that ?
And more specifically, would that be in a macro in the Species folder or in the focus macro ?

wobbly
Cosmic Dragon
Posts: 1873
Joined: Thu Oct 10, 2013 6:48 pm

Re: New Species Trait : Militaristic ?

#5 Post by wobbly »

I don't know the code very well but I'd probably start by looking at planet_defense.macros

Code: Select all

PROTECTION_FOCUS_DEFENSE
'''EffectsGroup
            scope = Source
            activation = And [
                Planet
                Focus type = "FOCUS_PROTECTION"
            ]
            stackinggroup = "FOCUS_PROTECTION_DEFENSE_STACK"
            accountinglabel = "FOCUS_PROTECTION_LABEL"
            priority = [[TARGET_AFTER_2ND_SCALING_PRIORITY]]
            effects = [
                SetMaxDefense value = Value * 2 accountinglabel = "FOCUS_PROTECTION_LABEL"
                SetTargetHappiness value = Value + 15
            ]
'''

Ophiuchus
Programmer
Posts: 3433
Joined: Tue Sep 30, 2014 10:01 am
Location: Wall IV

Re: New Species Trait : Militaristic ?

#6 Post by Ophiuchus »

LienRag wrote: Fri May 14, 2021 12:48 pm
Ophiuchus wrote: Wed Jul 15, 2020 8:19 am Technically possible.
How would one code that ?
And more specifically, would that be in a macro in the Species folder or in the focus macro ?
Either add a tag to the species and use that in the PROTECTION_FOCUS_DEFENSE or add it as new effect to the species (using a macro like its done for all that GOOD/../BAD stuff).
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.

Look, ma... four combat bouts!

Post Reply