Skip to content
#2212
Auto-translated
Basically, I found the syntax

ShowFlyingSign(messageName, objectName, targetPlayerID = -1, time = 1.0);
and started writing it, but the "script editor" started giving me errors.
I "changed" it, and it stopped complaining, but my version didn't work and looked like this:

ShowFlyingSign("GetMapDataPath().."offli.txt","offlich", "targetPlayerID = -1", "time = 1.5");
After some time, I realized that I couldn't do it without a "template," so I searched the internet and found

ShowFlyingSign({path.."slavescaptured.txt";totalcost=tc},hero,PLAYER_1,5);
I adjusted it to my needs, and it became

ShowFlyingSign(GetMapDataPath().."offlich.txt", off, Player_1, 5);
However, the script still doesn't work. =) Can you tell me what I'm doing wrong? Maybe it's because I'm giving the "name of the region" instead of the "name of the object"?

Original script:

function offlich()
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "off", nil);
ShowFlyingSign(GetMapDataPath().."offlich.txt", off, Player_1, 5);
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "off", "offlich");

P.s. The script works up to the point where the hero stops in the desired region

Statistics

Welcome our newest member: wayal