Skip to content

Current questions and answers regarding the map editor.

User Avatar
#679
Auto-translated
I didn't quite understand what you meant, but I'll try to answer. In the properties tree: the quest name (the Name string) must be written in English. And in the CaptureFileRef and DescriptionFileRef strings, you need to click on 'new' or 'edit'. If you click 'new', then write the name of the new text document in Russian. The window that appears after clicking 'edit', as well as after entering the name of the new file, can be filled in with any language. ACTIVE - this only activates the task. To fail it - use FAILED, and to complete it - use COMPLETED.
SetObjectiveState('obj1', OBJECTIVE_COMPLETED);
Do you want to completely reset resources and gold???
What do you mean by that? Let's say that at the beginning of the game, player 1 should have no resources at all. Then, you should write the following lines without any functions:
SetPlayerResource( PLAYER_1, GOLD, 0 );
SetPlayerResource( PLAYER_1, ORE, 0 );
SetPlayerResource( PLAYER_1, WOOD, 0 );
SetPlayerResource( PLAYER_1, CRYSTAL, 0 );
SetPlayerResource( PLAYER_1, GEM, 0 );
SetPlayerResource( PLAYER_1, SULFUR, 0 );
SetPlayerResource( PLAYER_1, MERCURY, 0 );
If I misunderstood you, write what you would like to see in your map in terms of scripting functions.
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"