Terrain change without jass?

DarkDefiance

New Member
Reaction score
2
is there a way to use more than just 1 terrain style without using JASS? obviously you open a new map and choose the type of terrain you want it to be initially but i was wondering if i could change it using regular WE without the help of JASS.
 

WilliamPa

Active Member
Reaction score
51
Go to the main window and take Advanced from the toolbar, then click the upmost button(Terrain Types or somthing?)
 

DarkDefiance

New Member
Reaction score
2
do you know how to do it with basic JASS, nothing that includes jassnewgen just the basic jass we comes with cause thats all i got to work with.
 

WilliamPa

Active Member
Reaction score
51
JASS:
function ChangeTerrainType takes location loc, integer Ttype, integer var, integer area, integer shape returns nothing
    local real x = GetLocationX(loc)
    local real y = GetLocationY(loc)
    call RemoveLocation(loc)
    set loc = null
    call SetTerrainType(x,y,Ttype,var,area,shape)
endfunction

Here it is, to use just do
Trigger:
  • Custom Script: call ChangeTerrainType(loc, Ttype, var, area, shape)


Value info:

loc: Centered location
Ttype: integer rawcode of the terrain
var: variation, normal: -1
area: size of the area where it shall spread
shape: Shape of the spread area. Square: 1, circle: 0
 

Komaqtion

You can change this now in User CP.
Reaction score
469
It's called "SetTerrainType" and it's a native that looks like this:
JASS:
native SetTerrainType takes real x, real y, integer terrainType, integer variation, integer area, integer shape returns nothing


To find the terrain type, just use the GUI actions: Enviroment - Change Terrain Type and specify your desired terrain type there, and just convert it to custom text and use the terrain type integer there :D
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top