The official site of Clan TMMM |
Poll | | What game does everyone play now? | Starcraft 2 | | 26% | [ 8 ] | Warcraft 3 | | 35% | [ 11 ] | League of Legends | | 19% | [ 6 ] | World of Warcraft | | 0% | [ 0 ] | Diablo 2 | | 0% | [ 0 ] | No games at all | | 10% | [ 3 ] | Other game not listed | | 10% | [ 3 ] |
| Total Votes : 31 |
|
| | My Way Of AutoSelection | |
| | Author | Message |
---|
BonoMania Recruit
| Subject: 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 | |
| | | BonoMania Recruit
| Subject: 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 | |
| | | Pat1487 Moderator
| Subject: 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)))
| |
| | | BonoMania Recruit
| Subject: 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 | |
| | | Serenity09 Moderator
| Subject: 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 | |
| | | Pat1487 Moderator
| Subject: 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 | |
| | | Achilles.42 Commander
| Subject: 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. | |
| | | marksoccer Commander
| Subject: Re: My Way Of AutoSelection Wed Jan 02, 2013 1:48 am | |
| + karma for ach. Who would've thought | |
| | | BonoMania Recruit
| Subject: Re: My Way Of AutoSelection Wed Jan 02, 2013 7:41 am | |
| yeah be like Achillies :O! | |
| | | Serenity09 Moderator
| Subject: 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 | |
| | | marksoccer Commander
| Subject: Re: My Way Of AutoSelection Wed Jan 02, 2013 4:31 pm | |
| very true, what has this world come to.
| |
| | | BonoMania Recruit
| Subject: 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) | |
| | | Sponsored content
| Subject: Re: My Way Of AutoSelection | |
| |
| | | | My Way Of AutoSelection | |
|
| Permissions in this forum: | You cannot reply to topics in this forum
| |
| |
| |
|