wc3edit.net

United Warcraft 3 map hacking!
It is currently April 26th, 2024, 7:17 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Starting units Help.
PostPosted: June 3rd, 2011, 1:15 am 
Offline
Member
User avatar

Joined: June 9th, 2010, 10:12 pm
Posts: 59
How do i change the starting units that the players get based on what race they pick while they are in the lobby?
Or if their is just a trigger i can use would be good also.

_________________
Image Image My triforce spins


Top
 Profile  
 
 Post subject: Re: Starting units Help.
PostPosted: June 3rd, 2011, 1:58 am 
Offline
Forum Staff
User avatar

Joined: November 17th, 2008, 3:49 pm
Posts: 610
I believe this should work..Just do the same for NE and Undead, and add more units than just their main starting building.

Code:
Untitled Trigger 001
    Events
        Map initialization
    Conditions
    Actions
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Race of (Picked player)) Equal to Human
                    Then - Actions
                        Unit - Create 1 Town Hall for (Picked player) at ((Picked player) start location) facing Default building facing degrees
                    Else - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                (Race of (Picked player)) Equal to Orc
                            Then - Actions
                                Unit - Create 1 Great Hall for (Picked player) at ((Picked player) start location) facing Default building facing degrees
                            Else - Actions
                                ...

_________________
Image


Top
 Profile  
 
 Post subject: Re: Starting units Help.
PostPosted: June 3rd, 2011, 2:31 am 
Offline
Member
User avatar

Joined: June 9th, 2010, 10:12 pm
Posts: 59
Thank you once again.

_________________
Image Image My triforce spins


Top
 Profile  
 
 Post subject: Re: Starting units Help.
PostPosted: June 3rd, 2011, 3:19 pm 
Offline
Forum Staff
User avatar

Joined: June 9th, 2008, 9:51 am
Posts: 685
Location: Finland
Or just use the default trigger???


Melee Initialization
Events
Map initialization
Conditions
Actions
Melee Game - Create starting units (for all players)

_________________
Image


Top
 Profile  
 
 Post subject: Re: Starting units Help.
PostPosted: June 3rd, 2011, 8:08 pm 
Offline
Member
User avatar

Joined: June 9th, 2010, 10:12 pm
Posts: 59
I'm not use default units though. I'm useing custom.

_________________
Image Image My triforce spins


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 23 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)