Fluffball
Well-Known Member
- Reaction score
- 35
Ok, I made a trigger for random terrain for 2 reasons
- Ultimate Replayability
- Players will be able to type -sunkentemple and get sunken temple type terrain and the like for different tilesets
I think it is the Co-ordinates that are screwing up, so here is the trigger.
I know it's a mess, but please help.
- Ultimate Replayability
- Players will be able to type -sunkentemple and get sunken temple type terrain and the like for different tilesets
I think it is the Co-ordinates that are screwing up, so here is the trigger.
Code:
Randomized Terrain
Events
Map initialization
Conditions
Actions
Set TempInteger = (Random integer number between 1 and 100)
For each (Integer A) from 1 to (Integer((Width of (Playable map area)))), do (Actions)
Loop - Actions
Set TempReal = ((Real((Integer A))) x 32.00)
For each (Integer B) from 1 to (Integer((Height of (Playable map area)))), do (Actions)
Loop - Actions
Set TempReal2 = ((Real((Integer B))) x 32.00)
Set TempPoint = (Point((Real((Integer A))), (Real((Integer B)))))
Environment - Change terrain type at TempPoint to TerrainAshenvale[(Random integer number between 1 and 4)] using variation -1 in an area of size 1 and shape Square
Code:
Melee Initialization
Events
Map initialization
Conditions
Actions
Set TerrainAshenvale[1] = Ashenvale - Lumpy Grass
Set TerrainAshenvale[2] = Ashenvale - Vines
Set TerrainAshenvale[3] = Ashenvale - Leaves
Set TerrainAshenvale[4] = Lordaeron Summer - Dark Grass
I know it's a mess, but please help.