Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
Unfortunately there's no Event response to get the builder, however, there are some workarounds.
This trigger should work for Orc and Night Elf buildings since the worker goes inside of the structure in order to construct it.
The idea is to pick every worker within 1 range of the constructing structure. This works because the peon or wisp are actually hidden and positioned at the very center of the structure.
Get Peon/Wisp Builder
Events
Unit - A unit Begins construction
Conditions
Actions
Set VariableSet tempPoint = (Position of (Constructing structure))
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units within 1.00 of tempPoint.) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Peon
((Picked unit) is alive) Equal to True
Then - Actions
Set VariableSet tempUnit = (Picked unit)
Else - Actions
Game - Display to (All players) for 30.00 seconds the text: (Name of tempUnit)
Unfortunately there's no Event response to get the builder, however, there are some workarounds.
This trigger should work for Orc and Night Elf buildings since the worker goes inside of the structure in order to construct it.
The idea is to pick every worker within 1 range of the constructing structure. This works because the peon or wisp are actually hidden and positioned at the very center of the structure.
Get Peon/Wisp Builder
Events
Unit - A unit Begins construction
Conditions
Actions
Set VariableSet tempPoint = (Position of (Constructing structure))
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units within 1.00 of tempPoint.) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Peon
((Picked unit) is alive) Equal to True
Then - Actions
Set VariableSet tempUnit = (Picked unit)
Else - Actions
Game - Display to (All players) for 30.00 seconds the text: (Name of tempUnit)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.