- Joined
- Jul 7, 2011
- Messages
- 14
Firstly I know next to nothing about Jass. I have taken the custom script from various Jass topics throughout the site and manipulated it the best I can to make it GUI friendly.
The trigger is almost perfect. It searches through the region and changes the terrain and places LOS Blockers.
The problem I have is it only finishes 90% of the region. And for the life of me I can't figure out why?
Any help would be greatly appreciated. As this trigger will be reused time and time again throughout my map.
The trigger is almost perfect. It searches through the region and changes the terrain and places LOS Blockers.
The problem I have is it only finishes 90% of the region. And for the life of me I can't figure out why?
Any help would be greatly appreciated. As this trigger will be reused time and time again throughout my map.
-
Build 2
- Events
- Conditions
-
Actions
- Custom script: local real x = GetRectMinX(gg_rct_Cave_1)
- Custom script: local real y
- Custom script: loop
- Custom script: exitwhen x > GetRectMaxX(gg_rct_Cave_1)
- Custom script: set y = GetRectMinY(gg_rct_Cave_1)
- Custom script: loop
- Custom script: exitwhen y > GetRectMaxY(gg_rct_Cave_1)
- Custom script: set udg_TempPoint[1] = Location(x, y)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Terrain type at TempPoint[1]) Equal to Village Fall - Stone Path
-
Then - Actions
- Destructible - Create a Line of Sight Blocker at TempPoint[1] facing (Random angle) with scale 1.00 and variation 0
- Environment - Change terrain type at TempPoint[1] to Outland - Abyss using variation -1 in an area of size 1 and shape Circle
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Terrain type at TempPoint[1]) Not equal to Cityscape - Grass
- (Terrain type at TempPoint[1]) Not equal to Outland - Abyss
- (Terrain type at TempPoint[1]) Not equal to Outland - Abyss Cliff
- (Terrain type at TempPoint[1]) Not equal to Ashenvale - Grassy Dirt
-
Then - Actions
- Environment - Change terrain type at TempPoint[1] to Underground - Grey Stones using variation -1 in an area of size 1 and shape Circle
- Else - Actions
-
If - Conditions
- Custom script: call RemoveLocation( udg_TempPoint[1] )
- Custom script: set y = y + 128
- Custom script: endloop
- Custom script: set x = x + 128
- Custom script: endloop