| 09-22-2004, 05:19 PM | #1 |
This trigger is supposed to add 1 to the variable NumberBlueTowers whenever the Blue (tower) Builder finishes building a tower. I was wondering if "Tiggering unit" doesn't correspond to "Unit - A unit Finishes construction." Anyway, could sombody please explain why this won't work and/or a way to fix the problem. Tower Colors Events Unit - A unit Finishes construction Conditions Actions If ((Unit-type of (Triggering unit)) Equal to BlueBuilder) then do (Set NumberBlueTowers = (NumberBlueTowers + 1)) else do (Do nothing) |
| 09-22-2004, 08:33 PM | #2 |
Use Building Unit instead of Triggering Unit. I'm pretty sure Triggering unit gives you the building. You can never be sure with it. |
| 09-22-2004, 10:30 PM | #3 | |
Quote:
There is no building unit, only building structure and that is supposed to be used when "Unit - A unit begins construction" and it refers to the building not the builder. Thanks for your reply, though. |
| 09-22-2004, 11:18 PM | #4 | |
Quote:
use constructed unit, or constructing unit, those are the ones that work with unit finished construction. |
| 09-22-2004, 11:30 PM | #5 | |
Quote:
I am using WEU (I don't think that should make a difference) and I don't have "Constructing unit," all I have is "Constructing structure" which refers to the building being created when the condition Unit- a unit begins construction is met. I tried to explain this in my last post but I accidently wrote the wrong word. |
| 09-22-2004, 11:41 PM | #6 | |
Quote:
You dont have "Event Response - Constructed Unit"? just use that. If you dont have that, WEU is not very worth while. Code:
Tower Colors Events Unit - A unit Finishes construction Conditions Actions If (Owner of (Constructed structure)) Equal to Player 2 (Blue) Equal to BlueBuilder) then do (Set NumberBlueTowers = (NumberBlueTowers + 1)) else do (Do nothing) |
| 09-23-2004, 12:03 AM | #7 | |
Quote:
I checked the standard WE and it didn't have "Event Response - Constructed Unit" either. I attached screenshots of the event response lists from both the standared WE and WEU EDIT: Oh, yeah, your solution won't work because the blue builder isn't connected to a particular player, but thanks anyway. |
| 09-23-2004, 12:38 AM | #8 | |
Quote:
that was just one way I put it. but I still think you are blind, no offense, I used that command in my TD. Here is a screeny of it. |
| 09-23-2004, 01:43 AM | #9 | |
Quote:
I don't want "Event response -constructed structure" (which is what your screenshot shows) , I want "Event response - Constructing unit" (which doesn't seem to exist). I think the reason it doesn't exist is because if the structure has finished construction then there isn't any unit (still) constructing it. Anyway, I am still without an answer to this problem. |
| 09-23-2004, 01:47 AM | #10 |
Pick every unit within 75 range of constructed structure matching condition unit type = to builder Play around with the range and conditions till it works for all situations |
| 09-23-2004, 04:52 AM | #11 | |
Quote:
Ill try it out, it sounds promising, thanks. Additional ideas are still appreciated. |
