Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
User Avatar
Auto-translated
No, it’s old, but there’s still a lot of other stuff written in between.
 

К А
Стикеры GBF в Telegram
Auto-translated
Just copied and pasted, the turns work, so I guess everything else will work too. And why was it -1000? Did you play it?
Auto-translated
Hello everyone! I have a question, maybe you've encountered it before: I placed a lot of grass objects from the "Grass" tab on the map, but when I tested the map, the grass disappeared. What could be the reason for this?
User Avatar
Auto-translated
It seems like you need to change the graphics settings. At low settings, the grass doesn't appear.
 

К А
Стикеры GBF в Telegram
Auto-translated
Yes, I thought so too, but the graphics are set to very high, with only anti-aliasing and filtering turned off.
Auto-translated
Hello! Does anyone know how to make another hero follow the main hero using a script? Like in the campaign, following Freya in the first mission, when Laslo followed her on the map. Please help!
User Avatar
Auto-translated
Try this:
SetAIHeroAttractor([script name of your hero (in quotes)], [script name of the enemy hero (in quotes)], 2);
 

К А
Стикеры GBF в Telegram
Auto-translated
Thank you! Unfortunately, it's not quite right. The hero who should follow me is an ally and should simply follow closely behind. Maybe you can suggest where to find the original maps from the game; I'm sure I can find that script there.
User Avatar
Auto-translated
Ah, I understand you now. Well, to get the map from Hammers of Fate, you need the Hammers of Fate game itself. Then, go to the game folder/data/data.pak (open with WinRAR)/Maps/Scenario/A1C1M1/MapScript.lua (open with Notepad), and take a look there.
 

К А
Стикеры GBF в Telegram
Auto-translated
Thanks for the help, I'll try to find it there. By the way, can you tell me why this script isn't working for me? It seems simple, but only the first trigger works.
function gF ()
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "g", nil);
MessageBox("/Maps/SingleMissions/Map_01/gF.txt");
end;

Trigger(REGION_ENTER_AND_STOP_TRIGGER, "g", "gF");

function goF ()
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "go", nil);
MessageBox("/Maps/SingleMissions/Map_01/goF.txt");
SetObjectiveState("quest", OBJECTIVE_ACTIVE);
end;

Trigger(REGION_ENTER_AND_STOP_TRIGGER, "go", "goF");

function skelF ()
Trigger(OBJECT_TOUCH_TRIGGER, "skel", nil);
RemoveObject("goD");
end;

Trigger(OBJECT_TOUCH_TRIGGER, "skel", "skelF");

Added 6 minutes ago
to be more precise, the first two triggers work, but the second one doesn't. The point is that when I approach the monster (skel) and interact with it (battle), the object (goD) is removed from the map during the interaction
User Avatar
Auto-translated
Check the goF.txt file. Maybe it has a different encoding? Or perhaps the filename doesn't match exactly? I can't say for sure. It's best to debug scripts using the console: /topic/816/ All script errors are displayed there; you can also use the print() function to output parameter values.
 

К А
Стикеры GBF в Telegram
Auto-translated
Everything seems fine with goF, the last function isn't working, the one where
function skelF ()
Trigger(OBJECT_TOUCH_TRIGGER, "skel", nil);
RemoveObject("goD");
end;

Trigger(OBJECT_TOUCH_TRIGGER, "skel", "skelF");

What could be the problem? Could it be that it shouldn't be placed on a monster?
User Avatar
Auto-translated
What is the monster's name? Is it "skel" or something else? Case sensitivity matters. Also, if you need the trigger to activate before the battle with the monster, you need to disable it first (SetObjectEnabled("skel", nil);), and then call MakeHeroInteractWithObject([hero], "skel"); to start the battle.
 

К А
Стикеры GBF в Telegram
Auto-translated
I understand your idea; you're right, it needs to be disabled so it doesn't work normally, and then enabled at the end to start the battle, but it's not working very well.
function gF ()
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "g", nil);
MessageBox("/Maps/SingleMissions/Map_01/gF.txt");
end;

Trigger(REGION_ENTER_AND_STOP_TRIGGER, "g", "gF");

function goF ()
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "go", nil);
MessageBox("/Maps/SingleMissions/Map_01/goF.txt");
SetObjectiveState("quest", OBJECTIVE_ACTIVE);
end;

Trigger(REGION_ENTER_AND_STOP_TRIGGER, "go", "goF");

SetObjectEnabled("skel", false);

function skelF ()
Trigger(OBJECT_TOUCH_TRIGGER, "skel", nil);
RemoveObject("gg");
MakeHeroInteractWithObject("skel", "Agata");
end;

Trigger(OBJECT_TOUCH_TRIGGER, "skel", "skelF");

The goF trigger works, displays a message, and sets a task. Then, I approach the monster, but the hero doesn't attack it; he just stands next to it, and the object isn't removed by RemoveObject("gg"); the monster is named correctly).
Please, tell me where the mistake is

Statistics