| 10-01-2003, 03:45 AM | #1 |
Okay there is an extreme bug that is happening on my hero arena! I tried to make it so that when team mates leave, their current allies get the gold that they would normally get if they never left. (Like in ToB) So here is what I did: I created Give Gold triggers; 1 for each player like this: Events: Time - Every 5.00 seconds of game time Actions: Player - Add ((Player 1 (Red) Current gold) / numTeam1) to Player 2 (Blue) Current gold Player - Add ((Player 1 (Red) Current gold) / numTeam1) to Player 3 (Teal) Current gold Player - Set Player 1 (Red) Current gold to 0 (ALL OF THESE TRIGGERS ARE INITIALLY OFF) I did one for each player and changed the allies as necessary and I made 1 trigger for each player what would leave the game as follows: Events: Time - Every 5.00 seconds of game time Conditions: (Player 1 (Red) slot status) Equal to Has left the game Actions: Trigger - Turn off (This trigger) Game - Display to (All players) the text: ((|c00777700 + (Name of (Player(1)))) + |r Has Left the Game) Player - Add ((Player 1 (Red) Current gold) / numTeam1) to Player 2 (Blue) Current gold Player - Add ((Player 1 (Red) Current gold) / numTeam1) to Player 3 (Teal) Current gold Player - Set Player 1 (Red) Current gold to 0 Trigger - Turn on Give Gold 1 <gen> I did it accordingly to each player with their corresponding allies Anways HERE IS MY MAP. I TRUST that people will not steal it because I know this is a great community of people who have always helped me in my time go need, so I have unlocked it in order for you to view my triggers to spot any mistakes. All Triggers that I used are in the folders labeled: Left Game Message, Dropped Characters, Number of Players, and Hero Arena Change(Labeled Hero reward in arena in the hero arena change folder)) To show my true appreciation, I will reward anyone who can help solve my problem(whoever can get my trigger fixed) their own custom hero on my arena that I will allow them to design it themself! Plus credit for hero design!!! I know you guys will help me, so thanx in advance Now here is the attachment: |
| 10-01-2003, 04:02 AM | #2 |
well i'm not quite sure i know exactly what u mean but i know that your trigger should not read every 5 seconds of game time. it should be map initialization. and the first action should be wait 5 seconds. the last 1 should ignore events and run trigger (this trigger) than you should have a seperate trigger that is when ever a player leaves do all the add gold actions and destroy the above trigger. that should work i think. |
| 10-01-2003, 04:40 AM | #3 |
Here you go Kremaytu. These are the triggers I used in my own map to distribute the gold. PM me if I won the 'Custom Hero' Prize. |
| 10-01-2003, 05:38 AM | #4 |
Thanx for your replies but they still dont help because my triggers work very diffrently.... My triggers work pretty much the same as Eternal's, except they are split between 2 triggers.... just for the fact that I dont want "player 1 has left the game" popping up every 5 seconds of the game.... Also I forgot to mention that my bug only occurs when TWO out of the THREE people have left on the team... otherwise it doesn't bug out on me... Basically, they get abnormally huge amounts of money so im wondering if the trigger is repeating itself many times.... Can someone please just take a small look at my map to see whats wrong? |
| 10-01-2003, 05:50 AM | #5 |
Use my triggers, they work... "Player 1 has left the game" will not show up every 5 seconds because the trigger turns itself off when it runs. :D EDIT: If you don't understand how to turn my triggers into 4 team triggers, I can do it for you. |
| 10-01-2003, 10:04 PM | #6 |
Hey have you even seen my triggers? They are pretty much exactly the same! I know that SOMTHING must be overlapping or the trigger is repeating itself many times... At the beginning of the trigger, it says turn off... but for some reason it doesn't.... Anways ill try it out when I get home, and ill let you know how it works.... |
| 10-02-2003, 12:47 AM | #7 |
Listen man i dont know what you are doing, but it doesnt work for me.... My triggers are pretty much the same.... Take a look at em and see if you can fix it.. because I seriously can't |
| 10-02-2003, 01:46 AM | #8 |
Ill give it a shot... EDIT: Reattach the map file it isn't there... (just a thing called "attachment") |
| 10-05-2003, 07:04 PM | #9 |
Sorry guys i've been gone for a few days... and btw the map file does work just rename the extension to .w3x and it should work... I see no can has replied since I last left either.... So yeah, my problem is still unsolved.... |
