HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Money GIVE trigger

03-29-2004, 02:14 PM#1
Mozared
Hello,

I'm currently making an aos, and i'm camping with a small (not too big) problem which i tryed to solve, but I didn't succeed.

Here's the deal:

As we all know, AOS games give at least 1 or 2 leavers. i've gotten it so that if a player leaves he shares his units (that was easy), but i can't get it so that he distributes his gold amongst his allies. i would let all of those left get some gold, then i'd be happy. the frustrating part is that i can't do this "simple" thing and i've seen maps (like tob) that automaticly distribute 5 gold to all remaining players once enough for all left. comparing to what i'm asking thats 50 times more difficult...

Help appreciated,

Mozared
03-30-2004, 09:56 PM#2
duckduck
ask the guy who made DOTA df v.8.7.2 cause he has a thing like tat... even though u won't know hu he is
03-30-2004, 10:11 PM#3
Vexorian
Events:
Player 1 leaves the game
Player 2 leaves the game
....
Player 12 leaves the game
Actions:
set X= Gold of (triggering player)
set TempForce= All players matching ( (matching player) is an ally of Triggering Player)
set X= (X / Count Players in TempForce)
Pick Every Player in TempForce and do
-- Player Add X gold to Picked Player
Custom Script : call DestroyForce(udg_TempForce)
03-31-2004, 03:12 PM#4
Mozared
Quote:
Originally Posted by Lord Vexorian
Events:
Player 1 leaves the game
Player 2 leaves the game
....
Player 12 leaves the game
Actions:
set X= Gold of (triggering player)
set TempForce= All players matching ( (matching player) is an ally of Triggering Player)
set X= (X / Count Players in TempForce)
Pick Every Player in TempForce and do
-- Player Add X gold to Picked Player
Custom Script : call DestroyForce(udg_TempForce)

This could just be me, but as far as i can see this gives 5 gold or such. I want it to (when the player leaves) distribute his/her gold amongst his/her allies, the only thing this does is give players 5 once...

Mozared