(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-16-2008, 04:49 PM   #1 (permalink)
 
-lanaya-'s Avatar

User
 
Join Date: Sep 2008
Posts: 18

-lanaya- has little to show at this moment (1)


removing [non-controlled] units

how do you remove non-used units in the beginning of the game? (units that aren't controlled)

thx to anyone who gives me the trigger for it
-lanaya- is offline   Reply With Quote
Old 11-16-2008, 04:51 PM   #2 (permalink)
 
TheBlooddancer's Avatar

Cute Kargo is Cute :3
 
Join Date: Jun 2008
Posts: 2,674

TheBlooddancer is just really nice (419)TheBlooddancer is just really nice (419)TheBlooddancer is just really nice (419)TheBlooddancer is just really nice (419)TheBlooddancer is just really nice (419)


You create a trigger that checks if player is playing/not used/or left.

Then you just if/then/else, and check if they are there, if not, remove the units owned by them.
__________________
Last edited by The Administration; Today at 15:08 PM.. Reason: Do not spam, flame, harass and discriminate other users in a such way.



TheBlooddancer is offline   Reply With Quote
Old 11-16-2008, 04:54 PM   #3 (permalink)
 
Restor's Avatar

It's all part of the plan
 
Join Date: Mar 2005
Posts: 327

Restor has little to show at this moment (31)Restor has little to show at this moment (31)Restor has little to show at this moment (31)Restor has little to show at this moment (31)


Untitled Trigger 001
Events
Map Initialization
Conditions
Actions
Player Group - Pick every player in (All players controlled by a None player) and do (Actions)
Loop - Actions
Unit Group - Pick every unit in (Units owned by (Picked player)) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game


there may be some leaks, i guess you can solve it out
__________________
Universal Declaration of Human Rights-10th December 1948

Article 19
Everyone has the right to freedom of opinion and expression; this right includes freedom to hold opinions without interference and to seek, receive and impart information and ideas through any media and regardless of frontiers.

I sence EpicFail somewhere here
Restor is offline   Reply With Quote
Old 11-16-2008, 04:55 PM   #4 (permalink)
 
UreDe4D's Avatar

valiant little mapper
 
Join Date: Nov 2006
Posts: 766

UreDe4D is on a distinguished road (76)UreDe4D is on a distinguished road (76)


Events
Map Initalization
Conditions
Actions
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
If (((Player((Integer A))) slot status) equal to unused) then do (Unitgroup - Pick every unit in (Units owned by (Player((Integer A)))) and do (Unit - Remove (Picked unit) from the game)) else do (Do nothing)

lol too slow :/
__________________
When I come back from the mighty quest
I have no need for sleep or rest
I head to a tavern for a drink
And get so drunk I cannot think
A wench by my side and a jug of mead
These are the things that I most need
So I sit back and sing this song
And drink and party all night long

Last edited by UreDe4D; 11-16-2008 at 06:38 PM..
UreDe4D is offline   Reply With Quote
Old 11-16-2008, 05:37 PM   #5 (permalink)
 
Day-Elven's Avatar

User
 
Join Date: Apr 2008
Posts: 348

Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)


You can create units only for players that are ingame, and remove units of player when player leave. It's much lesser laggy than to create and then remove them.
Day-Elven is online now   Reply With Quote
Old 11-16-2008, 06:29 PM   #6 (permalink)
 
-lanaya-'s Avatar

User
 
Join Date: Sep 2008
Posts: 18

-lanaya- has little to show at this moment (1)


hm, not working, i think its because they're heroes. If so can anyone make another trigger
-lanaya- is offline   Reply With Quote
Old 11-16-2008, 06:30 PM   #7 (permalink)
 
Day-Elven's Avatar

User
 
Join Date: Apr 2008
Posts: 348

Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)


Heroes can be removed as any other units. There is no difference. UreDe4D's trigger must work.
Day-Elven is online now   Reply With Quote
Old 11-16-2008, 07:05 PM   #8 (permalink)
 
darkrider's Avatar

Sacred War Editor
 
Join Date: Dec 2007
Posts: 569

darkrider has little to show at this moment (40)darkrider has little to show at this moment (40)darkrider has little to show at this moment (40)darkrider has little to show at this moment (40)darkrider has little to show at this moment (40)


uredead you are leaking a unit group there :P
darkrider is offline   Reply With Quote
Old 11-17-2008, 12:46 PM   #9 (permalink)
 
-lanaya-'s Avatar

User
 
Join Date: Sep 2008
Posts: 18

-lanaya- has little to show at this moment (1)


um..uredead's trigger removes all my units -_-
-lanaya- is offline   Reply With Quote
Old 11-17-2008, 03:20 PM   #10 (permalink)
 
UreDe4D's Avatar

valiant little mapper
 
Join Date: Nov 2006
Posts: 766

UreDe4D is on a distinguished road (76)UreDe4D is on a distinguished road (76)


show your trigger, maybe you did something wrong
__________________
When I come back from the mighty quest
I have no need for sleep or rest
I head to a tavern for a drink
And get so drunk I cannot think
A wench by my side and a jug of mead
These are the things that I most need
So I sit back and sing this song
And drink and party all night long
UreDe4D is offline   Reply With Quote
Old 11-18-2008, 12:20 AM   #11 (permalink)
 
-lanaya-'s Avatar

User
 
Join Date: Sep 2008
Posts: 18

-lanaya- has little to show at this moment (1)


nvm thx uredead there was something wrong, fixed it
-lanaya- 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
how can i make nonhuman controlled units walk around the map brayden430 World Editor Help Zone 4 07-10-2008 06:22 PM
Unit Formations - possible for comp controlled units? Fulla World Editor Help Zone 4 10-21-2007 08:27 PM
Help with removing starting units loer222 World Editor Help Zone 2 09-06-2007 01:30 AM
Removing Units =\ forceflow Map Development 2 08-01-2005 10:11 AM
CPU controlled units questions AtleriK Map Development 7 09-20-2004 06:52 PM

All times are GMT. The time now is 08:37 AM.






Your link here 
Mortgage Loans | Debt Consolidation | Credit Cards | Loans | Guitar Lessons
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle