The official site of Clan TMMM
 
HomeHomeSearchUsergroupsFAQRegisterLog in


Latest topics
» Gotta click fast - WC3 Mazing #mildlyinteresting
by hoffmann Wed Jun 21, 2017 10:28 pm

» Hey whats up
by Eat_bacon_daily Mon Oct 10, 2016 6:24 am

» I'm getting married and you guys are invited
by Achilles.42 Wed Sep 07, 2016 11:00 am

» Server Photo Album 1
by Pat1487 Sat Aug 06, 2016 5:28 pm

» Legacy of The Void Beta
by Achilles.42 Sun Oct 18, 2015 3:21 am

» Hey guys!!!
by Eat_bacon_daily Fri Oct 16, 2015 11:20 pm

» What everyone been up to
by The_Chosen_Oreo Sun Jun 14, 2015 11:55 am

SC2 Links
SC2 Challenge/Tourney Info

Official SC2 Forums

SC2 Curse

SC2Mapster

Team Liquid

SC2 Replayed

SC2 Strategy
WC3 Links
Clan_TMMM[Host] Info

WC3 Challenge/Tourny Rules

Epicwar
Poll
What game does everyone play now?
Starcraft 2
26%
 26% [ 8 ]
Warcraft 3
35%
 35% [ 11 ]
League of Legends
19%
 19% [ 6 ]
World of Warcraft
0%
 0% [ 0 ]
Diablo 2
0%
 0% [ 0 ]
No games at all
10%
 10% [ 3 ]
Other game not listed
10%
 10% [ 3 ]
Total Votes : 31
Transparency

Share | 
 

 My Way Of AutoSelection

Go down 
AuthorMessage
BonoMania
Recruit
Recruit



PostSubject: My Way Of AutoSelection   Sun Dec 30, 2012 10:04 am

This is a Tutorial.

I Gonna show you how I make AutoSelection as Jass and GUI


Jass:
function Trig_AutoSelection_Func001A takes nothing returns nothing
   call SelectUnitForPlayerSingle( GroupPickRandomUnit(GetUnitsOfPlayerAll(GetEnumPlayer())), GetEnumPlayer() )
endfunction

function Trig_AutoSelection_Actions takes nothing returns nothing
   call ForForce( GetPlayersByMapControl(MAP_CONTROL_USER), function Trig_AutoSelection_Func001A )
endfunction

//===========================================================================
function InitTrig_AutoSelection takes nothing returns nothing
   set gg_trg_AutoSelection = CreateTrigger(  )
   call TriggerRegisterTimerEventSingle( gg_trg_AutoSelection, 0.03 )
   call TriggerAddAction( gg_trg_AutoSelection, function Trig_AutoSelection_Actions )
endfunction


GUI:
Events: Time Elapsed game time is 0.03 seconds

Conditions: None

Action: Player Group - Pick every player in (All Player controlled by a User player) and do (Actions)
    Loop - Actions
         Selection - Select (Random unit from (Units owned by (Picked player))) for (Picked player)


Last edited by BonoMania on Sat May 10, 2014 7:24 am; edited 4 times in total
Back to top Go down
BonoMania
Recruit
Recruit



PostSubject: Re: My Way Of AutoSelection   Sun Dec 30, 2012 10:05 am

Good luck i hope it works for you guys.

i used like 5 min on this :p.

it worked for me, so it should also work for you guys Very Happy
Back to top Go down
Pat1487
Moderator
Moderator
avatar


PostSubject: Re: My Way Of AutoSelection   Mon Dec 31, 2012 9:56 am

Thats a really inefficient way to do it
Im kindve surprised Seren didnt go all jass nazi on you lol

Ideally you want to make an array of the demonhunters (or whatever unit the players control)
Then make a loop, and have the loop select the demonhunters for each player based on the loop counter

So the actions would look like this in GUI:
Code:
For each (Integer A) from 1 to 11, do (Actions)
    Loop - Actions
        Selection - Select demonhunters[(Integer A)] for (Player((Integer A)))
Back to top Go down
BonoMania
Recruit
Recruit



PostSubject: Re: My Way Of AutoSelection   Mon Dec 31, 2012 11:59 pm

Yes, but my way, works for all kind of heros, and you way only works for the Demon Hunter Smile
Back to top Go down
Serenity09
Moderator
Moderator
avatar


PostSubject: Re: My Way Of AutoSelection   Tue Jan 01, 2013 8:58 pm

i was going to and then i realized his jass trigger was just him writing it in gui and then clicking convert to jass. i decided not to for the exact reason that his response to your response made me not want to respond
Back to top Go down
Pat1487
Moderator
Moderator
avatar


PostSubject: Re: My Way Of AutoSelection   Tue Jan 01, 2013 9:58 pm

Yeah, i didnt really realize his skill level until that response
I figured he just didnt know that you can copy GUI triggers as text
Back to top Go down
Achilles.42
Commander
Commander
avatar


PostSubject: Re: My Way Of AutoSelection   Tue Jan 01, 2013 10:58 pm

Way to type out a response as if Bono isn't going to be able to read it.
You would both get negative karma if we had karma on here

Jerkfaces... you should learn to be kind and humble like me.
Back to top Go down
marksoccer
Commander
Commander
avatar


PostSubject: Re: My Way Of AutoSelection   Wed Jan 02, 2013 1:48 am

+ karma for ach. Who would've thought
Back to top Go down
BonoMania
Recruit
Recruit



PostSubject: Re: My Way Of AutoSelection   Wed Jan 02, 2013 7:41 am

yeah be like Achillies :O!
Back to top Go down
Serenity09
Moderator
Moderator
avatar


PostSubject: Re: My Way Of AutoSelection   Wed Jan 02, 2013 12:36 pm

never thought id see those words without sarcasm.
actually never thought id see those words at all
Back to top Go down
marksoccer
Commander
Commander
avatar


PostSubject: Re: My Way Of AutoSelection   Wed Jan 02, 2013 4:31 pm

very true, what has this world come to.
Back to top Go down
BonoMania
Recruit
Recruit



PostSubject: Re: My Way Of AutoSelection   Wed Jan 02, 2013 5:38 pm

it came to THIS!, (A full site of ppl making warcraft 3 world editor tutorials :p)
Back to top Go down
Sponsored content




PostSubject: Re: My Way Of AutoSelection   

Back to top Go down
 
My Way Of AutoSelection
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Clan TMMM :: Warcraft 3 :: WC3 Tutorials and Help-
Jump to: