Posts from Scripts
fast foken read `=' in line 18 to string "DoString script"
(Script) ERROR: expected
Script failed, unknown error
__________________________________
nginx/0.8.54
GetPlayerRecource (1, 6, >=10000)
GetPlayerResource (1, 6) >=10000
SetPlayerResource (6, -10000, 5, 10);
Check the Manuals and see the correct way to write the functions.
You can also browse through the scripts of other maps. To write scripts, you need to at least look at their basics ;)
Here is the basics:
number GetPlayerResource( nPlayerID, nResID )
Returns the current amount of resource nResID for player nPlayerID. Resource IDs are listed in /scripts/advmap-startup.lua and are as follows:
WOOD = 0
ORE = 1
MERCURY = 2
CRYSTAL = 3
SULFUR = 4
GEM = 5
GOLD = 6
void SetPlayerResource( nPlayerID, nResID, nCount )
Sets the current amount of resource nResID to nCount for player nPlayerID. Based on this function, a higher-level primitive is implemented in the /scripts/advmap-startup.lua file – void SetPlayerStartResource( nPlayerID, nResID, nCount ), which distributes starting resources to the player depending on the difficulty level.
Added 5 minutes ago
I AM COMPLETELY CONFUSED ABOUT WHAT TO DO???:confused: :confused: :confused: :smile33: :smile33: :smile33:
NHF 0.90 : NHF - группа в VK
Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
Added 5 minutes later
The map is for the original 1.6 version. Will you be able to do it?
__________________________________
nginx/0.8.54
A map for the original 1.6. Can you handle it?
If I'm going to create it in 3.1 without opening the map in the editor, it will work.
Although there should be direct compatibility, there isn't reverse compatibility...
At least, let's try to make the scripts work, and that doesn't depend on the version, as long as you don't use any extra ones.
NHF 0.90 : NHF - группа в VK
Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
I can't send it in a private message...
The map isn't quite ready yet.
Added 19 minutes later
Here's how the script should look:
SetObjectEnabled("rinok_samocvetov", nil);
MessageBox (GetMapDataPath().."zasada.txt");
---
function Zasada1 ()
MessageBox (GetMapDataPath().."napadenie_zasady.txt", "zasada_napadenie");
end;
---
function zasada_napadenie ()
StartCombat("Diraya", nil, 3, 30, 50, 32, 30, 34, 20, nil, nil, nil);
Trigger (REGION_ENTER_AND_STOP_TRIGGER, "zasada1", nil);
end;
---
Trigger (REGION_ENTER_AND_STOP_TRIGGER, "zasada1", "Zasada1");
---
function Samocveti ()
if GetPlayerResource(1, 6) >= 10000 then
QuestionBox (GetMapDataPath().."pokupka.txt", "pokupka");
else
MessageBox (GetMapDataPath().."malo_many.txt");
end;
end;
---
Trigger (OBJECT_TOUCH_TRIGGER, "rinok_samocvetov", "Samocveti");
--
function pokupka ()
SetPlayerResource(1,6,GetPlayerResource(1, 6) - 10000);
MessageBox (GetMapDataPath().."poterya.txt");
end;Instead of GetMapDataPath().."malo_many.txt", you can also write "/Maps/SingleMissions/ELO/malo_many.txt"
NHF 0.90 : NHF - группа в VK
Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
__________________________________
nginx/0.8.54
It seems like nothing will work anyway, even if you don't use the editor.
NHF 0.90 : NHF - группа в VK
Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
Added 5 minutes later
The battle still won't start.
Added 7 minutes later
+I need the gem market to not have resources stolen (-10000 gold and nothing is given to you), but instead, 10 gems should be given for them.
__________________________________
nginx/0.8.54
Ah, I'll try to restore the previous file and modify the scripts... Maybe it will work...
Added 5 minutes later
The battle still won't start.
NHF 0.90 : NHF - группа в VK
Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
I need the gem market to not have resources stolen (-10000 gold and nothing is given to you), but instead, 10 gems should be given in exchange.
Added 4 minutes later
The battle still doesn't start.
NHF 0.90 : NHF - группа в VK
Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
Why is it so difficult... here's a file that works on 1.6 (a friend checked it). I copied the files myself (it's not hard to copy 6 files ;) scripts + txt), as I wrote above.
__________________________________
nginx/0.8.54
It still won't launch. Does your acquaintance definitely have version 1.6?
NHF 0.90 : NHF - группа в VK
Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
I have a rather simple question. How can I make it so that after a creature plays a certain animation when it loses, it continues to move as it should? I have the following situation: a hero enters zone 1, and a trigger is activated, playing a "joy" animation for the griffin. Everything works correctly, but for some reason, after the animation plays, the griffin freezes in place. What needs to be done so that it continues to move after the animation? And why don't any of the animations work for my fire demon, even though I write the same thing for other creatures, and it works for them? Thank you in advance.
For other monsters, you need to click on "..." and in the AnimSet field, select the animation for it using the same "...", instead of LOD.
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4