(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-21-2008, 01:12 AM   #1 (permalink)
 
Big Dub's Avatar

AegisFang@USWest
 
Join Date: Aug 2007
Posts: 432

Big Dub has little to show at this moment (20)Big Dub has little to show at this moment (20)Big Dub has little to show at this moment (20)


Work In Progress Starcraft bunkers! (counting units inside a burrow)

Ok, in my map basically I am trying to implement a starcraft bunker system. Only one type of unit can enter the burrows though so I figured I would just use Pheonix fire and have four separate ones that I can give the burrow depending on how many units are in it. Problem is I can't seem to find how to count units inside a burrow, and I can't find a event that will allow me to sense it. (there are alot of bunkers on the map so I dont think checking every once in a while would be a very effective strategy)

Somebody help me out.
__________________
Please remember to give reputation peoples!
If you use my resources in a game give credits to AegisFang@USWest
Really Cool Stuff!
Get your Starcraft 2 resources here!
Big Dub is offline   Reply With Quote
Old 11-21-2008, 07:14 AM   #2 (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 need to use global variable array of type rct in event.
function Trig_T1_A takes nothing returns nothing
    set udg_Bunker[i] = ( udg_Bunker[i] + 1 )
endfunction

//===========================================================================
function InitTrig_T1 takes nothing returns nothing
    set gg_trg_T1 = CreateTrigger( )
    call TriggerRegisterEnterRectSimple( gg_trg_T1, udg_rct[i] )
    call TriggerAddAction( gg_trg_T1, function Trig_T1_A )
endfunction
Day-Elven is offline   Reply With Quote
Old 11-21-2008, 07:50 AM   #3 (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)


i'm using a system with items in my commandandconquer map, it creates an item in the bunkers inventory which has the pheonix fire ability, so 4 units inside -> 4 items

bunker
Events
Unit - A unit is loaded into a transport.
Conditions
(Unit-type of (Triggering unit)) equal to your unit-type
(Unit-type of (Loading unit)) equal to Bunker
Actions
Set TempPoint = (Position of (Loading Unit))
Item - Create <Pheonixfire-Item> at (TempPoint))
Unit - Order (Transporting unit) to Rightclick (Last created item)
Custom script: call RemoveLocation(udg_TempPoint)

bunker leave
Events
Unit - A unit finishes casting an ability
Conditions
(Ability being cast) equal to leave Bunker (unload all)
Actions
Item - Remove (Item carried by (Triggering unit) in slot 1)
Item - Remove (Item carried by (Triggering unit) in slot 2)
Item - Remove (Item carried by (Triggering unit) in slot 3)
Item - Remove (Item carried by (Triggering unit) in slot 4)
Item - Remove (Item carried by (Triggering unit) in slot 5)
Item - Remove (Item carried by (Triggering unit) in slot 6)

if you remove single units from the bunker use:

unload one unit
Events
Unit - A unit is issued an order targeting an object
Conditions
(Issued order) equal to (Order(unload))
(Unit-type of (Triggering unit)) equal to Bunker
Actions
Item - Remove (Item carried by (Triggering unit) in slot (Number of items carried by (Triggering unit)))
__________________
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-21-2008, 01:07 PM   #4 (permalink)
 
TheDivineBoss's Avatar

шαиτѕ τо gινе ιιοиэѕѕ ιυν
 
Join Date: Jul 2007
Posts: 3,651

TheDivineBoss is just really nice (337)TheDivineBoss is just really nice (337)TheDivineBoss is just really nice (337)

PayPal Donor: This user has donated to The Hive. 

Give them the Insect thingy.
__________________


Seems to be that someone is being an idiot in the poll. Kim, go click and see.
337, being 1337 without the 1.
TheDivineBoss is offline   Reply With Quote
Old 11-21-2008, 10:49 PM   #5 (permalink)
 
Mechanical Man's Avatar

User
 
Join Date: Jan 2005
Posts: 2,984

Mechanical Man is just really nice (324)Mechanical Man is just really nice (324)


The best idea would be using dummy units with the same attacks than units that can enter, you create them when units enter and remove when they leave or bunker is destroyed.
__________________
Current project:

iTaLiaN WaRZ v1.0
Progress: ||||||||
Mechanical Man is offline   Reply With Quote
Old 11-22-2008, 12:26 AM   #6 (permalink)
 
Big Dub's Avatar

AegisFang@USWest
 
Join Date: Aug 2007
Posts: 432

Big Dub has little to show at this moment (20)Big Dub has little to show at this moment (20)Big Dub has little to show at this moment (20)


Hrmm... Day Elven maybe if there was a set amount of bunkers and I could manage each one, but there isnt, and that is still not a way to check how many units are in it. Besides, units can enter the bunker without going on it, and there is flying units, and bunkers are real close in some areas.

UreDe4d, that is exactly what I wanted to do and the a pretty good way of doing it, +rep, Thanks.

Locust units. Hmm, here I see too many options for exploits and glitches. And it is a bit wierd to manage. And I would still have the issue of seeing how many units there are in the bunker. I couldnt use area, because some bunkers could be really close... Hrmmm

Im gonna go with UreDe4d's way.
Will post back I get it working.

Side note, do you have issues if they tell two units to load in at the same time? Also, if I wanted to use abilities and not items, how would I tell how many units are already in the bunker? And how do you make an item so they cannot drop it? Oo or is there a way to hide inventory but still have it?
__________________
Please remember to give reputation peoples!
If you use my resources in a game give credits to AegisFang@USWest
Really Cool Stuff!
Get your Starcraft 2 resources here!
Big Dub is offline   Reply With Quote
Old 11-22-2008, 12:34 AM   #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)


You can hide your inventory only from other players (Gameplay Constants).
Day-Elven is offline   Reply With Quote
Old 11-22-2008, 01:38 AM   #8 (permalink)
 
Big Dub's Avatar

AegisFang@USWest
 
Join Date: Aug 2007
Posts: 432

Big Dub has little to show at this moment (20)Big Dub has little to show at this moment (20)Big Dub has little to show at this moment (20)


Hmm, I may want to do that. Hmm, too bad you cant hide inventory from yourself, it could prove useful in many situations.

I got it working.
__________________
Please remember to give reputation peoples!
If you use my resources in a game give credits to AegisFang@USWest
Really Cool Stuff!
Get your Starcraft 2 resources here!
Big Dub is offline   Reply With Quote
Old 11-22-2008, 09:20 AM   #9 (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)


2 important things, be sure the inventory ability you have doesn't make items drop upon death, and make the items undropable in object editor
__________________
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
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
Can there be some way of making "Starcraft bunkers" for WC3? Newuser World Editor Help Zone 1 07-05-2008 01:24 PM
[Trigger] How to create units inside a cargo hold? TKF Triggers & Scripts 17 06-29-2008 05:44 PM
Preventing Exp Gain for Heroes Inside Burrow Zaraf World Editor Help Zone 0 04-23-2008 03:37 AM
Starcraft Units Crusadious Requests 12 05-28-2007 07:46 PM
Starcraft units help? Saint_007 Warcraft Editing Tools 2 05-04-2006 05:59 PM

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






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