- Joined
- Oct 17, 2007
- Messages
- 547
I made these GUI triggers so that whenever a hero gets inside a region that covers a house it adjust the transparency of that house unit to 50% allowing the player to see inside and when the hero leaves that region the house unit goes back to 0% transparency.
For some reason it only work on 1/2 of the houses numberes 4,5,6 and 7,8,9 the houses numbered 1,2,3 and 10,11,12 doesn't seem to change transparency when a unit gets inside the region. None of the working house units change back to 0% transparency after the unit leaves.
Heres the code for entering:
For some reason it only work on 1/2 of the houses numberes 4,5,6 and 7,8,9 the houses numbered 1,2,3 and 10,11,12 doesn't seem to change transparency when a unit gets inside the region. None of the working house units change back to 0% transparency after the unit leaves.
Heres the code for entering:
-
Enter Player Houses
-
Events
-
Unit - A unit enters HouseP1 <gen>
-
Unit - A unit enters HouseP2 <gen>
-
Unit - A unit enters HouseP3 <gen>
-
Unit - A unit enters HouseP4 <gen>
-
Unit - A unit enters HouseP5 <gen>
-
Unit - A unit enters HouseP6 <gen>
-
Unit - A unit enters HouseP7 <gen>
-
Unit - A unit enters HouseP8 <gen>
-
Unit - A unit enters HouseP9 <gen>
-
Unit - A unit enters HouseP10 <gen>
-
Unit - A unit enters HouseP11 <gen>
-
Unit - A unit enters HouseP12 <gen>
-
-
Conditions
-
((Triggering unit) is A Hero) Equal to True
-
(Unit-type of (Triggering unit)) Not equal to Storage Manager
-
-
Actions
-
For each (Integer A) from 1 to 12, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(HouseRegion[(Integer A)] contains (Triggering unit)) Equal to True
-
-
Then - Actions
-
Custom script: if GetLocalPlayer() == GetOwningPlayer(GetTriggerUnit()) then
-
Animation - Change HousePlayer[(Integer A)]'s vertex coloring to (100.00%, 100.00%, 100.00%) with 50.00% transparency
-
Custom script: endif
-
-
Else - Actions
-
-
-
-
-
-
Leave Player Houses
-
Events
-
Unit - A unit leaves HouseP1 <gen>
-
Unit - A unit leaves HouseP2 <gen>
-
Unit - A unit leaves HouseP3 <gen>
-
Unit - A unit leaves HouseP4 <gen>
-
Unit - A unit leaves HouseP5 <gen>
-
Unit - A unit leaves HouseP6 <gen>
-
Unit - A unit leaves HouseP7 <gen>
-
Unit - A unit leaves HouseP8 <gen>
-
Unit - A unit leaves HouseP9 <gen>
-
Unit - A unit leaves HouseP10 <gen>
-
Unit - A unit leaves HouseP11 <gen>
-
Unit - A unit leaves HouseP12 <gen>
-
-
Conditions
-
((Triggering unit) is A Hero) Equal to True
-
(Unit-type of (Triggering unit)) Not equal to Storage Manager
-
-
Actions
-
For each (Integer A) from 1 to 12, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(HouseRegion[(Integer A)] contains (Triggering unit)) Equal to True
-
-
Then - Actions
-
Custom script: if GetLocalPlayer() == GetOwningPlayer(GetTriggerUnit()) then
-
Animation - Change HousePlayer[(Integer A)]'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
-
Custom script: endif
-
-
Else - Actions
-
-
-
-
-