If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

how do I make a unit unavailable as a reward?

hello,

I have a custom unit that when created gets destroyed and starts a script. Works great, but just got awarded a bunch of these units in a mission reward so bypassed the script. Is there a way without lowering the price, to make the unit unavailable as a mission reward?

Re: how do I make a unit unavailable as a reward?

Try giving them the general_unit attribute. It seems to have worked for me with a unit that is only ever spawned. Bear in mind that it will create a general when recruited, though killing this unit will also kill him. From memory you won't get death animations, sounds or messages for him.

Alternatively, it is possible that the mercenary_unit (?) attribute prevents the mission reward thing too. I haven't tried that myself.

Re: how do I make a unit unavailable as a reward?

Just make sure you put that unit below the one that's the regular general's bodyguard, otherwise all spawned generals will receive the custom unit as bodyguards, as the game only uses the first unit with the general_unit attribute in each faction's roster.