PoLlama Forums  

Go Back   PoLlama Forums > WarCraft > World Editor Help

Reply
 
LinkBack Thread Tools
Old 02-06-2008   #1
 
shocker's Avatar
 
Join Date: Oct 2007
Posts: 1,089
shocker is a jewel in the roughshocker is a jewel in the rough
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?
shocker is offline   Reply With Quote
Old 02-06-2008   #2
 
MrOrange's Avatar
 
Join Date: Dec 2006
Posts: 2,992
MrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond repute
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.
MrOrange is offline   Reply With Quote
Old 02-06-2008   #3
 
shocker's Avatar
 
Join Date: Oct 2007
Posts: 1,089
shocker is a jewel in the roughshocker is a jewel in the rough
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
shocker is offline   Reply With Quote
Old 02-07-2008   #4
 
MrApples's Avatar
 
Join Date: Sep 2006
Location: Your Mom
Posts: 2,241
MrApples has a spectacular aura about
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
Really don't use events like that for anything other than scenario stuff.
MrApples is offline   Reply With Quote
Old 02-08-2008   #5
 
shocker's Avatar
 
Join Date: Oct 2007
Posts: 1,089
shocker is a jewel in the roughshocker is a jewel in the rough
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
shocker is offline   Reply With Quote
Old 02-08-2008   #6
 
MrApples's Avatar
 
Join Date: Sep 2006
Location: Your Mom
Posts: 2,241
MrApples has a spectacular aura about
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.
MrApples is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Triggering
Triggering
Trigger for specific unit if picked...
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


All times are GMT -5. The time now is 09:30 PM.

A friend of Wc3Happy
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165