![]() | |
| | #1 |
![]() Join Date: Oct 2007
Posts: 1,089
![]() ![]() | i cant get the trigger 2 work after ownership changes after the first trigger the other trigger dont work but if the first trigger does not happen the 2nd trigger works. why is this? i think it has 2 do with changing the ownership first trigger: event Unit- Base seller 0144 <gen> Sells a unit Action Unit- change ownership of demon hidout 0067 <gen> to (owner of (Buying unit)) and Change color 2nd tigger: event Unit- Aunit owned by (Owner of Demon Hidout 0067 <gen>) finishes training a unit Action If (All conditions are True) then do (then actions) else do (else actions) If-condiions (unit-type of (Trained unit)) Equal to Demon Army Then - Actions Unit - Creat 8 Demon for (owner of Demon Hidout 0067 <gen>) at (center of Demon Hidout base <gen>) facing Default biulding facing degrees PS: how can u copy the triggers and not retype them all? |
| | |
| | #2 |
![]() Join Date: Dec 2006
Posts: 2,992
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Re: i cant get the trigger 2 work after ownership changes This of all, yes, You right click the name of the trigger. The one on top of Events. Then click copy as text. It makes it a whole lot easier to read for us. Trigger 1 So Base Seller 0144 <gen> is some sort of shop that sells units or heroes. When someone buys a unit or hero from Base Seller 0144 <gen> the first trigger will activate. Demon Hidout 0067 will then will then be owned by the person who bought the unit and it will change color. Trigger 2 When the person who owns Demon Hidout 0067 finish training a unit. If the unit created is a Demon Army unit. 8 demon units will be made for the guy who owns Demon Hidout 0067 <gen> And they will be made at the Center of the region Demon Hidout base <gen> So what you are saying is that when the owner of Demon Hidout creates a unit. 8 demon army unit will be made. And when Base seller sells a unit. Demon hidout will change owners. To be sure, that is that what you want? It's hard to tell because you made so many typos. Please copy and paste the trigger next time. I first need to know and I can't help you right now at this moment, Warcraft is not installed on this computer. |
| | |
| | #3 |
![]() Join Date: Oct 2007
Posts: 1,089
![]() ![]() | Re: i cant get the trigger 2 work after ownership changes demons hidout Events Unit - Base Seller 0144 <gen> Sells a unit Conditions Actions Unit - Change ownership of Demon Hidout 0067 <gen> to (Owner of (Buying unit)) and Change color Unit - Change ownership of Watch Tower 0134 <gen> to (Owner of (Buying unit)) and Change color Unit - Change ownership of Watch Tower 0137 <gen> to (Owner of (Buying unit)) and Change color Unit - Change ownership of Watch Tower 0135 <gen> to (Owner of (Buying unit)) and Change color Unit - Change ownership of Watch Tower 0136 <gen> to (Owner of (Buying unit)) and Change color Unit - Change ownership of Watch Tower 0133 <gen> to (Owner of (Buying unit)) and Change color Unit - Remove (Sold unit) from the game Unit - Remove (Selling unit) from the game trigger 2 Demon Hidout base army Events Unit - A unit owned by (Owner of Demon Hidout 0067 <gen>) Finishes training a unit Conditions Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Unit-type of (Trained unit)) Equal to Demon Army Then - Actions Unit - Create 8 Baby Pit Lord for (Owner of Demon Hidout 0067 <gen>) at (Center of Demon Hidout base <gen>) facing Default building facing degrees Unit - Create 3 Demon for (Owner of Demon Hidout 0067 <gen>) at (Center of Demon Hidout base <gen>) facing Default building facing degrees Unit - Create 1 Pit Lord for (Owner of Demon Hidout 0067 <gen>) at (Center of Demon Hidout base <gen>) facing Default building facing degrees Unit - Remove (Trained unit) from the game Else - Actions Do nothing theres the full triggers yes the first one changes ownership of the base (and some towers) and the 2nd one makes 12 troops and removes 1 troops made |
| | |
| | #4 |
![]() Join Date: Sep 2006 Location: Your Mom
Posts: 2,241
![]() | Re: i cant get the trigger 2 work after ownership changes I would say you cannot use that event with anything dynamic. When the game generates the triggers during loading, that registers as whoever owns the unit then. So Try instead. Code: Events
A unit finishes training
Conditions
Owner of (Training Unit) == Owner of (Demon Hidout 0067 <gen>)
Actions
Go on as you would |
| | |
| | #5 |
![]() Join Date: Oct 2007
Posts: 1,089
![]() ![]() | Re: i cant get the trigger 2 work after ownership changes Thanks it works now but i used "a unit finishes training a unit" because i did not find "a unit finishes training" how did u get the trigger in the box? Code: like this?, did u use["code]trigger here[/"code] but no quotes?... i think i found out lol |
| | |
| | #6 |
![]() Join Date: Sep 2006 Location: Your Mom
Posts: 2,241
![]() | Re: i cant get the trigger 2 work after ownership changes I just wrote it out, theres no == in GUI either. But yes, I use the code tags. |
| | |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||||
| Thread | Thread Starter | Forum | Replies | Last Post | ||
| Bluebomber | World Editor Help | 5 | 02-18-2008 05:10 PM | ||
| Trigger Thread, These might help you. | Halakbalakbalak | World Editor Help | 1 | 10-21-2007 12:45 PM | ||
| Unit editor basic guide | Halakbalakbalak | Submit a Tutorial [World Editor] | 1 | 10-19-2007 02:18 PM | ||
| Respawning + Hero Selection on Circle | DarkBlade | Tutorials | 4 | 09-07-2007 07:56 PM | ||
| Trigger error | MoonRazer | World Editor Help | 2 | 07-18-2007 12:45 PM | ||