Unit Design - Unit Propery sheet - Spec unit actions

Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by Stratego (dev) »

new items

Code: Select all

        ATTACK_COUNTER_QUARTERED_AGAINST_ME , //counterattack against unit having this spec is additionally halved
        ATTACK_NO_COUNTER_AGAINST_ME,         //when unit has it there is no counterattack againt him
User avatar
makazuwr32
Posts: 7830
Joined: Tue Oct 17, 2017 9:29 am
Location: Moscow, Russia

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by makazuwr32 »

Basically no counter against me works same as 100% dodge counter, right?
makazuwr32 wrote: Mon Sep 16, 2019 7:54 amWhen you ask to change something argument why...
Put some numbers, compare to what other races have and so on...
© by Makazuwr32™.
AoF Dev Co-Leader
Image
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by Stratego (dev) »

yes and no - this can not be decreased with any effect that can decrease dodge counter value.
User avatar
makazuwr32
Posts: 7830
Joined: Tue Oct 17, 2017 9:29 am
Location: Moscow, Russia

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by makazuwr32 »

I see. Anyway good to have another variant of no counter.

Maybe we can use it for some ridicilously agile unit...
makazuwr32 wrote: Mon Sep 16, 2019 7:54 amWhen you ask to change something argument why...
Put some numbers, compare to what other races have and so on...
© by Makazuwr32™.
AoF Dev Co-Leader
Image
User avatar
Badnorth
Posts: 4121
Joined: Mon Apr 20, 2020 2:22 pm

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by Badnorth »

Can we have a spec action for Hostile neutrals to just make them stand still and be hostile once the player's unit comes to their line of sight?
For newcomers, click here for discord links. Hopefully they aren't expired.
User avatar
Badnorth
Posts: 4121
Joined: Mon Apr 20, 2020 2:22 pm

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by Badnorth »

E.g. Making them not move a single tile but once an enemy unit is in their line of sight it will begin targeting it.
For newcomers, click here for discord links. Hopefully they aren't expired.
User avatar
Maxbirykov2004
Posts: 1022
Joined: Mon Mar 30, 2020 12:50 pm
Location: Belarus

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by Maxbirykov2004 »

Sam question as bad north (pirates should be aggressive)
User avatar
Badnorth
Posts: 4121
Joined: Mon Apr 20, 2020 2:22 pm

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by Badnorth »

Is there a spec for neutrals that can make a unit auto cast abilities? They don't seem to use abilities in-game.
For newcomers, click here for discord links. Hopefully they aren't expired.
User avatar
makazuwr32
Posts: 7830
Joined: Tue Oct 17, 2017 9:29 am
Location: Moscow, Russia

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by makazuwr32 »

Nope there is none yet.
makazuwr32 wrote: Mon Sep 16, 2019 7:54 amWhen you ask to change something argument why...
Put some numbers, compare to what other races have and so on...
© by Makazuwr32™.
AoF Dev Co-Leader
Image
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by Stratego (dev) »

please try keeping these modders loouinge topics - i mean short question to me about last i made is ok - that i answer - all other requests/discussion please open topic in other sections - thanks!
User avatar
makazuwr32
Posts: 7830
Joined: Tue Oct 17, 2017 9:29 am
Location: Moscow, Russia

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by makazuwr32 »

@Stratego (dev)

Question:
I have unit with specicically set counter action (first strike, double counter or some else) and i am debuffing it with effect that gives it "NO_COUNTER" (temporary, after vanishing or dispel it should vanish and unit must regain its previous counter action). How it will work on unit? Will unit still be able to counter attack or not?

If it will work some weird way than i am asking to make NO_COUNTER to get max priority and thus making unit unable to counter attack. When effect will vanish, all previous counter actions will work as normal.
makazuwr32 wrote: Mon Sep 16, 2019 7:54 amWhen you ask to change something argument why...
Put some numbers, compare to what other races have and so on...
© by Makazuwr32™.
AoF Dev Co-Leader
Image
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by Stratego (dev) »

new spec option:

Code: Select all

IS_BLOCKING_TERRAIN_AFFECTS,  // this unit (a carrier) will not let units inside to get the terrain effect-affects from terrains (property changing effects except movement/steppability, that is still uses the isCarrierRemovesTerrainDrawbacks)
User avatar
makazuwr32
Posts: 7830
Joined: Tue Oct 17, 2017 9:29 am
Location: Moscow, Russia

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by makazuwr32 »

Stratego (dev) wrote: Fri Dec 06, 2019 6:21 pm

Code: Select all

		
        ATTACK_COUNTER_NO_BONUS, //No bonuses counter ( unit doesn't deal any bonus damage in counters - it's bonuses work only offensively - one of the options for various offensive oriented units)
This spec unit action does not working properly:
Lancers in aof all have this but they still do proper damage on counter to knight type cavalry.
makazuwr32 wrote: Mon Sep 16, 2019 7:54 amWhen you ask to change something argument why...
Put some numbers, compare to what other races have and so on...
© by Makazuwr32™.
AoF Dev Co-Leader
Image
User avatar
makazuwr32
Posts: 7830
Joined: Tue Oct 17, 2017 9:29 am
Location: Moscow, Russia

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by makazuwr32 »

makazuwr32 wrote: Sun Aug 15, 2021 10:16 am
Stratego (dev) wrote: Fri Dec 06, 2019 6:21 pm

Code: Select all

		
        ATTACK_COUNTER_NO_BONUS, //No bonuses counter ( unit doesn't deal any bonus damage in counters - it's bonuses work only offensively - one of the options for various offensive oriented units)
This spec unit action does not working properly:
Lancers in aof all have this but they still do proper damage on counter to knight type cavalry.
@Stratego (dev)
makazuwr32 wrote: Mon Sep 16, 2019 7:54 amWhen you ask to change something argument why...
Put some numbers, compare to what other races have and so on...
© by Makazuwr32™.
AoF Dev Co-Leader
Image
User avatar
Endru1241
Posts: 2717
Joined: Fri Sep 11, 2015 8:43 am
Location: Poland

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by Endru1241 »

I checked and it works just fine in AoS.
Age of Strategy design leader
User avatar
Hyuhjhih
Posts: 1301
Joined: Sat Sep 19, 2020 4:22 am
Location: Earth, (the part of blue ball and is named India for some reasons)

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by Hyuhjhih »

Fine in AoC too 😉
LIE = Love Is Eternal.

Design leader of the variants Age of Gods and Age Of Civilization, and live heartedly contributing to AoS.

AoC discord server is up AoC
User avatar
makazuwr32
Posts: 7830
Joined: Tue Oct 17, 2017 9:29 am
Location: Moscow, Russia

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by makazuwr32 »

Stratego (dev) wrote: Thu Dec 26, 2019 8:15 pm ATTACK_COUNTER_DOUBLE, //if unit gets attacked it can double counter damage on attacker (defensive units like a ww2 bomber can counter well its attacking fighters)
Can you add similar trait but that will work only "if bonus"? So damage is doubled on counter ONLY if attacker is in bonus list of defender.
makazuwr32 wrote: Sun Aug 15, 2021 10:16 am
Stratego (dev) wrote: Fri Dec 06, 2019 6:21 pm

Code: Select all

		
        ATTACK_COUNTER_NO_BONUS, //No bonuses counter ( unit doesn't deal any bonus damage in counters - it's bonuses work only offensively - one of the options for various offensive oriented units)
This spec unit action does not working properly:
Lancers in aof all have this but they still do proper damage on counter to knight type cavalry.
Savra checked aos and there are close to no units with this trait.
So this issue is still open.

@Stratego (dev).
makazuwr32 wrote: Mon Sep 16, 2019 7:54 amWhen you ask to change something argument why...
Put some numbers, compare to what other races have and so on...
© by Makazuwr32™.
AoF Dev Co-Leader
Image
User avatar
Endru1241
Posts: 2717
Joined: Fri Sep 11, 2015 8:43 am
Location: Poland

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by Endru1241 »

makazuwr32 wrote: Fri Aug 20, 2021 5:01 am
makazuwr32 wrote: Sun Aug 15, 2021 10:16 am
Stratego (dev) wrote: Fri Dec 06, 2019 6:21 pm

Code: Select all

		
        ATTACK_COUNTER_NO_BONUS, //No bonuses counter ( unit doesn't deal any bonus damage in counters - it's bonuses work only offensively - one of the options for various offensive oriented units)
This spec unit action does not working properly:
Lancers in aof all have this but they still do proper damage on counter to knight type cavalry.
Savra checked aos and there are close to no units with this trait.
So this issue is still open.

@Stratego (dev).
What does it matter if there is 5 or 30 units?
If in one variant something works and doesn't in another then either only in this variant code something is wrong and all is needed is comparison or something in jsons is colliding with this spec.
It probably doesn't collide, as I have checked the only main difference and tried adding attack not ranged spec to AoS lancer, but it wouldn't make counter bonus start working.
But that is something that should have been checked and noted here.
Age of Strategy design leader
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by Stratego (dev) »

new:
IS_INATTACKABLE_BY_AI, //AI logic will not attack this unit (nor the autoattack of player units)
User avatar
makazuwr32
Posts: 7830
Joined: Tue Oct 17, 2017 9:29 am
Location: Moscow, Russia

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by makazuwr32 »

Stratego (dev) wrote: Mon Sep 06, 2021 2:58 pm new:
IS_INATTACKABLE_BY_AI, //AI logic will not attack this unit (nor the autoattack of player units)
Even if this unit is on path of ai?
makazuwr32 wrote: Mon Sep 16, 2019 7:54 amWhen you ask to change something argument why...
Put some numbers, compare to what other races have and so on...
© by Makazuwr32™.
AoF Dev Co-Leader
Image
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by Stratego (dev) »

Yes. Like it were inattackable
User avatar
makazuwr32
Posts: 7830
Joined: Tue Oct 17, 2017 9:29 am
Location: Moscow, Russia

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by makazuwr32 »

That actually may become a problem.
We need to think carefully to what units we can give that.

Side question:
If unit is capturable and inattackable by ai it can be captured in this case by ai?
For example ruined fortress or ruined castle in aof.
makazuwr32 wrote: Mon Sep 16, 2019 7:54 amWhen you ask to change something argument why...
Put some numbers, compare to what other races have and so on...
© by Makazuwr32™.
AoF Dev Co-Leader
Image
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by Stratego (dev) »

lol, removed:
IS_INATTACKABLE_BY_AI, //AI logic will not attack this unit (nor the autoattack of player units)


as seemed unusasble in this form.
User avatar
makazuwr32
Posts: 7830
Joined: Tue Oct 17, 2017 9:29 am
Location: Moscow, Russia

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by makazuwr32 »

ATTACK_COUNTER_NO_BONUS, //No bonuses counter ( unit doesn't deal any bonus damage in counters - it's bonuses work only offensively - one of the options for various offensive oriented units)
This option seems to not working properly because in aof lancers who have this trait still do damage on counter with bonus.
makazuwr32 wrote: Mon Sep 16, 2019 7:54 amWhen you ask to change something argument why...
Put some numbers, compare to what other races have and so on...
© by Makazuwr32™.
AoF Dev Co-Leader
Image
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by Stratego (dev) »

please be more specific:
- which lancer unit
- against which other unit
- and in which game? :)
User avatar
Endru1241
Posts: 2717
Joined: Fri Sep 11, 2015 8:43 am
Location: Poland

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by Endru1241 »

Stratego (dev) wrote: Wed Dec 01, 2021 3:25 pm please be more specific:
- which lancer unit
- against which other unit
- and in which game? :)
It's AoF.
E.g. human lancers.
But it doesn't work for all, that have this spec as far as I know.

I checked myself the differences in json and they are very similar - it seems - spec is just not working for AoF.
It does work for AoS perfectly.
The only major difference I have already written few posts ago.
Age of Strategy design leader
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by Stratego (dev) »

if it works in AOS it should work on AOF too.
i will compare the jsons too maybe i see something.
User avatar
makazuwr32
Posts: 7830
Joined: Tue Oct 17, 2017 9:29 am
Location: Moscow, Russia

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by makazuwr32 »

It might be related to the fact that currently aof has some differences from aos engine-wise:
For example in aof unit with bonus deals on counter full damage against bonus target.
makazuwr32 wrote: Mon Sep 16, 2019 7:54 amWhen you ask to change something argument why...
Put some numbers, compare to what other races have and so on...
© by Makazuwr32™.
AoF Dev Co-Leader
Image
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by Stratego (dev) »

there is no difference in code - maybe a switch? - i go check.
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - Unit Propery sheet - Spec unit actions

Post by Stratego (dev) »

awesome! you are right!
called boolean IS_BONUS_NEGLECTS_EACH_OTHER and only in AOF it is set to true!

based on this i will have a fix on this lancer thing soon!


thanks!
Post Reply

Return to “Unit Design”