Unit Design - unit property sheet

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

Re: Unit Design - unit property sheet

Post by Stratego (dev) »

you can not mod it without grant.
email me

ps: and yes, wrong topic
Stratego (dev)
Site Admin
Posts: 15734
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - unit property sheet

Post by Stratego (dev) »

2 options in hasSpecunitActions:
STEALTH_FORCES_STEP_ON, // unit can not go tru it, it will stop on it, destroying stealth unit (for land/sea mines)
STEALTH_FORCES_STEP_BLOCKED, // unit can not go tru it, it will stop right before it, not destroying stealth unit (for submarines)
User avatar
makazuwr32
Posts: 7830
Joined: Tue Oct 17, 2017 9:29 am
Location: Moscow, Russia

Re: Unit Design - unit property sheet

Post by makazuwr32 »

So if unit with STEALTH_FORCES_STEP_ON on way of movement of enemy than enemy will stop exactly on unit's tile regardless of speed?
Also another question - is this working as well for air units?

And i hope that both new properties are availible for aos and aof as well (especially for aof because i want for some units submarine way).
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: 15734
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - unit property sheet

Post by Stratego (dev) »

makazuwr32 wrote: Fri Jan 18, 2019 12:50 pm So if unit with STEALTH_FORCES_STEP_ON on way of movement of enemy than enemy will stop exactly on unit's tile regardless of speed?
yes, it will stop and in case of mines will get damaged
makazuwr32 wrote: Fri Jan 18, 2019 12:50 pm Also another question - is this working as well for air units?
if u set "can_be_flown_tru" on the mine, and air unit has "can_fly" than it will not stop on it.
makazuwr32 wrote: Fri Jan 18, 2019 12:50 pm And i hope that both new properties are availible for aos and aof as well (especially for aof because i want for some units submarine way).
sure
User avatar
makazuwr32
Posts: 7830
Joined: Tue Oct 17, 2017 9:29 am
Location: Moscow, Russia

Re: Unit Design - unit property sheet

Post by makazuwr32 »

That are good news.
Thanks for new opportunity.
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
General Brave
Posts: 4662
Joined: Thu Oct 19, 2017 3:12 am
Location: The Four Point Military Academy.

Re: Unit Design - unit property sheet

Post by General Brave »

This will do nicely.
Wise, Might, Loyalty. Forever stands Warfell.
User avatar
Tankhead
Posts: 1838
Joined: Fri May 18, 2018 6:46 am
Location: United states, Texas

Re: Unit Design - unit property sheet

Post by Tankhead »

Is front page updated Dev?
I use this more often than I thought
"The smallest pebble was once the biggest stone, the biggest stone was once bigger"
Stratego (dev)
Site Admin
Posts: 15734
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - unit property sheet

Post by Stratego (dev) »

you mean first post of this thread?
yes
User avatar
General Brave
Posts: 4662
Joined: Thu Oct 19, 2017 3:12 am
Location: The Four Point Military Academy.

Re: Unit Design - unit property sheet

Post by General Brave »

I wonder what else to use.
Wise, Might, Loyalty. Forever stands Warfell.
Stratego (dev)
Site Admin
Posts: 15734
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - unit property sheet

Post by Stratego (dev) »

new "Arrow type action": EXPLOSION - when a stealth unit is stepped on and explodes/destroyed (eg. landmine in AOW)
User avatar
General Brave
Posts: 4662
Joined: Thu Oct 19, 2017 3:12 am
Location: The Four Point Military Academy.

Re: Unit Design - unit property sheet

Post by General Brave »

Can we have a transformation two.
Wise, Might, Loyalty. Forever stands Warfell.
Stratego (dev)
Site Admin
Posts: 15734
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - unit property sheet

Post by Stratego (dev) »

?
User avatar
General Brave
Posts: 4662
Joined: Thu Oct 19, 2017 3:12 am
Location: The Four Point Military Academy.

Re: Unit Design - unit property sheet

Post by General Brave »

A second transformation, instead of cycling and also it would be needed for newer units.
Wise, Might, Loyalty. Forever stands Warfell.
User avatar
General Brave
Posts: 4662
Joined: Thu Oct 19, 2017 3:12 am
Location: The Four Point Military Academy.

Re: Unit Design - unit property sheet

Post by General Brave »

Also I have a lot more needed suggestions, one is it possible to make a factory only work with sped up production units instead of turn.
Wise, Might, Loyalty. Forever stands Warfell.
Stratego (dev)
Site Admin
Posts: 15734
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - unit property sheet

Post by Stratego (dev) »

please make new opics in the suggestions section for these - also write there samples of units that needs these.
thanks
User avatar
General Brave
Posts: 4662
Joined: Thu Oct 19, 2017 3:12 am
Location: The Four Point Military Academy.

Re: Unit Design - unit property sheet

Post by General Brave »

Where do I suggest that?
Wise, Might, Loyalty. Forever stands Warfell.
Stratego (dev)
Site Admin
Posts: 15734
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - unit property sheet

Post by Stratego (dev) »

suggesions / others

or u can make the specific unit toics that would use that and write there.
Stratego (dev)
Site Admin
Posts: 15734
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - unit property sheet

Post by Stratego (dev) »

new specunitaction:
ATTACK_RANGE_DODGED //set this if the attack is not arrow type (eg. throwing axe) but you want to use ranged dodge to deflect it.
User avatar
General Brave
Posts: 4662
Joined: Thu Oct 19, 2017 3:12 am
Location: The Four Point Military Academy.

Re: Unit Design - unit property sheet

Post by General Brave »

Can it work the other way around or not necessary.
Wise, Might, Loyalty. Forever stands Warfell.
Stratego (dev)
Site Admin
Posts: 15734
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - unit property sheet

Post by Stratego (dev) »

what do u mean?
Stratego (dev)
Site Admin
Posts: 15734
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - unit property sheet

Post by Stratego (dev) »

new specunitaction:
CAN_HIT_FLYING, // if set the unit can attack and hit flying as it were "arrowed" in AOS/AOF, if not set it can hit only 1 hit.
Stratego (dev)
Site Admin
Posts: 15734
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - unit property sheet

Post by Stratego (dev) »

new property:
rangeAttackMin = 0; //if set than the minimal range it can attacks (eg. a catapult can not attack to adjacent units if set to 2 or more)
User avatar
godOfKings
Posts: 3302
Joined: Fri Sep 22, 2017 4:50 pm

Re: Unit Design - unit property sheet

Post by godOfKings »

Nice, but if catapult moves into a wagon, and wagon moves into a tc/tower then this drawback will b nullified

On the other hand, catapult won't b able to atk melee units from inside tower

Wat will b the case inside castle since castle covers 6 tiles at melee range?
There is no place for false kings here, only those who proves themselves to b the true kings of legend, or serves under me

For I watch over this world looking for those worthy to become kings, and on the way get rid of the fakes and rule over the fools
Stratego (dev)
Site Admin
Posts: 15734
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - unit property sheet

Post by Stratego (dev) »

i made it as on checking minimal range mega buildings are calculated with their "farest" tile, so it will be able to attack unit by the castle if minimum range is set to eg. 2.

please try it, also a regression test is newuired as i could ruin current ranged weapon logics by mistake.
Stratego (dev)
Site Admin
Posts: 15734
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - unit property sheet

Post by Stratego (dev) »

new specunitaction:
ATTACK_MELEE_DODGED, //set this if the attacked is not melee type (eg. archer) but you want to use melee dodge to deflect it.
Stratego (dev)
Site Admin
Posts: 15734
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - unit property sheet

Post by Stratego (dev) »

new specunitaction:
ATTACK_NOT_RANGED, //eg. pierce melee weapons: if set than the attacktypearrow|attacktypeburningrock units will be considered close combat units that piercing or normal armor deflected.

obsolete (deleted) specunitactions
ATTACK_RANGE_DODGED //set this if the attacked is not arrow type (eg. throwing axe) but you want to use ranged dodge to deflect it.
ATTACK_MELEE_DODGED, //set this if the attacked is not melee type (eg. archer) but you want to use melee dodge to deflect it.
Stratego (dev)
Site Admin
Posts: 15734
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - unit property sheet

Post by Stratego (dev) »

new specunitaction:
CAN_BE_PASSED_BY_ENEMY, //if a unit can not "block" enemy ever (like a plane should not block ground units and other planes in movement.
Stratego (dev)
Site Admin
Posts: 15734
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - unit property sheet

Post by Stratego (dev) »

new attribute:
powerRangePowerDrop = 0; // float 0.2 means 20%: every step of 1..powerRange the damage will decrease by this percent starting from powerRangePenaltyPercent

lso this changed:
private int powerRangePenaltyPercent = 0; // percentage eg. 80 meas 80%: on which % of damage level the decresing of damage starts, decrease with powerRangePowerDrop
Stratego (dev)
Site Admin
Posts: 15734
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - unit property sheet

Post by Stratego (dev) »

new specunitaction flag:
NO_LOOK_FOR_HEAL, //means will not stop attacking when injured/damaged to look for heal/mend possiblity (like suicide units like demolition ship or petardier)
User avatar
makazuwr32
Posts: 7830
Joined: Tue Oct 17, 2017 9:29 am
Location: Moscow, Russia

Re: Unit Design - unit property sheet

Post by makazuwr32 »

This one is more for ai, 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
Post Reply

Return to “Unit Design”