Clan TMMM
Would you like to react to this message? Create an account in a few clicks or log in to continue.


The official site of Clan TMMM
 
HomeHomeSearchLatest imagesRegisterLog in


Latest topics
» Kevkevqaz is back
My Way Of AutoSelection I_icon_minitimeby Eat_bacon_daily Wed Feb 22, 2023 7:22 pm

» Hey whats up
My Way Of AutoSelection I_icon_minitimeby seankly Tue Feb 04, 2020 10:32 pm

» Gotta click fast - WC3 Mazing #mildlyinteresting
My Way Of AutoSelection I_icon_minitimeby hoffmann Wed Jun 21, 2017 10:28 pm

» I'm getting married and you guys are invited
My Way Of AutoSelection I_icon_minitimeby Achilles.42 Wed Sep 07, 2016 11:00 am

» Server Photo Album 1
My Way Of AutoSelection I_icon_minitimeby Pat1487 Sat Aug 06, 2016 5:28 pm

» Legacy of The Void Beta
My Way Of AutoSelection I_icon_minitimeby Achilles.42 Sun Oct 18, 2015 3:21 am

» Hey guys!!!
My Way Of AutoSelection I_icon_minitimeby Eat_bacon_daily Fri Oct 16, 2015 11:20 pm

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
My Way Of AutoSelection I_vote_lcap26%My Way Of AutoSelection I_vote_rcap
 26% [ 8 ]
Warcraft 3
My Way Of AutoSelection I_vote_lcap35%My Way Of AutoSelection I_vote_rcap
 35% [ 11 ]
League of Legends
My Way Of AutoSelection I_vote_lcap19%My Way Of AutoSelection I_vote_rcap
 19% [ 6 ]
World of Warcraft
My Way Of AutoSelection I_vote_lcap0%My Way Of AutoSelection I_vote_rcap
 0% [ 0 ]
Diablo 2
My Way Of AutoSelection I_vote_lcap0%My Way Of AutoSelection I_vote_rcap
 0% [ 0 ]
No games at all
My Way Of AutoSelection I_vote_lcap10%My Way Of AutoSelection I_vote_rcap
 10% [ 3 ]
Other game not listed
My Way Of AutoSelection I_vote_lcap10%My Way Of AutoSelection I_vote_rcap
 10% [ 3 ]
Total Votes : 31
Transparency

 

 My Way Of AutoSelection

Go down 
5 posters
AuthorMessage
BonoMania
Recruit
Recruit




My Way Of AutoSelection Empty
PostSubject: My Way Of AutoSelection   My Way Of AutoSelection I_icon_minitimeSun 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




My Way Of AutoSelection Empty
PostSubject: Re: My Way Of AutoSelection   My Way Of AutoSelection I_icon_minitimeSun 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
Pat1487



My Way Of AutoSelection Empty
PostSubject: Re: My Way Of AutoSelection   My Way Of AutoSelection I_icon_minitimeMon 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




My Way Of AutoSelection Empty
PostSubject: Re: My Way Of AutoSelection   My Way Of AutoSelection I_icon_minitimeMon 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
Serenity09



My Way Of AutoSelection Empty
PostSubject: Re: My Way Of AutoSelection   My Way Of AutoSelection I_icon_minitimeTue 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
Pat1487



My Way Of AutoSelection Empty
PostSubject: Re: My Way Of AutoSelection   My Way Of AutoSelection I_icon_minitimeTue 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
Achilles.42



My Way Of AutoSelection Empty
PostSubject: Re: My Way Of AutoSelection   My Way Of AutoSelection I_icon_minitimeTue 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
marksoccer



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

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




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

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



My Way Of AutoSelection Empty
PostSubject: Re: My Way Of AutoSelection   My Way Of AutoSelection I_icon_minitimeWed 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
marksoccer



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

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




My Way Of AutoSelection Empty
PostSubject: Re: My Way Of AutoSelection   My Way Of AutoSelection I_icon_minitimeWed 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





My Way Of AutoSelection Empty
PostSubject: Re: My Way Of AutoSelection   My Way Of AutoSelection I_icon_minitime

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: