• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[General] Change the terrain of a region when a unit enters it

Status
Not open for further replies.
Level 7
Joined
Apr 17, 2017
Messages
316
It's easier to do in jass, I am assuming you dont know jass. If you do, simply iterate from min x and y values up to max x and y values and add 128 after each one. then call SetTerrainType. Here's the demo map:
 

Attachments

  • Change Terrain In Region.w3m
    18.8 KB · Views: 25
Level 3
Joined
Jun 6, 2011
Messages
31
It's easier to do in jass, I am assuming you dont know jass. If you do, simply iterate from min x and y values up to max x and y values and add 128 after each one. then call SetTerrainType. Here's the demo map:

Awesome! I get how it works now, however, it seems to be non-functional in Reforged (like a lot of other triggers). You don't happen to have a magical solution to that?
 
Level 7
Joined
Apr 17, 2017
Messages
316
Probably because Reforged uses different filepath for terrain types. I believe they were in _hd.w3mod/terrainart folder rather than /terrainart. I personally never worked with Reforged textures @Retera might know something about it. I believe you can use manually input those terraintypes not sure how it would look without orm and diffuse ones though.

Edit: Oh wait you can't because it takes integer as an argument.
Well a solution would be creating image instead of terrain to replicate the functionality.
 

Attachments

  • Reforged Tiles.png
    Reforged Tiles.png
    6 KB · Views: 25
  • Classic Tiles.png
    Classic Tiles.png
    13.7 KB · Views: 23
Last edited:
Level 3
Joined
Jun 6, 2011
Messages
31
Probably because Reforged uses different filepath for terrain types. I believe they were in _hd.w3mod/terrainart folder rather than /terrainart. I personally never worked with Reforged textures @Retera might know something about it. I believe you can use manually input those terraintypes not sure how it would look without orm and diffuse ones though.

Edit: Oh wait you can't because it takes integer as an argument.
Well a solution would be creating image instead of terrain to replicate the functionality.

That so? Speaking hypothetically, even if having the Reforged terrain change, would it change for classic?
Images do seem like a fair solution, just sounds a little strange.

Well thank you, regardless.
 
Status
Not open for further replies.
Top