Building on terrain i dont want to build on

DrEvil

FCRI Associate!
Reaction score
111
Well for my TD

I have an icy theme , but i just realised that you can build on my ice path :mad:

Is there any way i can tell if a building is built on that type of terrain ?

EDITED : For the great Bollo :D
 

Attachments

  • DBD - Party House.w3x
    46.1 KB · Views: 119

Accname

2D-Graphics enthusiast
Reaction score
1,462
you can use newgen to change the pathability of any terrain type to whatever you like.
otherwise it will be kinda hard to do this. with some more advanced GUI you could make it more easy.
something like may help: (I am not sure)
Code:
Untitled Trigger 001
    Events
        Unit - A unit Begins construction
    Conditions
    Actions
        Set Z_TempPoint = (Position of (Triggering unit))
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Terrain type at Z_TempPoint) Equal to Icecrown Glacier - Snow
            Then - Actions
                Custom script: call IssueImmediateOrderById( GetTriggerUnit(), 851976 )
            Else - Actions
         Custom script: call RemoveLocation (udg_Z_TempPoint)
this will cancel the construction of your structure if it is build on Icecrown Glacier - Snow terrain type. if you cancel the construction of a building you will recieve the costs, about 50% but you can change that in the gameplay constants.
 

DrEvil

FCRI Associate!
Reaction score
111
Im using newgen but its kinda f*cked a bit , but how do i change the pathability anyway ?
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
(I expact you are using the newest version)
go to UMSWE, enable Custom Tile Pathability, then use Customize Tile Pathability, save your map, close the editor and open it again. it works very fine for me.
 

DrEvil

FCRI Associate!
Reaction score
111
(I expact you are using the newest version)
go to UMSWE, enable Custom Tile Pathability, then use Customize Tile Pathability, save your map, close the editor and open it again. it works very fine for me.


Dude your a genious , you've helped alot of my questions +rep
 

TechGeek001

New Member
Reaction score
3
I know ToK:BC had a trigger similar to that where if you tried to build in a region it would cancel it for you. Lemme see if I can find that...
Code:
Blue Bunkers
    Events
        Unit - A unit Begins construction
    Conditions
        And - All (Conditions) are true
            Conditions
                (Unit-type of (Constructing structure)) Equal to Bunker
                (No Blue Bunker Here <gen> contains (Constructing structure)) Equal to True
                Or - Any (Conditions) are true
                    Conditions
                        (Owner of (Constructing structure)) Equal to Player 3 (Teal)
                        (Owner of (Constructing structure)) Equal to Player 4 (Purple)
                        (Owner of (Constructing structure)) Equal to Player 5 (Yellow)
    Actions
        Game - Display to (Player group((Owner of (Constructing structure)))) for 10.00 seconds the text: |cff00FFFFYou are n...
        Game - Force (Owner of (Constructing structure)) to press Escape/Cancel
You should be able to modify this according to your specific needs.

EDIT: Aw man - late to actually post this...spent too long looking for trigger...I tried ;D
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top