Page 1 of 1

remainingMovement - unit property sheet

Posted: Fri Dec 31, 2021 2:51 am
by L4cus
Stratego (dev) wrote: Mon Nov 22, 2021 6:13 pm new line shown un unit stats:
remainingMovement //in this turn how many movements left (use only in EFFECT_AFFECT jsons! no in TECH or UNIT jsons).

this one only to be usedin EFFECT_AFFECT jsons! (not in techs or unit jsons)
how does the line go?
"trnRemainingMovement":3, ????

Re: Unit Design - unit property sheet

Posted: Fri Dec 31, 2021 2:59 am
by Endru1241
L4cus wrote: Fri Dec 31, 2021 2:51 am
Stratego (dev) wrote: Mon Nov 22, 2021 6:13 pm new line shown un unit stats:
remainingMovement //in this turn how many movements left (use only in EFFECT_AFFECT jsons! no in TECH or UNIT jsons).

this one only to be usedin EFFECT_AFFECT jsons! (not in techs or unit jsons)
how does the line go?
"trnRemainingMovement":3, ????
Nope. trn is for translated, changed input. Commonly used for objects, but there are some cases (in effect .json) for input of string names, when original field was integer id.
Here we have simple integer as a value, so just "remainingMovement":3

Re: Unit Design - unit property sheet

Posted: Fri Dec 31, 2021 12:18 pm
by L4cus
thanks!
any spec to set on the effect json? like "CHG_POWER_BY_ABILITY_MULTIPLY"

Re: Unit Design - unit property sheet

Posted: Fri Dec 31, 2021 12:32 pm
by Endru1241
Multiplication depends entirely on idea behind effect.

For this parameter the only thing that needs to be remembered is that it only affects immidate remaining movement points stored temporarily in memory only during the turn.

You cannot even affect enemies in normal way (as they would only move in their own turn, thus different pool).

Movement points are assigned, based on walkRange parameter on the start of the turn plus on walkRange change (with some exceptions).
So if you planned to give your unit movement bonus by effect with remainingMovement bonus and later affected unit with some walkRange boost (or decrease) it would probably loose it.


Planned usage of remainingMovement parameter is to be set in effectAffect that is given by e.g. trnActionUnitIDForCaster as instant decrease or increase of movement.

Re: Unit Design - unit property sheet

Posted: Fri Dec 31, 2021 12:55 pm
by Stratego (dev)
please discuss such questions in the asking topic insidde modders lounge.

Re: Unit Design - unit property sheet

Posted: Fri Dec 31, 2021 1:04 pm
by L4cus
thanks endru
will do, daniel!

Re: Unit Design - unit property sheet

Posted: Fri Dec 31, 2021 1:14 pm
by Endru1241
Stratego (dev) wrote: Fri Dec 31, 2021 12:55 pm please discuss such questions in the asking topic insidde modders lounge.
Sorry.
I split it up.