Skip to content

Posts from Scripts

4.8 (8 ratings)
In reply to Warrior777
User Avatar
Auto-translated
There, the files are some kind of strange text files with the .txt extension.
And, to be honest, I don't really know how to create text files with variables (so that the text can change depending on certain conditions), so there might be a problem with that as well.
 

К А
Стикеры GBF в Telegram
User Avatar
Auto-translated
In the second script, everything was fine with this, and besides, the ENTIRE map crashes (!) for me and doesn't open anymore!

Added after 0.000000000000000000000000000000001 seconds


obs = 0

function a ()
obs = obs + 1
end;

Trigger(NEW_DAY_TRIGGER,"a");

function b ()
QuestionBox(GetMapDataPath().."mrkobsgst.txt","yes",nil);
end;

function yes ()
SetPlayerResource(1,6,-10000);
obs = obs + 10
end;

function c (heroname)
ShowFlyingSign({GetMapDataPath().."getobstxt.txt",obs=obs},heroname);
end;

Trigger(OBJECT_TOUCH_TRIGGER,"mrkobs1","b");
Trigger(OBJECT_TOUCH_TRIGGER,"getobs1","c");
502 Bad Gateway
__________________________________
nginx/0.8.54
User Avatar
Auto-translated
This is for Mento; it was a separate post. He moved it here. The size is normal; the path is: C:/Heroes5/Maps. What's strange is that the map stops working precisely after making changes to the script; before that, you could reload it 1,000,000 times.
502 Bad Gateway
__________________________________
nginx/0.8.54
User Avatar
Auto-translated
Exactly. ..
502 Bad Gateway
__________________________________
nginx/0.8.54
In reply to Warrior777
User Avatar
Auto-translated
This is what causes the editor to crash. It’s better to write scripts in another program, such as Notepad.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
Auto-translated
It's not the EDITOR, but the MAP that crashes and stops working!

Added after 0.000000000000000000000000000000001 seconds
It's not the EDITOR, but the MAP that crashes and stops working!
502 Bad Gateway
__________________________________
nginx/0.8.54
User Avatar
Auto-translated
Attachments 1
1 file attached • Total size: 86.0 KB
502 Bad Gateway
__________________________________
nginx/0.8.54
In reply to Warrior777
User Avatar
Auto-translated
Warrior777


obs = 0

function a ()
obs = obs + 1
end;

Trigger(NEW_DAY_TRIGGER,"a");

function b ()
QuestionBox(GetMapDataPath().."mrkobsgst.txt","yes",nil);
end;

function yes ()
SetPlayerResource(1,6,-10000);
obs = obs + 10
end;

function c (heroname)
ShowFlyingSign({GetMapDataPath().."getobstxt.txt",obs=obs},heroname);
end;

Trigger(OBJECT_TOUCH_TRIGGER,"mrkobs1","b");
Trigger(OBJECT_TOUCH_TRIGGER,"getobs1","c");
Will I get an answer about this?
502 Bad Gateway
__________________________________
nginx/0.8.54
In reply to Warrior777
User Avatar
Auto-translated
Warrior777
This map is no longer available. You can try opening it with an archiver and extracting the remaining files. The packaging was interrupted due to the use of the built-in script editor. Not all files were able to be packaged, including the main components of the map, which is why it cannot be opened.

Added after 4 minutes
Warrior777
Will I get an answer about this?
What's that picture at the top?
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
Auto-translated
And what does this mean?
502 Bad Gateway
__________________________________
nginx/0.8.54
In reply to Warrior777
User Avatar
Auto-translated
Warrior777
obs = 0

function a ()
obs = obs + 1
end;

Trigger(NEW_DAY_TRIGGER,"a");

function b ()
QuestionBox(GetMapDataPath().."mrkobsgst.txt","yes",nil);
end;

function yes ()
SetPlayerResource(1,6,-10000);
obs = obs + 10
end;

function c (heroname)
ShowFlyingSign({GetMapDataPath().."getobstxt.txt",obs=obs},heroname);
end;

Trigger(OBJECT_TOUCH_TRIGGER,"mrkobs1","b");
Trigger(OBJECT_TOUCH_TRIGGER,"getobs1","c");
SetPlayerResource - the third parameter should be positive.
ShowFlyingSign - table elements with different types of keys should be separated using ";".

Added 7 minutes later
Warrior777
What does this mean?
There is some image in message #1322, but it is not displayed.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
Auto-translated
It displays perfectly on my end. This is a description of the error.

Added 2 hours and 13 minutes later
RedHeavenHero
SetPlayerResource - the third parameter should be positive.

Then, tell me how to reduce the amount of resource in 1.6.
502 Bad Gateway
__________________________________
nginx/0.8.54

Statistics

Welcome our newest member: Emil