Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
User Avatar
12 years ago
Auto-translated
And yet, I still can't add a hero to the dungeon... he's just sitting on the map.
In reply to Rhenish
User Avatar
12 years ago
Auto-translated
You go into its properties tree and copy the "shared" value. Then, you put any hero in the dungeon and, again, through the dungeon's properties tree, you go into "PrisonedHero" and change that hero's "shared" value to the copied one.
User Avatar
12 years ago
Auto-translated
There are no icons in the editor, but there are screenshots; please help!!! :smile39: :smile39: :smile39: :smile39: :smile39: :smile05: :smile05: :smile05: :smile05:
12 years ago
Auto-translated
Guys, help me out. I created a map for 4 players, and all the players are allies. How do I fix this? :smile45: :smile45: :smile45:
In reply to Vitalik2002
User Avatar
12 years ago
Auto-translated
Vitalik2002
Guys, help me. I created a map for 4 players, and all are on the same team. How do I fix this?
:smile45: :smile45: :smile45:
In the map properties, in the Teams tab, you can change the teams.
12 years ago
Auto-translated
The command was changed, but for some reason, it isn't being saved.
User Avatar
12 years ago
Auto-translated
How can I set properties for mapmakers so that they don't create Dungeon maps?
In reply to Rhenish
User Avatar
12 years ago
Auto-translated
Rhenish
How can I set properties for mapmakers so that they don't reveal dungeon maps?

There's no way to do that. A mapmaker located in a dungeon will reveal the dungeon map. One on the surface will reveal the surface map. One in the water will only reveal the water area. There is a way to reveal only the desired area, but I don't think that's necessary.
12 years ago
Auto-translated
Guys, help me out. I spent a long time creating a map, and I accidentally placed a Craigs - Dungeon Wall (NOT in a dungeon). Now I don't know how to remove this thing. If I place land or water in that spot (tiles -> water/raise), the wall isn't visible, but if there's a transition from water to land, it reappears. I tried saving, closing the map, but it's still the same. Could this be a bug in the map editor?
And how do I add a quest to the Witch Hut to obtain a secondary skill? I choose Award in the properties, set the type to Award_SKILL -> SkillWithMastery -> ... . If I choose a primary skill (e.g., Logistics), it works, but if I choose a secondary skill (e.g., Tactics), it doesn't work, even if all the conditions are met (i.e., I have Basic Attack). If it's possible to do this using a script, please tell me how to attach a script to the "condition met" event of the quest. Thank you!
User Avatar
12 years ago
Auto-translated
Please provide a script: if a hero enters a "stopv" territory, the hero stops and a text message appears. After the text disappears, if the hero continues to move, they lose 50% of their army; if they leave the territory, nothing happens.
User Avatar
12 years ago
Auto-translated
And how can you make it so that the map editor only generates a specific area?
In reply to Rhenish
User Avatar
12 years ago
Auto-translated
Rhenish
How can you make it so that the map generator only creates a specific area?
With scripts. And isn't the mage's hut doing the same thing? Wouldn't it work?
In reply to deathangel908
User Avatar
12 years ago
Auto-translated
deathangel908
Guys, help me out. I've been working on this map for a long time, and I accidentally placed a Craigs - Dungeon Wall (not in a Dungeon). Now I don't know how to remove this thing. If I place land or water in that spot (tiles -> water/raise), the wall isn't visible, but if there's a transition from water to land, it reappears. I've tried saving and closing the map, but it's still the same. Could this be a bug in the map editor?
And how can I add a quest to the Witch Hut to obtain a secondary skill? I choose Award in the properties, set the type to Award_SKILL -> SkillWithMastery -> ... . If I choose a primary skill (e.g., Logistics), it works, but if I choose a secondary skill (e.g., Tactics), it doesn't work, even if all the conditions are met (i.e., I have Basic Attack). If it's possible to do this with a script, please tell me how to attach a script to the "condition met" of the quest. Thank you!

Regarding the screenshot - I've never seen anything like that before. There's a solution: create the water area not with lower/raise, but with the rivers->water tab. It will work fine.

Regarding the witch's hut - it's better to script it and not bother. Lock the building with a script, attach a trigger. In the trigger's function, you can give the hero a skill with a specific command. (I think you can also give perks).

Trigger(3, "Task1", "Task1F");

Task1 - the name of the quest
Task1F - the function that will run when the quest state changes.
You can check the state with the function GetObjectiveState("Task1", PLAYER_1)
2 - the quest is active
3 - the quest is completed
4 - the quest has failed
In reply to RedHeavenHero
User Avatar
12 years ago
Auto-translated
RedHeavenHero
Using scripts. And doesn't the mage's hut do the same thing? Wouldn't that work?
I need a cartographer for one thing, and the mage's hut for something else...
User Avatar
12 years ago
Auto-translated

SetObjectEnabled("cartograph", nil);

function cartographF(heroname)
------------- ... additional conditions ... --------------
QuestionBox(GetMapDataPath().."vopros.txt", "voprosF");
end;

function voprosF()
------------ ... -------------
OpenCircleFog(x, y, floorID, range, playerID);
end;

Trigger(4, "cartograph", "cartographF");

where cartograph is the name of the cartographer on the map, vopros.txt is the text message that the player will see when interacting with the cartographer, and voprosF is the function that is called when the player gives a positive response to the message;
OpenCircleFog(x, y, floorID, range, playerID):
x, y - coordinates of the tile around which the area will be "revealed"
floorID - 0 - surface, 1 - dungeon
range - radius of the area to be revealed
playerID - the player number for whom the area will be revealed.

P.S. There is another method in which the area is revealed on the corresponding region.

Statistics

Welcome our newest member: recijeb