(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 07-17-2008, 03:30 PM   #1 (permalink)
 
iVengeance.'s Avatar

iVengeance.
 
Join Date: Jun 2008
Posts: 30

iVengeance. is an unknown quantity at this point (0)


Exclamation Removing units in a region after pressing key

I'm making a simple map, but fun one.
I need a trigger that goes as follows, but I cant figure out how to create one.
Either:
Event: Player presses left arrow key
Action: remove all units in region

Or

Event: Player presses Z
Action: remove all units in region.

An image:

|o| | || |
|o|o|o|o|

When the only o above the others gets on top of another o, I want it so that if you press either z or the left arrow key, it removes it from the game.

Anyone got any suggestions.
If not I'm, stuck!
iVengeance. is offline   Reply With Quote
Old 07-17-2008, 03:39 PM   #2 (permalink)
 
En_Fuego's Avatar

,
 
Join Date: Sep 2006
Posts: 470

En_Fuego has disabled reputation


Untitled Trigger 001
Events
Player - Player 1 (Red) Presses the Left Arrow key
Conditions
Actions
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
Unit - Kill (Picked unit)
__________________
En_Fuego is offline   Reply With Quote
Old 07-17-2008, 03:44 PM   #3 (permalink)
 
Ribenamania's Avatar

I'm ready !
 
Join Date: May 2008
Posts: 555

Ribenamania is on a distinguished road (81)Ribenamania is on a distinguished road (81)


Quote:
I'm making a simple map, but fun one.
I need a trigger that goes as follows, but I cant figure out how to create one.
Either:
Event: Player presses left arrow key
Action: remove all units in region

Or

Event: Player presses Z
Action: remove all units in region.

An image:

|o| | || |
|o|o|o|o|

When the only o above the others gets on top of another o, I want it so that if you press either z or the left arrow key, it removes it from the game.

Anyone got any suggestions.
If not I'm, stuck!
Is this game works like O2jam ? I don't really get what's you're saying but if what you mean is like O2jam, hitting the note..You can make it like this

Make an aura skill for the "o" and make a buff for it.

The Trigger You Made
Events
Player - Player 1 (Red) Presses the Left Arrow key
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
Unit - Kill Units Matching Condition ((Unit has buff TIMETOHIT(TheBuffYouMade)))
Hope it helps you.
Ribenamania is offline   Reply With Quote
Old 07-17-2008, 04:05 PM   #4 (permalink)
 
iVengeance.'s Avatar

iVengeance.
 
Join Date: Jun 2008
Posts: 30

iVengeance. is an unknown quantity at this point (0)


Exclamation Allright... Now what?

Quote:
Originally Posted by En_Fuego View Post
Untitled Trigger 001
Events
Player - Player 1 (Red) Presses the Left Arrow key
Conditions
Actions
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
Unit - Kill (Picked unit)
Allright, that works, only one issue.
I dont want it to destroy my circle of power there, its kind of my marker.
Any other suggestions?
iVengeance. is offline   Reply With Quote
Old 07-17-2008, 04:38 PM   #5 (permalink)
 
En_Fuego's Avatar

,
 
Join Date: Sep 2006
Posts: 470

En_Fuego has disabled reputation


Is it invulnerable?
__________________
En_Fuego is offline   Reply With Quote
Old 07-17-2008, 04:41 PM   #6 (permalink)
 
Huurka's Avatar

Um.
 
Join Date: May 2008
Posts: 1,536

Huurka is a jewel in the rough (211)Huurka is a jewel in the rough (211)Huurka is a jewel in the rough (211)


Pick every units in x region matching (unit) not equal to (your name of circle of power)
Huurka is offline   Reply With Quote
Old 07-17-2008, 04:41 PM   #7 (permalink)
 
iVengeance.'s Avatar

iVengeance.
 
Join Date: Jun 2008
Posts: 30

iVengeance. is an unknown quantity at this point (0)


Reply

Yeah it is
I think its because it elminates all units in region...
iVengeance. is offline   Reply With Quote
Old 07-17-2008, 04:46 PM   #8 (permalink)
 
Huurka's Avatar

Um.
 
Join Date: May 2008
Posts: 1,536

Huurka is a jewel in the rough (211)Huurka is a jewel in the rough (211)Huurka is a jewel in the rough (211)


Try my version above.
Huurka is offline   Reply With Quote
Old 07-17-2008, 04:52 PM   #9 (permalink)
 
iVengeance.'s Avatar

iVengeance.
 
Join Date: Jun 2008
Posts: 30

iVengeance. is an unknown quantity at this point (0)


Question Sorry but...

Quote:
Originally Posted by Huurka View Post
Try my version above.
I cant find your version above...
Could you copy and paste it?
iVengeance. is offline   Reply With Quote
Old 07-17-2008, 04:57 PM   #10 (permalink)
 
Huurka's Avatar

Um.
 
Join Date: May 2008
Posts: 1,536

Huurka is a jewel in the rough (211)Huurka is a jewel in the rough (211)Huurka is a jewel in the rough (211)


Kill
Events
Player - Player 1 (Red) Presses the Left Arrow key
Conditions
Actions
Unit Group - Pick every unit in (Units in Left <gen> matching ((Unit-type of (Matching unit)) Not equal to Footman)) and do (Actions)
Loop - Actions
Unit - Explode (Picked unit)
Huurka is offline   Reply With Quote
Old 07-17-2008, 05:12 PM   #11 (permalink)
 
iVengeance.'s Avatar

iVengeance.
 
Join Date: Jun 2008
Posts: 30

iVengeance. is an unknown quantity at this point (0)


Thank you so much :] Your awesome!
iVengeance. 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] Force units to stay in a region? Squiggy Triggers & Scripts 13 06-01-2008 06:17 PM
Trigger Help- All Units in Region:Move instantly to Center of Another Region frankie11 World Editor Help Zone 2 07-19-2007 02:41 AM
Units in region problem bbfreak World Editor Help Zone 5 04-02-2007 11:34 PM
preventing units to enter a region froman77 Map Development 15 05-28-2005 04:43 PM
How to make all units in region invulnerable? RaD- Map Development 5 07-21-2004 10:52 PM

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






Your link here 
Debt Consolidation | Remortgages | Credit Card Consolidation | Loans | Nashville Tennessee Hotels
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle