- 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.
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 ?
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.

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 ?