| 01-27-2004, 09:04 PM | #1 |
Now i try like 2 hours to make triggers that share the gold of players that left the game to all players that are still playing, (like in tides of blood) i got it to work whit some player groups, well IN SINGLEPLAYER, i tried it out whit 5 players(full team) it worked fine, now i played my map whit some friends and no one got gold! i try to explain what i used i have 6 player groups, 1st : Team 1 and Team 2 (5 players each team) 2nd: goldget1 and goldget2 i used this triggers E-Map Ini A- If ((Player 1 (red) slot status) equal Play) then do (Playergroup - Add Player 1 (red) to golgget1) else do (Do nothing) If ((Player 1 (red) slot status) equal Play) then do (Playergroup - Add Player 1 (red) to Team1) else do (Do nothing) . . . . that for all 10 players now i use this to give gold to the players E- Every 4 seconds of gametime A- Playergroup - Pick every player in golgget1 and do (Player - Add (50 / (Number of players in golgget1)) to (Picked player) Aktuelles Gold) for both teams, well, here is the problem if i play in b.net this dont work and i dont know why :bgrun: and finaly this to share the gold: E: Spieler - Spieler 1 (Rot) leaves the game A: Spielergruppe - Add (Triggering player) to playersgone Spielergruppe - Remove (Triggering player) from golgget1 this add the player to the third playergroup (for player who left the game) E:Every 30 seconds A: If ((Spieler 1 (Rot) is in playersgone) Gleich True) then do (Spielergruppe - Pick every player in golgget1 and do (Spieler - Add ((Spieler 1 (Rot) Aktuelles Gold) / (Number of players in golgget1)) to (Picked player) Aktuelles Gold)) else do (Do nothing) would this work??? |
| 01-28-2004, 07:33 AM | #2 |
Dunno... test it! |
| 01-28-2004, 08:02 AM | #3 |
hmm yes, but i cant really test it in singleplayer thats the problem. all i want to do is, when a player leave the game and the control become shared, the player still become gold and i want that the gold he get share to all players that still plays |
| 01-28-2004, 09:09 AM | #4 |
i think its something like> variable: getgold (integer) variable: redgone (integer), bluegone (integer) and so on e: map initiliazation a: if red = play then set getgold = getgold +1 a: if blue...... and so on e: red leaves game a: set getgold = getgold -1 a: add (redgone/getgold) to player 1 current gold and so on e: blue leaves game.....and so on e: every 4th secs of game a: add (50/getgold) to player 1 current gold' a: add (50/getgold) to player 2 current gold and so on.... a: set redgone = red current gold a: set bluegone = blue current gold and so on... i t´hink this will work OH, and the other thing (look above) probably not the easist way to do it, but im pretty sure it works |
