Hi, in my trigger i want that if i build more than 1 lumberbase level 1 it removes the second lumberbase from the game (like not being able to construct more than one) and display a floating text on the head of the builder of this unit.
I tried this trigger but it doesn't works and i really don't know why...
I tried this trigger but it doesn't works and i really don't know why...
-
lb1 restriction
-
Events
-
Conditions
-
(Number of units in (Units owned by (Owner of (Picked unit)))) Superior to 1
-
(Unit-type of (Picked unit)) Equal to Lumber Base 1 good one
-
-
Actions
-
Custom script: set bj_wantDestroyGroup = true
-
Unit groupe - Pick every unit in (Units owned by (Owner of (Picked unit))) and do (Actions)
-
Loop - Actions
-
Floating text - Create floating text that reads You can only build ... at (Position of (Picked unit)) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
-
Unit - Remove (Picked unit) from the game
-
-
-
-
-
[ /trigger]