Tried ludnicas advice before allready. But it only seem to work on "trained units" and not sold units by mercenary.
But I se no problem in adding the unit to the shop via trigger ;) so I will try that.
EDIT: Thanks for the fast support, it worked.
I am using an global uppgrade via "unit is sold"
But I want that unit to be removed from the shop after but it doesn't work.
Build Frigate West
Events
Unit - A unit Sells a unit
Conditions
(Unit-type of (Sold unit)) Equal to Frigate
(Unit-type of...
Give your hero a temporary aura.
Then periodicly check if units have that aura-buff, if they have, make them invulnerable. if not, make them vunlerable again.
Gotta go bed, and dont have editor open. Altough it should work I think. Maybe the hard thing is to track them and such in an easy...
Is this problem still there?
Try this:
instead of
Random integer number between 1 and 11
use (if you can find)
Math: random number
Then have random number between 1 and 11.