I am making a connect 4 game and I was wondering how you make the winning trigger (when you get 4 in a row)
Please Help
Edited for better understanding...I hope
Hmmm... Not PROPPER english, but...
Use the grid system in the tutorials and put a bunch of triggers so that anyway u have 4 in a row, u win, gawd...
QUOTE(A_of_s_t @ Feb 20 2006, 05:39 PM)
Hmmm... Not PROPPER english, but...
Use the grid system in the tutorials and put a bunch of triggers so that anyway u have 4 in a row, u win, gawd...
[right][snapback]431512[/snapback][/right]
So I gotta trigger every possible way there isnt an easier way? the grid wont work because I need 4 I'm not sure but I think you'll need for every possible way.
Using about 10 locations and being creative with centering locations on units and giving them to different players and stuff with mobile grid, this should be possible. I would make the location center on 1 of the pieces, and have the locations center around it. Two of the locations are vertical and horizontal, and only 4 pieces would fit in each of them, so if there are 4 in those locations you would win. Then for the diagonals the mobile grid comes in, and you have one location on the piece, one up-right from it, one down-right from it and one even more down-right from it. The other diagonal would basically be the same thing with the other 4 locations.
After all that, you give the piece to a different player (p12 maybe?) and then have the trigger use preserve trigger so it goes to the next piece. The diagonals won't need to move more than once for each piece assuming it would be on the edge or something, because afterwards it would check a different piece that would set it off.
Take a look at my chess map.. the method I use should work for you.. it uses mobile grid. I cannot give you the unprotected version sorry.
aww this sucks that the grid would work I already did like half of the every ways possible thing so I guess ill just keep with that
Thanks tho