Page 1 of 1
Engine change Q - neutral units movement
Posted: Sat Oct 30, 2021 6:51 pm
by Stratego (dev)
i just received a note that regardless of an animal or other neutral unit actual speed, the AI only walks 1 tile per turn.
does anyone have anything against neutral AI unit movement being the speed of the unit speed itself? (actually a random between 1 and max speed)
so eg:
- a deer currently moves only 1 per turn but after change it can move up to 4 tiles per turn (in aos its speed is set to be 4)
Re: Engine change Q - neutral units movement
Posted: Sat Oct 30, 2021 6:58 pm
by Midonik
Seems like a good change
Re: Engine change Q - neutral units movement
Posted: Sat Oct 30, 2021 9:07 pm
by makazuwr32
Good for me.
But i would ask to add current behaviour as option (spec_unit_action).
There are few neutrals for whom i would prefer to keep current movement behaviour.
Re: Engine change Q - neutral units movement
Posted: Sat Oct 30, 2021 9:43 pm
by Stratego (dev)
then set them movement 1.
or i dont understand what u mean.
Re: Engine change Q - neutral units movement
Posted: Sun Oct 31, 2021 4:20 am
by makazuwr32
I can't set for them movement 1.
It is too low.
Re: Engine change Q - neutral units movement
Posted: Sun Oct 31, 2021 6:59 am
by Stratego (dev)
But now they move only that amount by ai, so as they were set to 1 by code... I dont understand the problem... You said you do not want some units change, if i modify and we set those to 1 will result current behaviour
Re: Engine change Q - neutral units movement
Posted: Sun Oct 31, 2021 2:03 pm
by SirPat
How about all of the neutral wild animals have their real movement and all neutral human unuts walk 1 tile. So u could see wild bears and etc roaming around the map. I mean who wouldnt want to be attacked by a wild bear?
Re: Engine change Q - neutral units movement
Posted: Sun Oct 31, 2021 5:56 pm
by Endru1241
I see absolutely no reason why would any unit be limited in movement, when their parameters would allow more tiles.
If some weird behaviour like that would be desired, then it should be by spec, so that it could be granted by triggers to all units.
Re: Engine change Q - neutral units movement
Posted: Sun Oct 31, 2021 6:36 pm
by makazuwr32
That is exactly what i am asking — spec unit action that gives for neutral unit walking speed 1 if it does not meet some special conditions (for example if enemy is within its sight range).
Re: Engine change Q - neutral units movement
Posted: Sun Oct 31, 2021 7:19 pm
by Stratego (dev)
there is no reason for specunit action, at least i dont see, we can set the unit to be slower,
but please tell me examples and reasons why so maybe i see why is that needed - thanks!
Re: Engine change Q - neutral units movement
Posted: Sun Oct 31, 2021 8:16 pm
by makazuwr32
For example we have wandering slow mindless zombie who walks around with speed 1 right until it sences brains and starts to walk with its full speed towards food.
Or something similar with hostile neutral units.
Just a reminder that they have speed higher than 1 (one hostile neutral mounted unit has speed 6) but normally they either stand still or walk mindlessly around very slowly... Until they find prey.
Re: Engine change Q - neutral units movement
Posted: Sun Oct 31, 2021 9:54 pm
by Stratego (dev)
this is a very special thing, not sure it is to be implemented (a multi speed neutral unit - we do not have that currently)
neutral unit should have one type of speed generally, can be 1 or more but only one of that.
so here we not plan to introduce multi speed neutral units, only normal single speed units, as currently we have single speed units (with fixed 1 movementrange currently), that can be changed to be the movementrange of the neutral unit setting (1 or more if needed)
Re: Engine change Q - neutral units movement
Posted: Mon Nov 01, 2021 5:48 am
by makazuwr32
But that is current behaviour of neutral hostile units.
Right now they wander around for 1 tile up until they see the prey. When they see the prey within their sight range they use their full speed to get to enemy.
Can't we set this "random 1 tile movement for neutrals" as spec_unit_action that is overridden by "gaia_hostile" spec_unit_action when it sees the prey?
Re: Engine change Q - neutral units movement
Posted: Mon Nov 01, 2021 8:51 am
by Stratego (dev)
Right now they wander around for 1 tile up until they see the prey. When they see the prey within their sight range they use their full speed to get to enemy.
really? i did not know
i dont plan to puttin too many specactions.
but maybe a "one_tile_wandering" vould do - but i dont like specs that include any "number" in it.
maybe i drop this topic
