Random Player Picking

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

User avatar
Pertmywert
Newcomer
Posts: 8
Joined: November 2nd, 2008, 7:55 am
Title: Avid Map-Maker
Location: Queensland, Australia

Random Player Picking

Post by Pertmywert »

Hey everyone,
I've been having some problems with my mapmaxing. I've made a trigger for my game 'Line Tag' which chooses a random player out of (All Players) to create a 'Catcher'. However - the script was working fine, then I changed a small section of it, and it now chooses the highest value player for the catcher. D: Help pleeeeease.
I've attached the map and made a comment above the trigger which I think might be affecting it. ;)
If you see any other problems with anywhere else in the code - PLEASE fix it for me. :D I will be eternally grateful if someone fixes my problem.
-Pertymywerty
You do not have the required permissions to view the files attached to this post.
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Random Player Picking

Post by Arabidnun »

Blah blah blah, Yep, I basically re-wrote every single trigger you had basically to actually look smooth and work easier.

So, Lets begin.
A) Instead of creating each individual Runner, IT does a Loop function for 8 Players Checking for condition, If/then/else function using Player slot status/User status.
B) Now, when it goes to check for chaser, It checks #1) if the chaser is a Player/+ slot status = playing. So when it finds a player that is playing, it makes them chaser. It sets an integer to a random number between 1-8(PLayers 1-8) And using this variable, we set it so if the integer chosen is a Playable player, then set that person to chaser.

This map has smoother triggers, and I tried to eliminate memory leaks, this making your game run smoother. Refrain from setting unit groups, as it creates excess memory thats unessesary
Line-Tag.w3x
You do not have the required permissions to view the files attached to this post.
User avatar
Pertmywert
Newcomer
Posts: 8
Joined: November 2nd, 2008, 7:55 am
Title: Avid Map-Maker
Location: Queensland, Australia

Re: Random Player Picking

Post by Pertmywert »

:O THANKYOU! ;D I wove you.


+ Credits