Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
User Avatar
Auto-translated
Mikazan, you're almost right. It should be like this (verified):
1) SetObjectEnabled("1", false);
2) PlayObjectAnimation("1", "hit", IDLE);
PlayObjectAnimation("1", "attack00", IDLE);
P.S. I just don't understand why the peasant's corpse is attacking anyone at all. :smile13:
 

К А
Стикеры GBF в Telegram
User Avatar
Auto-translated
Thank you very much! I understand now. But I still have a question about the corpse... Is it possible to disable the "skirt" on this corpse? I mean, the rotating ring underneath it...

Added:
And also, is it possible to make a two-way teleport invisible? So that the active zone remains and performs its function, but the "arch" on the map is not displayed?
User Avatar
Auto-translated
Guys! Please help! How do I change the missions in single-player and multiplayer?
:smile19: Кто не с нами--тот пртив нас!А кто против нас--тот труп!:smile19:

:smile19: :smile12: :smile19: Варвары рулят!!! :smile19: :smile12: :smile19:
User Avatar
Auto-translated
Mikazan, you can teleport a hero like this:
SetObjectPosition("NameOfHero",x,y,floor);
The last parameter defaults to -1, which means the floor the hero is on. Then you need to create a region and place a trigger on it.
I haven't figured out the skirt thing myself. According to the manual, it's done like this:
SetMonsterSelectionType('1',0);
but it doesn't work for me:smile21:.
 

К А
Стикеры GBF в Telegram
User Avatar
Auto-translated
Gotay367, you open the Map Properties Tree (1), then Objectives (2), primary (main) or secondary, common (for all) or player-specific (for a specific player). Important: the player number is 1 less than it seems. If needed, I've attached a screenshot.
Attachments 1
1 file attached • Total size: 124.5 KB
 

К А
Стикеры GBF в Telegram
User Avatar
Auto-translated
Ment, thank you!
:smile19: Кто не с нами--тот пртив нас!А кто против нас--тот труп!:smile19:

:smile19: :smile12: :smile19: Варвары рулят!!! :smile19: :smile12: :smile19:
User Avatar
Auto-translated
Now I have a problem. The triggers aren't working. In any form. :( Specifically, I'm creating a "Druid" region and writing the following for it: function res() if hero=='Elleshar' then SetPlayerResource(PLAYER_1,GOLD,100000); Trigger( REGION_ENTER_AND_STOP_TRIGGER, "Druid", nil ); end; end; Trigger( REGION_ENTER_AND_STOP_TRIGGER, "Druid","res", nil ); I enter the region with Elleshar. Nothing happens. I need help! :smile39:
 

К А
Стикеры GBF в Telegram
User Avatar
Auto-translated
Is nothing happening for you at all? In my case, the hero stops... and the update happens normally... The only problem is that gold isn't added... I thought it might be related to the player ID, but Serzhik provided a more convincing explanation) And a more weighty one)

Regarding teleportation - The thing is, I'm interested in the possibility of teleporting not a specific hero, but all the heroes of one player... Moreover, the teleport should happen randomly to 1 of 6 points... In my opinion, the ideal option would be to create invisible teleporters (two-way) and simply restrict other players' access to the active point...
And one more thing... Is there a limit on the number of animations that can be set for objects?
User Avatar
Auto-translated
Ser9K, thank you. Everything is working now. Mikizan, I'm not sure if that's possible. If it is, I'm not sure it's simple. Here's how you can create an invisible teleport: SetRegionBlocked("Reg1",1,PLAYER_2); SetRegionBlocked("Reg2",1,PLAYER_2); function tele1(hero) SetObjectPosition(hero,4,91); end; function tele2(hero) SetObjectPosition(hero,19,10); end; Trigger( REGION_ENTER_AND_STOP_TRIGGER, "Reg1","tele1", nil ); Trigger( REGION_ENTER_AND_STOP_TRIGGER, "Reg2","tele2", nil ); Player 2 won't be able to use it. If you need an element of randomness, I suggest creating 6 regions and using the random function. I made sure that the regions don't overlap with the location where the hero is teleported, just in case. Regarding animations... I think they are limited only by the integer type. :)
 

К А
Стикеры GBF в Telegram
In reply to Ment
Auto-translated
Hello everyone. Maybe someone can help me; I've encountered a problem. I was working on a large map, but before I finished it, I discovered that my computer was infected with a virus. I managed to save the map without any damage and copied it to a disk. I reinstalled Windows and then copied the unfinished map to the correct folder and continued working on it. However, after saving the finished map, I found that the map size had decreased to 1 KB, and I can no longer open it. I have a question about this: is there any way to finish the map and eventually play it?
In reply to Антон А.А.
User Avatar
Auto-translated
Anton A.A.

There is only one hope. Go to Heroes of Might and Magic V - Tribes of the East\Editor\H5MMods and find the folder that has the same name as your map. Since .h5m is an archive, the game (or rather, the editor) unpacks it for convenience. The map is stored in unpacked form there. Check the two files: GroundTerrain.bin and map.xdb. The first one is about a megabyte in size, and the second is 500 kilobytes. If they are both 1 KB, then you will have to start from scratch. If not, there is a chance to pack this folder and save the map.
Клан "Вершители Асхана" - "Masters of Ashan"
User Avatar
Auto-translated
The editor constantly crashes when saving the result after writing a script (any script) :smile45:. Has anyone else experienced this, and if so, how can it be fixed?
In reply to Mikazan
User Avatar
Auto-translated
An unpleasant problem has arisen. Has anyone worked with custom sounds in Heroes? I'm creating a Sound type file and trying to select the path to a file that I recorded beforehand in the SrcName property. But the field doesn't save this path, no matter what I do. :smile11: If anyone knows a workaround, please don't be silent!
Mikazan
The editor constantly crashes while saving the result after writing some script (any script) :smile45: Has anyone else experienced this, and if so, how can it be fixed?
Unfortunately, I haven't encountered this problem (or, fortunately, I haven't). I can only give a simple suggestion. Try reinstalling the game :) . P.S. Mikazan, did my previous advice work? If not, I'll delete it – there's no need to overload the server for nothing. :smile43:
 

К А
Стикеры GBF в Telegram
User Avatar
Auto-translated
Reinstalling the game doesn't help... I've already reinstalled it 3 times... The advice is good. I'm currently working on it in my test section. By the way, you can take a look at the map where this will be used... I've uploaded it. The design clearly shows where the future exit points will be located...
P.S. Could it be related to the operating system? I have Windows 7... does anyone else have this operating system?

Statistics

Welcome our newest member: Emil