Skip to content

Posts from Scripts

4.8 (8 ratings)
User Avatar
Auto-translated
Hooray! It worked!
Just not nil, but true.
Thank you.
Кампании
К оружию!
______________________________
Нужна помощь:
Делать ролики
Писать скрипты
In reply to Grimrock
User Avatar
Auto-translated
Grimrock
DDS files open for me in Photoshop.
P.S. Is DDS DirectDrawSurface?

Added 6 minutes later

The height and width are 1024x1024.
So, there's a misunderstanding. What is "TF_DXT1"?
Maybe I should send a screenshot?

Added 1 minute later
TF_DXT1 is a compression.
It should match.
When saving as DDS, it is specified additionally.
Всё, что сейчас происходит во мне, тоже является частью Вселенной. (с) Иванов Александр.
Цикл кампаний "Дыхание Смерти" из трёшки в четвёртом исполнении
Учебная карта
Астралия
За Королеву!
Подземелья и Дьяволы
Отголоски войны
Освобождение
User Avatar
Auto-translated
How can I make it so that after a text message at the beginning of the game, a certain part of the map is displayed (like in the Wizard's Hut)?
Справедливость - авторский глобальный мод

ColouredText - список заклинаний и их уровень в описании существ-колдунов
User Avatar
Auto-translated
Now, after the hero completes the task, I need to reset the script. The script itself is as follows: SetRegionBlocked("Region", true, 1);
Кампании
К оружию!
______________________________
Нужна помощь:
Делать ролики
Писать скрипты
In reply to Квант
User Avatar
Auto-translated
Quant
TF_DXT1 is a compression method.
It should be applied.
When saving as DDS, it is specified additionally.
Can you suggest the parameters for a DDS image?
Here they are:
Compression subsystem type: Range, Cluster, or Iterative
Compression optimization: Unified or for display
And do you need to generate Mipmaps?
Кто шарит в скриптах отпишите плиз:)
User Avatar
Auto-translated
Hey everyone, does anyone have a collection of scripts? I do have some myself, but it only contains eight.
Делаю кампанию "Последний Феникс"
User Avatar
Auto-translated
The manual only has it in English, which makes it somewhat understandable.

Added after 21 hours and 39 minutes
I need to reset the script after the hero completes the task. The script itself is: SetRegionBlocked("Region", true, 1);
Кампании
К оружию!
______________________________
Нужна помощь:
Делать ролики
Писать скрипты
User Avatar
Auto-translated
I copied, I mean, wrote a script, and it's supposed to prevent the computer-controlled hero from moving, but it doesn't work. Where's the error?

EnableHeroAI("Necromancer", nil)

function new_day()
local day = GetDate(day)
if day == 1 then
DeployReserveHero("Necromancer", 29, 60, 1)
end
end

Trigger(NEW_DAY_TRIGGER, 'new_day')



Trigger(REGION_ENTER_AND_STOP_TRIGGER, "Necro", "hire1")


Could the issue be with the REGION_ENTER_AND_STOP trigger?
Делаю кампанию "Последний Феникс"
In reply to Алеха
User Avatar
Auto-translated
Aleha
I copied, I mean, wrote a script, and it's supposed to prevent the computer-controlled hero from moving, but it doesn't work. Where's the error?

EnableHeroAI("Necromancer", nil)

function new_day()
local day = GetDate(day)
if day == 1 then
DeployReserveHero("Necromancer", 29, 60, 1)
end
end

Trigger(NEW_DAY_TRIGGER, 'new_day')



Trigger(REGION_ENTER_AND_STOP_TRIGGER, "Necro", "hire1")


Could the issue be with the REGION_ENTER_AND_STOP trigger?


EnableHeroAI("Necromancer", false) should be like this

Added 13 minutes later
Oops, not true, but false.
Кампании
К оружию!
______________________________
Нужна помощь:
Делать ролики
Писать скрипты
In reply to RobinMobin
User Avatar
Auto-translated
Something still isn't working: the demon hero, as well as the necromancer hero, should also stay in place, but they still move, while the necromancer himself sits in the castle and quietly recruits units.
Делаю кампанию "Последний Феникс"
User Avatar
Auto-translated
I don't know about the units, but I think it should only prevent movement.
Check the manual.

Added 1 minute ago
Can you help?
I need to reset the script after the hero completes the task.
The script itself is: SetRegionBlocked("Region", true, 1);
Кампании
К оружию!
______________________________
Нужна помощь:
Делать ролики
Писать скрипты
In reply to Алеха
User Avatar
Auto-translated
Here are the scripts (and yes, the console displays an error message that the Necromancer was not found or something similar):

EnableHeroAI("Necromant", true)

function new_day()
local day = GetDate(day)
if day == 1 then
DeployReserveHero("Necromant", 29, 60, 1)
end
end

Trigger(NEW_DAY_TRIGGER, 'new_day')



Trigger(REGION_ENTER_AND_STOP_TRIGGER, "Necro", "hire1")
-----------------------------------------------------------
EnableHeroAI("HellGuard", true)

function new_day()
local day = GetDate(DAY)
if day == 1 then
DeployReserveHero("HellGuard", 24, 124, 0)
end
end

Trigger(NEW_DAY_TRIGGER, 'new_day')



Trigger(REGION_ENTER_AND_STOP_TRIGGER, "Demon", "hire1")
-----------------------------------------------------------
Делаю кампанию "Последний Феникс"
User Avatar
Auto-translated
This means the player doesn't have the required script name that you specified in the script.
Кампании
К оружию!
______________________________
Нужна помощь:
Делать ролики
Писать скрипты
In reply to RobinMobin
User Avatar
Auto-translated
RobinMobin
I don't know about the units, but I think it should only prevent movement.
Check the manual.

Added 1 minute ago
Can you help?
I need to reset the script after the hero completes the task.
The script is as follows: SetRegionBlocked("Region", true, 1);

Oh, sorry, but I can't help, I don't know that script yet, I'm just getting started.
Делаю кампанию "Последний Феникс"
User Avatar
Auto-translated
The manual contains simple English words and should be easy to translate; I hope you can understand.
Кампании
К оружию!
______________________________
Нужна помощь:
Делать ролики
Писать скрипты

Statistics