- Joined
- Jun 27, 2010
- Messages
- 2,763
Hey i'm trying to change the tiles of the whole map, by checking centemeter by centimeter the map.
I don;t have much successes. It changes some tiles, but not most and there is space between them.
My idea is to begin from the top left corner and check by incrementing the point with offset +10 and then begin from y -10 again and so on. Like rows .
here;s what I did but its not working:
I will upload a test map to show
there are 2 regions: 1 is the top corner from where the checks begin and 2. the bottom left,where it ends, if TwmpYPoint meets with the second region
it goes like:
1.increment with TilesCheckAreaIncrement until you reach the horizontal end of the map.
2. then increment vertical poiint (begin of a new row) and repeat 1. until you reach the second region which is the bottom left corner of the map
I don;t have much successes. It changes some tiles, but not most and there is space between them.
My idea is to begin from the top left corner and check by incrementing the point with offset +10 and then begin from y -10 again and so on. Like rows .
here;s what I did but its not working:
I will upload a test map to show
there are 2 regions: 1 is the top corner from where the checks begin and 2. the bottom left,where it ends, if TwmpYPoint meets with the second region
it goes like:
1.increment with TilesCheckAreaIncrement until you reach the horizontal end of the map.
2. then increment vertical poiint (begin of a new row) and repeat 1. until you reach the second region which is the bottom left corner of the map
-
Command summer
-
Events
-
Player - Player 1 (Red) types a chat message containing -summer as An exact match
-
-
Conditions
-
SeasonSet Equal to False
-
-
Actions
-
-------- --------------------------------- --------
-
Set SeasonSet = True
-
-------- --------------------------------- --------
-
Set TempPoint = (Center of Region 000 <gen>)
-
Set TopCornerPoint = TempPoint
-
Set TempYPoint = TempPoint
-
Set TilesCheckAreaIncrement = 100
-
-------- --------------------------------- --------
-
-------- --------------------------------- --------
-
For each (Integer A) from 1 to (Integer((((Width of (Playable map area)) + (Height of (Playable map area))) / (Real(TilesCheckAreaIncrement))))), do (Actions)
-
Loop - Actions
-
-------- set X and Y increment coordinates of next check --------
-
-------- set X and Y coordinates of next check --------
-
Set SeasonsXCount = (SeasonsXCount + TilesCheckAreaIncrement)
-
Set TempPoint = (TempYPoint offset by (Real(SeasonsXCount)) towards 360.00 degrees)
-
-------- --------------------------------- --------
-
-------- --------------------------------- --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Terrain type at TempPoint) Equal to Lordaeron Fall - Dirt
-
-
Then - Actions
-
Environment - Change terrain type at TempPoint to Lordaeron Summer - Dirt using variation -1 in an area of size 1 and shape Circle
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Terrain type at TempPoint) Equal to Lordaeron Fall - Rough Dirt
-
-
Then - Actions
-
Environment - Change terrain type at TempPoint to Lordaeron Summer - Rough Dirt using variation -1 in an area of size 1 and shape Circle
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Terrain type at TempPoint) Equal to Lordaeron Fall - Grassy Dirt
-
-
Then - Actions
-
Environment - Change terrain type at TempPoint to Lordaeron Summer - Grassy Dirt using variation -1 in an area of size 1 and shape Circle
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Terrain type at TempPoint) Equal to Lordaeron Fall - Grass
-
-
Then - Actions
-
Environment - Change terrain type at TempPoint to Lordaeron Summer - Grass using variation -1 in an area of size 1 and shape Circle
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Terrain type at TempPoint) Equal to Lordaeron Fall - Dark Grass
-
-
Then - Actions
-
Environment - Change terrain type at TempPoint to Lordaeron Summer - Dark Grass using variation -1 in an area of size 1 and shape Circle
-
-
Else - Actions
-
-
-------- --------------------------------- --------
-
-------- --------------------------------- --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
SeasonsXCount Greater than or equal to (Integer(((Width of (Playable map area)) / (Real(TilesCheckAreaIncrement)))))
-
-
Then - Actions
-
Set SeasonsYCount = (SeasonsYCount + TilesCheckAreaIncrement)
-
Set TempYPoint = (TopCornerPoint offset by (Real(SeasonsYCount)) towards 270.00 degrees)
-
Set SeasonsXCount = 0
-
Custom script: call RemoveLocation(udg_TempPoint)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Region 001 <gen> contains TempYPoint) Equal to True
-
-
Then - Actions
-
Skip remaining actions
-
Custom script: call RemoveLocation(udg_TempYPoint)
-
-
Else - Actions
-
-
Custom script: call RemoveLocation(udg_TempYPoint)
-
-
Else - Actions
-
-
-
-
Trigger - Turn off (This trigger)
-
-
Attachments
Last edited: