- Joined
- Jul 12, 2013
- Messages
- 12
Hi everyone.
I was trying to add the interest concept to my TD map. Unfortunately the Interest just does not get credited. Can someone help me with this please. The triggers used are indicated below.
The default value of P1Int is 0 and RP1 (Interest rate) is 1.
Dread.
I was trying to add the interest concept to my TD map. Unfortunately the Interest just does not get credited. Can someone help me with this please. The triggers used are indicated below.
-
Interest Timer Display
-
Events
- Time - Elapsed game time is 5.00 seconds
- Conditions
-
Actions
- Countdown Timer - Start InterestTimer as a Repeating timer that will expire in 30.00 seconds
- Countdown Timer - Create a timer window for InterestTimer with title Interest Due in
- Set InterestTimerWindow = (Last created timer window)
- Countdown Timer - Start BackupTimer as a One-shot timer that will expire in 30.00 seconds
-
Events
-
Back Up Timer
-
Events
- Time - Every 1.00 seconds of game time
-
Conditions
- P1Int Equal to 1
-
Actions
- Countdown Timer - Start BackupTimer as a One-shot timer that will expire in 30.00 seconds
- Set P1Int = 0
-
Events
-
Interest Calculations
-
Events
- Time - BackupTimer expires
- Conditions
-
Actions
- Set GP1 = (Player 1 (Red) Current gold)
- Set IP1 = (GP1 x (RP1 / 100))
- Player - Add IP1 to Player 1 (Red) Current gold
- Set P1Int = 1
-
Events
The default value of P1Int is 0 and RP1 (Interest rate) is 1.
Dread.
Last edited by a moderator: