Auto-translated
Okay, I'm working on a map with several heroes that need to join the player. But besides that, there are other issues:
1) First, I can't get the map objective to trigger and a new one to appear when entering a specific region.
SetObjectiveState(objectiveName, state, playerID = PLAYER_1);, if I understand correctly, this is what I need.
I've tried using OBJECTIVE_COMPLETED for the state, and I've entered the correct name and PLAYER_1 for the playerID, but it doesn't work. When the player enters the region, they get stuck, and nothing happens, even though something should be triggered.
2) Based on the above (i.e., when entering a specific region), I need to add a hero. I think I should use
SetObjectOwner(objectName, playerID);
I don't know if it works, so the first question is the most important.
Added 22 minutes later
Oh, and one more thing. I created a Castle where everything is built: the Hall of Elders and the Castle is fully upgraded. There are no taverns or buildings where creatures can be bought. An enemy hero is standing there because their AI is turned off. I noticed that some hero appeared and disappeared abruptly in the Castle. I don't understand why; they can't buy anything. There are no buildings, no tavern, and no nearby reinforcement locations. Nothing. Can you explain?
1) First, I can't get the map objective to trigger and a new one to appear when entering a specific region.
SetObjectiveState(objectiveName, state, playerID = PLAYER_1);, if I understand correctly, this is what I need.
I've tried using OBJECTIVE_COMPLETED for the state, and I've entered the correct name and PLAYER_1 for the playerID, but it doesn't work. When the player enters the region, they get stuck, and nothing happens, even though something should be triggered.
2) Based on the above (i.e., when entering a specific region), I need to add a hero. I think I should use
SetObjectOwner(objectName, playerID);
I don't know if it works, so the first question is the most important.
Added 22 minutes later
Oh, and one more thing. I created a Castle where everything is built: the Hall of Elders and the Castle is fully upgraded. There are no taverns or buildings where creatures can be bought. An enemy hero is standing there because their AI is turned off. I noticed that some hero appeared and disappeared abruptly in the Castle. I don't understand why; they can't buy anything. There are no buildings, no tavern, and no nearby reinforcement locations. Nothing. Can you explain?