remainingMovement - unit property sheet

Post Reply
User avatar
L4cus
Posts: 2358
Joined: Fri Jan 31, 2020 7:51 pm
Location: Perú

remainingMovement - unit property sheet

Post 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, ????
Extra ecclesiam nulla salus...
AOD, a new variant...
viewforum.php?f=230
User avatar
Endru1241
Posts: 2717
Joined: Fri Sep 11, 2015 8:43 am
Location: Poland

Re: Unit Design - unit property sheet

Post 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
Age of Strategy design leader
User avatar
L4cus
Posts: 2358
Joined: Fri Jan 31, 2020 7:51 pm
Location: Perú

Re: Unit Design - unit property sheet

Post by L4cus »

thanks!
any spec to set on the effect json? like "CHG_POWER_BY_ABILITY_MULTIPLY"
Extra ecclesiam nulla salus...
AOD, a new variant...
viewforum.php?f=230
User avatar
Endru1241
Posts: 2717
Joined: Fri Sep 11, 2015 8:43 am
Location: Poland

Re: Unit Design - unit property sheet

Post 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.
Age of Strategy design leader
Stratego (dev)
Site Admin
Posts: 15748
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - unit property sheet

Post by Stratego (dev) »

please discuss such questions in the asking topic insidde modders lounge.
User avatar
L4cus
Posts: 2358
Joined: Fri Jan 31, 2020 7:51 pm
Location: Perú

Re: Unit Design - unit property sheet

Post by L4cus »

thanks endru
will do, daniel!
Extra ecclesiam nulla salus...
AOD, a new variant...
viewforum.php?f=230
User avatar
Endru1241
Posts: 2717
Joined: Fri Sep 11, 2015 8:43 am
Location: Poland

Re: Unit Design - unit property sheet

Post 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.
Age of Strategy design leader
Post Reply

Return to “Ask questions here”