- Joined
- Jul 19, 2019
- Messages
- 72
Hi.
I need help with a trigger I can't get it working.
The above trigger works, but it works so well, its not allowing the structure
to be build anywhere. I don't know if the terrain type condition is not working
or if I am doing something wrong.
I am using a custom tileset "Ashenvale" but I am using other terrain from other tilesets,
specifically "Barrens - Desert". Is it not working for custom tilesets?
I need help with a trigger I can't get it working.
-
prevent temple build
-
Events
-
Unit - A unit Begins construction
-
-
Conditions
-
(Unit-type of (Constructing structure)) Equal to Temple
-
-
Actions
-
Set C_Loc = (Position of (Constructing structure))
-
Set C_Type = (Terrain type at C_Loc)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
C_Type Not equal to Barrens - Desert
-
-
Then - Actions
-
Unit - Explode (Constructing structure)
-
Game - Display to (Player group((Owner of (Triggering unit)))) for 3.00 seconds the text: |c00ff0000You can't...
-
Player - Add 100 to (Owner of (Triggering unit)) Current gold
-
-
Else - Actions
-
-
Custom script: call RemoveLocation ( udg_C_Loc )
-
-
The above trigger works, but it works so well, its not allowing the structure
to be build anywhere. I don't know if the terrain type condition is not working
or if I am doing something wrong.
I am using a custom tileset "Ashenvale" but I am using other terrain from other tilesets,
specifically "Barrens - Desert". Is it not working for custom tilesets?