[Solved] Making a tile unwalkable

Status
Not open for further replies.
Level 7
Joined
Jan 19, 2019
Messages
52
So I asked around and the solution I was offered was through "terrainart\terrain.slk" import, that sadly seems to no longer work though.

Is there a different way to achieve this? I really need it because placing down pathing blockers would be a logistical nightmare, I'd have to cover way too much space and might even run out of the doodad count so I'd prefer to find a smarter solution
 
Can you place pathing blockers with code?

In the map Power Towers, you actually harvest grass around a certain type of tower (Furnace) so I believe there must be some kind of API to access what tile is at a coordinate. If that's true, you should be able to auto place pathing blockers on all tiles of a specific type.
 
Can you place pathing blockers with code?

In the map Power Towers, you actually harvest grass around a certain type of tower (Furnace) so I believe there must be some kind of API to access what tile is at a coordinate. If that's true, you should be able to auto place pathing blockers on all tiles of a specific type.
I sadly think that's beyond my limited scripting abilities. I could possibly cover all rock surfaces with a reigon and make those unwalakble

Ideally there's smth where I can just flip a switch cause that'd be so much easier cause both placing down pathing blockers or making regions is prob gonna be very limiting.

I know this can be done since most grand strategy maps do this
 
The original solution still works in the current version, I bet it's a file path problem, it should look like this

1735169650394.png



and you place your edited Terrain.slk in there, it takes an editor restart to take effect

Edit: it most likely needs local files enabled
 
Last edited:
It's the directory where the game is installed, back in the days you could place the TerrainArt folder directly inside Warcraft III but since reforged the _ retail _ folder is necessary too
If I don't have the TerrainArt fodler I can just make it? And then I import the .slk from there?
 
Sure you can create the folder and then place your slk, but again, I think it requires local files to be enabled in order to take into account files we place in the WC3 folder
I'll give it a shot, see how it works out.
EDIT: I tried but there is no Warcraft 3 in Registry editor only World editor
EDIT2: Just created a Warcraft 3 file and it works! Thank you very much!
Can't you set pathability of a tile with a trigger? It's possible to hit op limit like that but iterating over the map in a 128-width grid pattern should work.
The only option I saw was pathbility in specific region not on a specific tile but maybe I overlooked it.
 
Last edited:
Status
Not open for further replies.
Back
Top