• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Need Help in Terrain Trigger!

Status
Not open for further replies.
Level 5
Joined
Nov 3, 2007
Messages
113
Heya, i whas wondering if some1 could link/make an tutorial for me for an restoration trigger. Like taking a ruinend town and turn into a fixed one when entering it,. this is what i have so far, but its not working

Events:
Unit - A unit enters test region 2 <gen>


conditions:
((Triggering unit) is A Hero) Equal to True


Actions:
Environment - Change terrain type at (Center of test region <gen>) to Cityscape - White Marble using variation -1 in an area of size 134 and shape Square

and i know how to create like fixed buildings its just the terrain
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
134 that's a little bit big, don't you think?
Most maps are 128x128, 134 doesn't actually mean "134x134".
You need to multiply the number by 128, so that will give a rect of 17152x17152
As you can see, this will probably result in a failure.

Here's a little test-map
leaks have been removed and there is enough information.

Good luck with your map.
 

Attachments

  • Terrain.w3x
    17.4 KB · Views: 36
Level 28
Joined
Jan 26, 2007
Messages
4,789
alright well my map is 312x312, so how do i know which number i have to put in, like count all the little squares in a region? or ..? mean do i take the variables in my region and devide by 128?

All the information is in the map, just check the "Information" trigger
There's a little chapter called "How to calculate the size of the region?"
 
Status
Not open for further replies.
Top