[Solved] Bear form for multiple targets

Status
Not open for further replies.
Level 2
Joined
Dec 15, 2019
Messages
11
Hello !

So, I am creating a map in which a player can assign roles (warrior, archer, mage etc) to villagers and to villagers who already have a role.
For example, the player could select some villagers and tell them to go to the barracks to become warriors. And then if later in the game he wants to have more archers, he just could select some warriors and tell them to go to another building in which they will become archers.

With some help from this forum, I managed to create the part in which a unit is transformed in another unit when it has reached the specific building.
But now I have a problem :

I used the bear form technic to dynamically transform the unit and it works all fine when a villager wants to become a warrior but it will not work if any other unit wants to become a warrior, because the spell targets only villagers.

yzou.png


I could create a spell for each roles (Archer to warrior, mage to warrior etc) but it's not very practical. I would have to create a new spell and edit all my events each time I create a new role.

Is there a way to create a spell that works like the bear form but that transforms any unit who casts it into another specific unit ?
 
Level 2
Joined
Dec 15, 2019
Messages
11
Hello !

Because when the unit is replaced, it is deselected and if another unit was attacking it, the order is cancelled (And I fear that this part could be exploited)
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
Is there a way to create a spell that works like the bear form but that transforms any unit who casts it into another specific unit ?
This is what the various Chaos abilities are for. You don't have to specify an input unit (only output unit) and there is no casting involved (you just give it the ability and it transforms). Chaos is generally not recommended over reverse bear form because it doesn't play nice with heroes, but in this case it seems you are not using heroes.
 
Status
Not open for further replies.
Top