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. I will be eternally grateful if someone fixes my problem.
-Pertymywerty
Random Player Picking
Moderator: Cheaters
-
- Newcomer
- Posts: 8
- Joined: November 2nd, 2008, 7:55 am
- Title: Avid Map-Maker
- Location: Queensland, Australia
Random Player Picking
You do not have the required permissions to view the files attached to this post.
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Random Player Picking
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
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
You do not have the required permissions to view the files attached to this post.
-
- Newcomer
- Posts: 8
- Joined: November 2nd, 2008, 7:55 am
- Title: Avid Map-Maker
- Location: Queensland, Australia