(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Warcraft III Modding > World Editor Help Zone

World Editor Help Zone Need help with Blizzard's World Editor? Ask general questions about its features and use in this forum. README!

Reply
 
LinkBack Thread Tools Display Modes
Old 11-29-2008, 12:34 PM   #1 (permalink)
 
arafor's Avatar

Just makin maps that pown
 
Join Date: Jul 2008
Posts: 157

arafor has little to show at this moment (12)arafor has little to show at this moment (12)


Trigger action for this. (destroying all of a players' units on <unit> death)

In my map there is a main builder unit and if he dies then all of your units die.
Although I don't have the trigger in front of me it goes something like this.
Event: A Unit Dies
Condition: Unit Type Equal to Razormane Artisan
Action: Ive looked under the units section and I cannot find a trigger that destroys all of the buildings and units owned by the player after this unit dies.
Help is appreciated.
arafor is offline   Reply With Quote
Old 11-29-2008, 12:41 PM   #2 (permalink)
 
Arusar's Avatar

Pembolos
 
Join Date: Nov 2008
Posts: 53

Arusar has little to show at this moment (10)Arusar has little to show at this moment (10)


Pick every unit owned by (owner of "dying" unit)
-If
-picked unit equal to building(structure or something)
-Act
-Kill picked unit
__________________
If People Help U

Don't Forget To Click The Icon For The People Who Help U
Click Make Me Happy
Not Click Make Me Sad
Arusar is offline   Reply With Quote
Old 11-29-2008, 12:43 PM   #3 (permalink)
 
Darkhunty's Avatar

Low Map Maker
 
Join Date: Mar 2008
Posts: 89

Darkhunty has little to show at this moment (3)


Actions
Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit))) and do (Actions)
Loop - Actions
Unit - Kill (Picked unit)
__________________
This trigger doesnīt work
Darkhunty is offline   Reply With Quote
Old 11-29-2008, 01:08 PM   #4 (permalink)
 
Airandius's Avatar

I arez flying! Whieee!
 
Join Date: Jun 2007
Posts: 781

Airandius is a jewel in the rough (192)Airandius is a jewel in the rough (192)


Donīt forget to clean leaks!

Custom script: set bj_wantDestroyGroup = true
__________________
Airandius is offline   Reply With Quote
Old 11-29-2008, 04:53 PM   #5 (permalink)
 
arafor's Avatar

Just makin maps that pown
 
Join Date: Jul 2008
Posts: 157

arafor has little to show at this moment (12)arafor has little to show at this moment (12)


Quote:
Donīt forget to clean leaks!
Ive never encountered leaks before and barely know what they are why would this trigger make a "leak"?
arafor is offline   Reply With Quote
Old 11-29-2008, 05:02 PM   #6 (permalink)
 
Airandius's Avatar

I arez flying! Whieee!
 
Join Date: Jun 2007
Posts: 781

Airandius is a jewel in the rough (192)Airandius is a jewel in the rough (192)


Quote:
Originally Posted by arafor View Post
Ive never encountered leaks before and barely know what they are why would this trigger make a "leak"?
Because I'm to lazy to explain this every time read these 2 links.
Things That Leak
Basic Memory Leaks
__________________
Airandius is offline   Reply With Quote
Old 11-29-2008, 05:03 PM   #7 (permalink)

User
 
Join Date: Nov 2007
Posts: 156

YO_MA_MA has little to show at this moment (12)YO_MA_MA has little to show at this moment (12)


ask and you shall recieve:

Things That Leak

EDIT: doh not quick enough lol
YO_MA_MA is offline   Reply With Quote
Old 11-30-2008, 03:42 PM   #8 (permalink)
 
arafor's Avatar

Just makin maps that pown
 
Join Date: Jul 2008
Posts: 157

arafor has little to show at this moment (12)arafor has little to show at this moment (12)


Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to Razormane Artisan
Actions
Unit Group - Pick every unit in (Units in (Playable map area) owned by (Owner of (Triggering unit))) and do (Unit Group - Remove all units of (Units owned by (Owner of (Triggering unit))) from (Units in (Playable map area)))
WHy isn't this trigger working? The unit died that I wanted but then the other units that I owned didn't go away. Without this kind of trigger my map is on standstill. Help please
arafor is offline   Reply With Quote
Old 11-30-2008, 05:41 PM   #9 (permalink)
 
Airandius's Avatar

I arez flying! Whieee!
 
Join Date: Jun 2007
Posts: 781

Airandius is a jewel in the rough (192)Airandius is a jewel in the rough (192)


Use this:

Yay
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to Footman
Actions
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit))) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game

U better give me a cookie for all of this work. xD
__________________
Airandius is offline   Reply With Quote
Old 11-30-2008, 05:44 PM   #10 (permalink)
 
arafor's Avatar

Just makin maps that pown
 
Join Date: Jul 2008
Posts: 157

arafor has little to show at this moment (12)arafor has little to show at this moment (12)


I just ran out of cookies but I have something better..... thanks I will try this trigger out.
Problem with the trigger
Untitled Trigger 006
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to Razormane Artisan
Actions
Custom script: Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit))) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Please tell me what I did wrong.
arafor is offline   Reply With Quote
Old 11-30-2008, 10:21 PM   #11 (permalink)
 
bounty hunter2's Avatar

Mapper
 
Join Date: Sep 2005
Posts: 785

bounty hunter2 will become famous soon enough (108)bounty hunter2 will become famous soon enough (108)bounty hunter2 will become famous soon enough (108)


unit type of dying unit not triggering i think
and units in entire map pick
__________________
[12-20-47] bounty hunter2 has joined the channel
[12-32-46] iSky: bounty hunter2, u die u pandaria fan
bounty hunter2 is offline   Reply With Quote
Old 11-30-2008, 10:25 PM   #12 (permalink)
 
arafor's Avatar

Just makin maps that pown
 
Join Date: Jul 2008
Posts: 157

arafor has little to show at this moment (12)arafor has little to show at this moment (12)


Thats not the real problem I think there was an error with the Custom Script or something like that.
arafor is offline   Reply With Quote
Old 11-30-2008, 10:27 PM   #13 (permalink)
 
Airandius's Avatar

I arez flying! Whieee!
 
Join Date: Jun 2007
Posts: 781

Airandius is a jewel in the rough (192)Airandius is a jewel in the rough (192)


Look very close

Custom script: Custom script: set bj_wantDestroyGroup = true
__________________
Airandius is offline   Reply With Quote
Old 11-30-2008, 10:35 PM   #14 (permalink)
 
arafor's Avatar

Just makin maps that pown
 
Join Date: Jul 2008
Posts: 157

arafor has little to show at this moment (12)arafor has little to show at this moment (12)


Lol wow that was a stupid mistake. Anyways it works thanks. :)
arafor is offline   Reply With Quote
Old 12-01-2008, 10:51 AM   #15 (permalink)
 
Need_O2's Avatar

meow
 
Join Date: Aug 2007
Posts: 2,528

Need_O2 is a jewel in the rough (183)Need_O2 is a jewel in the rough (183)


Quote:
Originally Posted by Airandius View Post
Donīt forget to clean leaks!

Custom script: set bj_wantDestroyGroup = true
I dont think that its a good thing to teach leaks to who doesnt even know about unit groups
that may cause confusion
he'll learn things like that later
Need_O2 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not 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 On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Trigger] Moving a Dummy Unit by trigger to a point and then destroying it En_Fuego Triggers & Scripts 12 08-27-2008 11:39 PM
Death Unit Buff Trigger Equal Triggers & Scripts 2 01-19-2008 10:04 PM
[Trigger] Unit death trigger location check sk8er754 Triggers & Scripts 9 10-20-2007 01:56 AM
Destructable destroying trigger daw_guy World Editor Help Zone 2 09-03-2007 08:02 PM
Destroying a trigger in-game? Modeler Map Development 3 10-03-2005 02:28 AM

All times are GMT. The time now is 07:48 AM.






Your link here 
Debt Consolidation | Loans | Fast Loans | Bankruptcy | Debt Consolidation