Devillived wrote:What if someone else withdrawals everything before you get a chance to withdrawal what you donated? You still wont be able to get your resources back. [...]The only reason why i wouldnt want ANYONE to be able to take the resources is cause if some random joins your fam and is trying to get into another fam, they can empty our your fam bank and delete.
This would not be possible. Only Fam banker / leader can do this, and even then the individual players are still entitled to whatever amount of their contributions that the fam banker or leader has withdrawn. I will explain how it works...
The AI Bank would be tracking each individual players' contribution of funds and gains made on the market by those funds to calculate what amount an individual player would be entitled to withdraw from the fund at any time.
The AI would make gains for the individual players according to different algorithms including (but not limited to):
1. low risk / low yield
2. high risk /high yield
3. short time horizon / long time horizon
4. investment priorities (such as which resources or percentages of types of resources / GC to be gained)
5 ...
These could be adjustable by the individual player himself or the individual player could allow the player tagged as the fam banker to adjust such variables on his behalf. The individual player could opt to allow a portion of his contributions to be self managed and another portion to be managed by the fam banker. Only the funds that have been allocated to be managed by the fam banker can be withdrawn by the fam banker / fam leader. A tight knit fam would have each player allocating 100% of their contributions to be managed by the fam banker.
But even those funds that the individual player has allocated to be managed by the fam banker are available to be withdrawn by the individual player at any time. They can only withdraw what they are entitled to withdraw, however. The AI determines the amounts each player has contributed to the fund and the gains each individual player's investments have made.
Of course, if the player wanted a large sum, the funds probably wouldn't be available right away. The AI might have to do some trading to come up with the funds requested. This might take some time (hopefully only a few ticks). Nevertheless, the individual player, if entitled to that large sum, would receive it as soon as possible.
When a request for funds is received by the AI, it becomes the priority of the AI to fulfill that request first and foremost.
With all this said, the fam banker has access to everything at all times. If he wanted, he could withdraw everything from the market at any time. This, however, doesn't mean the players who had contributed previously aren't still entitled to what they had contributed. They certainly still are so entitled.
Why would the fam banker withdraw all funds? Is he robbing the individual players of their contributions? Hope not. Presumably, the fund manager would do this for a good reason: war, and a profitable one at that. He's hoping to get many players many more planets. The fam banker passes all funds available to the fam's main attacker who build's up his fleet: in doing so, the attacker is essentially taking-out a loan from the other players. The loan is the amount needed to build and upkeep the fleet.
This better be a PROFITABLE venture: the attacker will hopefully nab planets, and, presumably, pass them to the bankers / resourcers. In passing the planets to bankers / resources, the players taking the planets are essentially accepting a payment on the loan they provided the attacker via the fam bank. Once the planet is taken-over by the resourcer or banker, the transaction is considered complete. The banker / resourcer is essentially withdrawing a contribution from what he contributed to the fam bank by taking the planet and the attacker is essentially paying off a portion of the loan he took from the individual players to build his fleet.
The AI calculates the value of such transactions. The value of the planet is determined by the average galactic market long-term investment horizon value of the resources or income that can be expected to be gained by the player owning and building the planet. This 'planet value' amount is DEDUCTED from the amount that the banker or resourcer taking the planet had contributed to the fam bank. And so there is some risk involved in 'accepting the planet'. Banker's / resourcers should only accept planets secured by main attacker's portal(s), and thus are planets they think they can keep / defend.
In some cases the the banker or resourcer might be go into debt to the fam bank by taking a planet he isn't able to keep.
The attacker is paying off a portion of his loan immediately by passing the planet. Just as the banker or resourcer taking the planet is essentially making a withdrawal from the fam bank by taking the planet, so too is the attacker essentially making a deposit to the fam bank by passing the planet.
The AI calculates the passing of a planet as a paying back the individual fam members who had contributed the funds necessary for the attacker to build his fleet. The AI takes into account the value of the planets passed and deducts contributions in the amount of the value of the planet from that player's contributions to the fam bank, thus making funds available for the players who didn't take any planets.
It all works, just needs encoding.
Edit: oh, and in addition to auto 'depositing' to fam bank, there would be auto-withdrawing from fam bank, such that an attacker could set up to 'auto-withdraw upkeep as needed' each tick. And a pop banker could 'auto-withdraw food as needed' each tick. Etc...