(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!

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 11-04-2007, 10:07 AM   #1 (permalink)

User
 
Join Date: Nov 2007
Posts: 14

cj2006 is an unknown quantity at this point (0)


Problems on auto unit train(train by building) and units trained auto move

im creating a tech wars.
im on problems (title).
please teach me how to:
auto train unit(train by buildings)
units train by buildings auto move.

upload pictures so that i can learn easy
thank you
cj2006 is offline  
Old 11-04-2007, 03:28 PM   #2 (permalink)

User
 
Join Date: Oct 2007
Posts: 304

NoobMapmaker has little to show at this moment (7)


I think u should try using triggers to create the unit then order it to move towards a specific point right after. NOt sure if its even possible to make building auto train units though, but u can always make a trigger that will "order" the buildign to do that.
NoobMapmaker is offline  
Old 11-04-2007, 03:58 PM   #3 (permalink)
 
Lord_T's Avatar

Jesus & Troll Enthusiast
 
Join Date: Oct 2004
Posts: 857

Lord_T is just really nice (274)Lord_T is just really nice (274)Lord_T is just really nice (274)Lord_T is just really nice (274)Lord_T is just really nice (274)


Ok.. This is really simple, I doubt that you'll need pictures...
The first thing you do is make a trigger to begin construction. You will need one for each type of building that you make.
So... Let's use barracks as an example. We first create a trigger called "TrainStart". The trigger should be:
Events: Unit: Generic unit Event: Finishes construction.
Conditions: Unit Type Comparison: Unit type of constructed structure equal to Barracks.
Actions: Unit: Issue Uprade/Train order. Order Triggering unit to create 1 footman.


-----------

That's trigger one, to begin the training. Then we have another trigger that will make it loop.
This is trigger "TrainLoop"
Events: Unit: Generic unit Event: Finishes training a unit
Conditions: Boolean Comparison: Owner of triggering unit is in player group ( good side, bad side)
Actions: Unit: Issue Uprade/Train order. Order Triggering unit to train (unit-type of (trained unit)).
Unit: Issue Order Targeting a point: Order Trained unit to Attack-Move to center of region: ( Region of enemy base. You will need two of this trigger, one for each team.)

-------

Soooo... We need one Trainstart for every building we want to auto train, but
Only two TrainLoop, because it makes every building, as soon as it finishes creating a unit, to make another one and orders the created unit to attack the enemy base. This system also makes it easier to cancel in order to upgrade the building, because it only builds another unit after it completes.
Good luck in your map, I hope i helped.
__________________

If your model request is interesting enough, I may take it. I take most animation requests.

There is Hope

Last edited by Lord_T; 11-04-2007 at 04:08 PM.. Reason: Forgot about second question
Lord_T is offline  
Old 11-04-2007, 04:45 PM   #4 (permalink)
 
nosebaer's Avatar

Jaah ehhh wie jetzt...??
 
Join Date: Oct 2007
Posts: 61

nosebaer has little to show at this moment (1)


uhmm, a question on this, Lord_T;
what to do, if the locations of enemies are randomly selected (the map is always visible), that the spawned units attack the enemy base?
__________________
__________________________________

back from hell now!

Last edited by nosebaer; 11-04-2007 at 04:46 PM.. Reason: :S wasn't to understand
nosebaer is offline  
Old 11-04-2007, 09:36 PM   #5 (permalink)
 
Lord_T's Avatar

Jesus & Troll Enthusiast
 
Join Date: Oct 2004
Posts: 857

Lord_T is just really nice (274)Lord_T is just really nice (274)Lord_T is just really nice (274)Lord_T is just really nice (274)Lord_T is just really nice (274)


Well, nosebaer, then you could set up the trigger differently, a little like this:
Order Trained unit to Attack-Move to position of unit (random unit from ( pick every unit within (playable map area matching condition (owner of triggering unit equal to (enemy player))))).
So, this way, When a unit is trained, it will attack a random enemy unit. Or you could create a target variable, which sets to a random unit from the enemy and changes every 2 minutes or so, so your units don't all go running after different enemies.
__________________

If your model request is interesting enough, I may take it. I take most animation requests.

There is Hope
Lord_T is offline  
Old 11-05-2007, 01:43 AM   #6 (permalink)

User
 
Join Date: Nov 2007
Posts: 14

cj2006 is an unknown quantity at this point (0)


thanks for the teaching
i'll try
if my map success
please support my map
and give comments
cj2006 is offline  
Old 11-05-2007, 02:32 AM   #7 (permalink)

User
 
Join Date: Nov 2007
Posts: 14

cj2006 is an unknown quantity at this point (0)


Conditions: Boolean Comparison: Owner of triggering unit is in player group ( good side, bad side


don't have such condition
can you upload photo for me ?
cj2006 is offline  
Old 11-05-2007, 03:31 AM   #8 (permalink)
 
wd40bomber7's Avatar

Starcraft2 Fan
 
Join Date: Aug 2006
Posts: 960

wd40bomber7 is on a distinguished road (70)wd40bomber7 is on a distinguished road (70)


Its the default condition
Just click New--> Condition, and don't touch anything
You'll see it says 'Boolean Comparison'

Then there is a function you can choose called 'unit belongs to ally/enemy of player'
__________________
I can help you.......... Maybe......
Give Rep to those that help you!

I'm back! My computers been finished.
wd40bomber7 is offline  
Old 11-05-2007, 01:00 PM   #9 (permalink)

User
 
Join Date: Nov 2007
Posts: 14

cj2006 is an unknown quantity at this point (0)


and i got another bug
when i use the Lord_T's trigger
it success,but the buildings cannot upgrade
why?
cj2006 is offline  
Old 11-05-2007, 01:20 PM   #10 (permalink)
 
DenZel94's Avatar

TheHelper.net GUI User
 
Join Date: Jun 2006
Posts: 122

DenZel94 has little to show at this moment (27)DenZel94 has little to show at this moment (27)DenZel94 has little to show at this moment (27)


Due to the fact that it automatically creates units with training, cancelling the upgrading..

The best I can say is cancel the trigger of training when the building starts to upgrade..
__________________
GUI AI Tutorial
http://hiveworkshop.com/forums/showthread.php?t=33249
Arena of Champions
http://www.hiveworkshop.com/forums/f...41/#post738929
http://www.thehelper.net/forums/show...659#post615659

People steal information because they're too stupid to make their own - Thy FuKiN n0oB
DenZel94 is offline  
Old 11-05-2007, 01:34 PM   #11 (permalink)

User
 
Join Date: Nov 2007
Posts: 14

cj2006 is an unknown quantity at this point (0)


if like that means

units must click ourself
they can move automatically

this morning i test with my friend
when i spawn a unit
it attacks my towers
cj2006 is offline  
Old 11-05-2007, 01:38 PM   #12 (permalink)
 
DenZel94's Avatar

TheHelper.net GUI User
 
Join Date: Jun 2006
Posts: 122

DenZel94 has little to show at this moment (27)DenZel94 has little to show at this moment (27)DenZel94 has little to show at this moment (27)


Are you sure the owner of the tower is yours?

And also, I am not a expert on this due to that I already forgot advanced spawning "techniques"..

Sorry if I am not able to help more..
__________________
GUI AI Tutorial
http://hiveworkshop.com/forums/showthread.php?t=33249
Arena of Champions
http://www.hiveworkshop.com/forums/f...41/#post738929
http://www.thehelper.net/forums/show...659#post615659

People steal information because they're too stupid to make their own - Thy FuKiN n0oB
DenZel94 is offline  
Old 11-05-2007, 04:31 PM   #13 (permalink)

User
 
Join Date: Oct 2007
Posts: 304

NoobMapmaker has little to show at this moment (7)


well maybe u dont even need to make the building train the unit, use the Unit-Create action then u can always upgrade whenever.
NoobMapmaker is offline  
Old 11-06-2007, 11:52 PM   #14 (permalink)
 
Lord_T's Avatar

Jesus & Troll Enthusiast
 
Join Date: Oct 2004
Posts: 857

Lord_T is just really nice (274)Lord_T is just really nice (274)Lord_T is just really nice (274)Lord_T is just really nice (274)Lord_T is just really nice (274)


To upgrade the building, just cancel the unit being trained. If the unit doesnt finish training, it won't auto-build a second unit.
__________________

If your model request is interesting enough, I may take it. I take most animation requests.

There is Hope
Lord_T is offline  
Old 11-07-2007, 03:32 AM   #15 (permalink)

User
 
Join Date: Nov 2007
Posts: 14

cj2006 is an unknown quantity at this point (0)


i cancel already
but also cannot upgrade
never mind
i use another way
cj2006 is offline  
Closed Thread

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] Train Units Faster? blah900 Triggers & Scripts 7 12-09-2007 09:13 PM
[Trigger] Auto-Train Trigger? Zaeden Triggers & Scripts 7 06-14-2007 09:21 PM
train multiple units at the same time? cherkess World Editor Help Zone 5 05-18-2007 11:07 PM
[Trigger] Adding unit to building train list Tankass Triggers & Scripts 7 04-09-2007 05:25 AM
Possible to get neutral buildings to train units? SuperDuperGuy Map Development 1 12-08-2005 10:09 PM

All times are GMT. The time now is 05:44 AM.






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