Page 2 of 5

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

Posted: Mon Apr 26, 2021 12:18 pm
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

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

Posted: Mon Apr 26, 2021 3:28 pm
by makazuwr32
Basically no counter against me works same as 100% dodge counter, right?

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

Posted: Mon Apr 26, 2021 6:23 pm
by Stratego (dev)
yes and no - this can not be decreased with any effect that can decrease dodge counter value.

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

Posted: Mon Apr 26, 2021 6:58 pm
by makazuwr32
I see. Anyway good to have another variant of no counter.

Maybe we can use it for some ridicilously agile unit...

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

Posted: Fri Apr 30, 2021 2:04 am
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?

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

Posted: Fri Apr 30, 2021 2:05 am
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.

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

Posted: Fri Apr 30, 2021 9:43 am
by Maxbirykov2004
Sam question as bad north (pirates should be aggressive)

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

Posted: Sat May 01, 2021 9:18 am
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.

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

Posted: Sat May 01, 2021 6:37 pm
by makazuwr32
Nope there is none yet.

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

Posted: Sat May 01, 2021 9:33 pm
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!

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

Posted: Fri May 14, 2021 6:10 am
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.

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

Posted: Wed Jun 23, 2021 11:04 am
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)

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

Posted: Sun Aug 15, 2021 10:16 am
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.

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

Posted: Sun Aug 15, 2021 3:53 pm
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)

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

Posted: Sun Aug 15, 2021 5:21 pm
by Endru1241
I checked and it works just fine in AoS.

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

Posted: Sun Aug 15, 2021 6:16 pm
by Hyuhjhih
Fine in AoC too 😉

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

Posted: Fri Aug 20, 2021 5:01 am
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).

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

Posted: Fri Aug 20, 2021 8:27 am
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.

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

Posted: Mon Sep 06, 2021 2:58 pm
by Stratego (dev)
new:
IS_INATTACKABLE_BY_AI, //AI logic will not attack this unit (nor the autoattack of player units)

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

Posted: Tue Sep 07, 2021 3:19 am
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?

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

Posted: Tue Sep 07, 2021 5:35 am
by Stratego (dev)
Yes. Like it were inattackable

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

Posted: Tue Sep 07, 2021 7:16 pm
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.

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

Posted: Tue Sep 07, 2021 7:45 pm
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.

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

Posted: Wed Dec 01, 2021 1:54 pm
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.

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

Posted: Wed Dec 01, 2021 3:25 pm
by Stratego (dev)
please be more specific:
- which lancer unit
- against which other unit
- and in which game? :)

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

Posted: Wed Dec 01, 2021 3:33 pm
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.

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

Posted: Wed Dec 01, 2021 3:47 pm
by Stratego (dev)
if it works in AOS it should work on AOF too.
i will compare the jsons too maybe i see something.

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

Posted: Wed Dec 01, 2021 8:03 pm
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.

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

Posted: Wed Dec 01, 2021 8:56 pm
by Stratego (dev)
there is no difference in code - maybe a switch? - i go check.

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

Posted: Wed Dec 01, 2021 9:04 pm
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!