Page 1 of 1

Corpse with sword problem IMPLEMENTED

Posted: Sat Jan 12, 2019 11:45 pm
by Harrow in forum mode
Whenever I kill sword melee units I only get a normal corpse not a corpse with sword like ever.

Re: Corpse with sword problem

Posted: Sun Jan 13, 2019 1:06 am
by Savra
I agree with this, they should drop corpse with sword.

Re: Corpse with sword problem

Posted: Sun Jan 13, 2019 11:28 am
by Stratego (dev)
normal corpse will get swordman when revived?
if so than it works fine, only it would look better to have a sworded corpse.
do we have sworded corpse image already? is there any sword unit that already drops sworded corpse?

Re: Corpse with sword problem

Posted: Sun Jan 13, 2019 5:04 pm
by Savra
We have a corpse with sword but we don't have any units who drop it.

Re: Corpse with sword problem

Posted: Mon Jan 14, 2019 6:52 am
by Stratego (dev)
ok, i made it with "by category way" the not undead and u_melee_infantry units will drop sworded corpse by default (uos 20)

but we can owerwrite/set it individually in UNIT jsons like this:
"trnTransformOnDie": "TO_CORPSE_SWORDMAN",

these are set in transforms.json:
{"name": "TO_CORPSE_HUMAN", "units": ["UNIT_DEAD_HUMAN1"], "needs": ["TO_GAIA", "DROP_ID"]},
{"name": "TO_CORPSE_MOUNTED", "units": ["UNIT_DEAD_MOUNTED1"], "needs": ["TO_GAIA", "DROP_ID"]},
{"name": "TO_CORPSE_SPEARMAN", "units": ["UNIT_DEAD_SPEARMAN1"], "needs": ["TO_GAIA", "DROP_ID"]},
{"name": "TO_CORPSE_SWORDMAN", "units": ["UNIT_DEAD_SWORDMAN1"], "needs": ["TO_GAIA", "DROP_ID"]},
{"name": "TO_CORPSE_ARCHER", "units": ["UNIT_DEAD_ARCHER1"], "needs": ["TO_GAIA", "DROP_ID"]},
{"name": "TO_CORPSE_SHIP", "units": ["UNIT_DEAD_SHIP"], "needs": ["TO_GAIA", "DROP_ID"]},

Re: Corpse with sword problem IMPLEMENTED

Posted: Mon Jan 14, 2019 7:36 am
by Stratego (dev)
also i set that spectral rider and death knight will drop corpse (as exceptions in undead race)