Auto-translated
Aleha, you probably messed something up in the map properties tree for this player. Please check the "players" branch and remove anything suspicious.
New here? I'm Roha — want a quick tour?
How can I make a specific number of units appear in a specific city on a specific week? And is this even possible?
Trigger(NEW_DAY_TRIGGER, 'handler_name');
GetDate(ABSOLUTE_DAY);
AddObjectCreatures('town_name', creature_type, quantity, slot_number);
"Handler name" - the name of the function that will be called when the trigger is activated.
ABSOLUTE_DAY - it must be written exactly like this. 3 weeks is approximately 15 days. So, you need to check that the value returned by GetDate(ABSOLUTE_DAY) is equal to 15.
after capturing objects
The enemy hero has become an ally
Could you please tell me: in the SetRegionBlocked script, what should be entered in the status field to set the region to be blocked?
1 - blocked,
nil - open.
So, here's another question: in the "GetPlayerResource" script, there's a player and a resource type, but how do you specify the amount of resource received?
The function that handles the new day doesn't receive a parameter with the hero's name. Therefore, the if...then statement needs to be removed, as well as one of the end statements. In StartCombat, the hero's name also needs to be enclosed in quotation marks.