- Joined
- Nov 10, 2019
- Messages
- 14
Must be in GUI, possibly with custom scripts.
if impossible to do so, JASS can be used instead with a greater explanation, since I've never used JASS.
I've been looking around the hws, and I'm a bit confused?
I've been working on a TD, where you vote for the track to be used.
The voted track will therefore be set and the rest of the terrain should be changed.
In the start, while you're voting I have 3 tracks that are being shown how the units would run if it were the one that was chosen.
Now as the track has been chosen the space of the other tracks will be used for something else, therefore they should be changed & regions removed.
Below I've set the precreated regions from terrain editor to each their index value, in a global region variable "RegionsRemove[]"
How do I change the terrain type in those regions, for the whole region?
Whereas this of course only covers the center tile of the region.
I've figured I might have to do some set locations X and Y, but I'm not really sure about it.
When the timer expires it should:
• Change the terrain type for all the regions.
• destroy the regions - as they won't be used anymore
• possibly take care of leaks (if it does leak)??
---- Conditions of the voted track has been left out, as that is not the problem. ----
Help would be appreciated
if impossible to do so, JASS can be used instead with a greater explanation, since I've never used JASS.
I've been looking around the hws, and I'm a bit confused?
I've been working on a TD, where you vote for the track to be used.
The voted track will therefore be set and the rest of the terrain should be changed.
In the start, while you're voting I have 3 tracks that are being shown how the units would run if it were the one that was chosen.
Now as the track has been chosen the space of the other tracks will be used for something else, therefore they should be changed & regions removed.
Below I've set the precreated regions from terrain editor to each their index value, in a global region variable "RegionsRemove[]"
-
setting region indexes
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Set RegionsRemove[0] = 01 <gen>
-
Set RegionsRemove[1] = 010 <gen>
-
Set RegionsRemove[2] = 011 <gen>
-
Set RegionsRemove[3] = 012 <gen>
-
-
-
timer expires
-
Events
-
Time - terraintimer expires
-
-
Conditions
-
Actions
-
For each (Integer A) from 0 to 3, do (Actions)
-
Loop - Actions
-
Environment - Change terrain type at (Center of RegionsRemove[(Integer A)]) to Lordaeron Summer - Grass using variation -1 in an area of size 1 and shape Square
-
-
-
-
I've figured I might have to do some set locations X and Y, but I'm not really sure about it.
When the timer expires it should:
• Change the terrain type for all the regions.
• destroy the regions - as they won't be used anymore
• possibly take care of leaks (if it does leak)??
---- Conditions of the voted track has been left out, as that is not the problem. ----
Help would be appreciated
Last edited: