Skip to content

Posts from Scripts

4.8 (8 ratings)
User Avatar
#1307
Auto-translated
I need the function to check the entire game, but here it only checks once.
502 Bad Gateway
__________________________________
nginx/0.8.54
In reply to Ment
User Avatar
#1308
Auto-translated
Ment
We have RedHaven, a specialist in obtaining names of objects of a given type. If you create a caravan using scripts, you can choose a name for it, which eliminates any problems.
Caravans are created in the standard way, by hiring creatures from the city's external dwellings. According to the manual, the GetObjectNamesByType script only works with cities (TOWN_), buildings on the map (BUILDING_), heroes (HERO_CLASS_), and creatures (CREATURE_).
Разработчик Heroes 5.5 WarGame Edition.
Сайт проекта - пока неактивен
Автор Асимметричных шахмат
In reply to Warrior777
User Avatar
#1309
Auto-translated
Warrior777
I need the function to check the entire game. But here it only checks once.
Could you please provide more details about what needs to be done?
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#1310
Auto-translated
The variables will change constantly, and I want the function to always detect these changes as well.
502 Bad Gateway
__________________________________
nginx/0.8.54
In reply to Warrior777
User Avatar
#1311
Auto-translated
What do you mean, what will happen there? Will the teams change?
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#1312
Auto-translated
HP, DP, and attack rating will change.
502 Bad Gateway
__________________________________
nginx/0.8.54
User Avatar
#1313
Auto-translated
then it's the same, but just slightly different. Since your variables change based on your desire, there are two options:

1) Instead of using a while loop in the original function (the one at the beginning of the previous page), change it to an if statement, and run startThread each time where you need to determine the values.

2) Where you need to redefine the values, set a, b, and c back to 0.

In other words, enable the check only when you need it. Otherwise, it will be more complicated, and I can't immediately think of how to loop the cycle.

Whatever
User Avatar
#1314
Auto-translated
I already understand.
502 Bad Gateway
__________________________________
nginx/0.8.54
User Avatar
#1315
Auto-translated
Hey guys, I couldn't find where to change the properties of artifacts in the advanced editor. I could find it recently, but now I can't find it at all.
I thought it was in the ref tables, but maybe I'm wrong...

Whatever
In reply to Heroist
User Avatar
#1316
Auto-translated
Heroist
Hey, I couldn't find where to change the properties of artifacts in the advanced editor. I could find it recently, but now I can't find it at all.
I think it's in the ref tables, but I might be wrong...
502 Bad Gateway
__________________________________
nginx/0.8.54
User Avatar
#1317
Auto-translated
yes, but I was curious to test "< s >". After all, I still remember a few lessons on HTML...

Whatever
User Avatar
#1318
Auto-translated
A very important question: is it possible to disable the timer (turn time limit) during battles with an opponent? Or to compensate for the time spent? Because it turns out that when encountering an opponent (even a cockroach), you can basically end your turn immediately. Second point: is it possible to unlock the player interface during the opponent's turn while blocking active actions? The opponent's turn should be a planning phase. It's very annoying that you can't look at cities or heroes during this phase; for example, in Heroes of Might and Magic III, you could. Similarly, it would be desirable to unlock the interface in battle as well.
Разработчик Heroes 5.5 WarGame Edition.
Сайт проекта - пока неактивен
Автор Асимметричных шахмат
User Avatar
#1319
Auto-translated
if IsObjectExists ('elem2') == true then
RemoveObject('elem2')
end

in the console, or something like that (not entirely sure), there seems to be an error at this point, something related to "object does not exist." And it looks like the script is failing. Is that correct?
And if so, how can I replace or correctly write this check?

Whatever
In reply to Heroist
User Avatar
#1320
Auto-translated
Heroist
if IsObjectExists ('elem2') == true then
RemoveObject('elem2')
end

in the console, or something like that (not entirely sure), there seems to be an error at this point, something related to "object does not exist." And it seems like the script is failing. Is that correct?
And if so, how can I replace or correctly write this check?
Everything is written correctly here. The error is probably in something else.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#1321
Auto-translated
If there are any, there shouldn’t be any problems.
502 Bad Gateway
__________________________________
nginx/0.8.54

Statistics

Welcome our newest member: leyu