| 04-23-2004, 07:57 PM | #1 |
I need help with a Bank system to my AoS its like this..you get money when your team have a bank and you dont get money when you lose it.. simply... plz can some one help me with this.. Nemo |
| 04-23-2004, 08:12 PM | #2 |
Basically find a way to handle the bank. I would suggest a merchant building that sells dummy units named 'Withdraw 100' 'Withdraw 200' etc 'Deposit 100' 'Deposit 200' etc actions: A unit enters (enter map) events: if -player number of (owner of (entering unit)) <= 6 then -set teamNumber = 1 else -set teamNumber = 2 if -(unit-type(entering unit) == Withdraw 100) and (bank[teamNumber] >= 100) then -remove (entering unit) from the game -set bank[teamNumber] = bank[teamNumber] - 100 else -Display to playergroup(triggering player) There is not enough money in your team's bank for this transaction. For deposit, just check if the player's gold is > 100 {or whatever amount is that's being deposited} If it is, set the bank[teamNumber] = bank[teamNumber] + 100 {or whateer amount is that's being deposited} |
| 04-23-2004, 08:40 PM | #3 |
i dont want that it works like a bank. like put in money and take out...i want it to be like you get some money every minute if you ahve the bank..and nothing if the bank is destroyed.. |
| 04-23-2004, 09:43 PM | #4 |
The triggers will change for this depending on how you want the bank to work. Will you only have one or more neutral banks and ownership passes back and forth between the teams? Or you could have one bank for each team, or even multiple banks for each team. Is the bank buildable or do you start with a finite amount? Another thing to clear up is how you will deal with the timer. Do you want it to be a periodic timer going off every min, or one min from when you capture(or build) the bank depending on the answer to the above. If you gave a little bit more information im sure someone here could help you. |
| 04-24-2004, 06:51 AM | #5 |
anyway i found a way to get it work...thanks for help |
