Auto-translated
In general, the problem is described here: /topic/at/1162432/. The fix is also there, but it's somewhat clunky and “noticeable” for the player
New here? I'm Roha — want a quick tour?
TalkBoxForPlayers(PLAYER_1, icon, nil, {text, var1=variable_1, var2=variable_2, var3=variable_3}, nil, nil, 0, title, GetMapDataPath().."ChooseAnswer.txt", 0, GetMapDataPath().."OK.txt");
WITHOUT VARIABLES:
WITH VARIABLES:
If anyone has any ideas on how to fix this and why it's happening, I would be very grateful to hear them.
Hello, could you please help me? I'm having a problem with this part of the script.
function fb1()
RemoveHeroCreatures("RedHeavenHero03", 8, 20);
sleep(1);
RemoveHeroCreatures("Biara", 20, 1*D);
sleep(1);
StartDialogScene("/Maps/SingleMissions/Warprolog/StartScene2/DialogScene.xdb#xpointer(/DialogScene)");
sleep(1);
MoveHeroRealTime("Biara", 88, 59, GROUND);
sleep(1);
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "stfb1", "fb1", nil);
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "stfb1", "fb1");
The problem is that after Biara makes her move, this cutscene, StartScene2, plays a second time, specifically within this trigger. There are no other mentions of it. If anyone understands, please tell me what might be the cause. I've been racking my brain over this.
Look for the lines SetAmbientLight in the script of my map "Runes in Good Hands," it worked for me.
By the way, I forgot to mention: this lighting should be in the Ground/UnderGroundAmbientLights list in the Map Properties Tree. In Runes, the line SetAmbientLight(GROUND, "NecromancyFog", true, 3) worked, so the issue is with the point mentioned above.
Thank you, I will definitely do that. And another question, could someone share an example of a StartCombat script where the enemies include, for example, a stack of militia and another stack of archers, each with 10 units? I can write a StartCombat for a single type of creature, but I can't figure out how to add a full army of different units; I don't understand which variables to write for the second stack, and it would be easier to understand with a live example. Thank you in advance.
StartCombat('hero_name', nil, 2, CREATURE_MILITIAMAN, 10, CREATURE_ARCHER, 10)