Skip to content

Posts from Scripts

4.8 (8 ratings)
User Avatar
9 years ago
Auto-translated
Hooray! It worked!
Just not nil, but true.
Thank you.
In reply to Grimrock
User Avatar
9 years ago
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
9 years ago
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)?
User Avatar
9 years ago
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
9 years ago
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
9 years ago
Auto-translated
Hey everyone, does anyone have a collection of scripts? I do have some myself, but it only contains eight.
User Avatar
9 years ago
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
9 years ago
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
9 years ago
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
9 years ago
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
9 years ago
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
9 years ago
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
9 years ago
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
9 years ago
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
9 years ago
Auto-translated
The manual contains simple English words and should be easy to translate; I hope you can understand.

Statistics

Welcome our newest member: recijeb