HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Adding Buildable Area

02-05-2005, 02:38 AM#1
yuripro84
ok, im wondering if theres any way of making it so that buildings can ONLY be built within a certain range of other buildings. Your probably gonna say use the blight growth used for undead, right??i dont want it to appear blight, in fact, i dont want it to show any changes in terrain, just having a limit in building range. or is this even possible??
02-05-2005, 03:34 AM#2
c0nnick
Simple really... Have a trigger detect when a building is created. If the building is not close enough to the pylon-type building, remove the building and give the player a refund.

Edit: The event to use is "A unit finishes construction"
02-05-2005, 04:51 AM#3
yuripro84
ok, so something like...

well, not really what i wanted, i want to make it so that it wont even allow it to be built outside of the allowed area, just like how the undeads can only use blight, it wont even let you build, its red when you go outside of the blight area. anyone know how to do this w/o adding blight or any other type of terrain??
02-07-2005, 09:21 PM#4
Guest
Change the building's collision size so it's bigger. All I can tell you is that you can't make an area go red when you pass the mouse over while getting a building location through triggers.
02-07-2005, 10:13 PM#5
Guest
I don't suppose there's any way to change the blight model is there - change it to one that depicts nothing (so that it doesn't obscure your terrain).
02-07-2005, 11:07 PM#6
ElvinArcher123
yes you can. create 2 dummy units. 1 with blight dispell small and one with blight generate small. Create these where you wish to destroy/create blight :-P
02-07-2005, 11:15 PM#7
ThyFlame
I have never heard of a solution for what you want, nor have I heard of a way to change the graphic of blight. If you somehow managed to find the location of the blight and completely alpha'ed said graphic.

However, to do the above you'd likely have to edit one of the files in the WC3 folder, and that would force the user to have the same modified file, ergo I forsee the impossible for what you want.
02-08-2005, 02:20 AM#8
yuripro84
Quote:
Originally Posted by BadFurDay
Change the building's collision size so it's bigger. All I can tell you is that you can't make an area go red when you pass the mouse over while getting a building location through triggers.
il just do this, thanx for all your help guys ^_^
02-08-2005, 06:47 AM#9
D0nk1ckh0t
Hey, I found a trigger to do something with ability to build in an area in WEU:
Code:
Advanced - Make (Playable map area) Buildable
Maybe you could make all map except the area around the main building (Construction Yard or whatever it was in C&C) unbuildable and then once a building is constructed you create another buildable area around it (may need checks for cliffs/water).
02-08-2005, 08:34 AM#10
Guest
but to do what D0nk1ckh0t said, you need to open your map with WEU and use a WEU trigger, so expect it size to go 3 or 4 times bigger than it is now
02-08-2005, 09:30 AM#11
D0nk1ckh0t
No the WEU doesnt add THAT much size.. provided you optimize it properly. And be sure not to check ALL of the options, you only need Advanced triggers
And since they are making a project with several people involved, I guess there will be optimization.
02-08-2005, 09:34 AM#12
Guest
Well WEU is not a perfect editor yet. It requires a lot of things to work and pomps your filesize. But in a few months there will be a better version with some filesize boosting options disabled. If you want some advanced triggers and no boosting things such as added hero glows 90° cliffs etc. get UMSWE it increases your filesize by 2kb only lol ^_^