Date: 2016/01/27 03:00:39 UTC-08:00
Type: Denizen Script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
3:
chat trigger:
'deposit_money':
trigger: '/REGEX:(1|deposit|d)/'
script:
- ^run "deposit_money_task"
deposit_money_task:
type: task
speed: 1t
script:
- narrate "<light_purple>You have <green>β<player.money><light_purple>."
- narrate format:banker_format "<light_purple>How much money would you like to deposit?"
- narrate "<light_purple>Type the amount you would like to deposit or type <aqua>all<light_purple> to deposit all of your money."
- ^zap step:4 "s@bankerscript"
4:
chat trigger:
'deposit_money_amount':
trigger: '/REGEX:^\d+.(\d)[1,2]$/'
script:
- narrate format:banker_format "<white>Okay.... one moment"
- ^if '<player.money>' >= <player.chat_history>
narrate format:banker_format "<light_purple>There is now <green>β<player.flag[bankbalance]><light_purple> in your account"
else narrate format:banker_format "<light_purple>You don<&sq>t have <green>β<player.chat_history><light_purple> to deposit!"
- trigger name:chat toggle:false
- ^run "manage_account_task"
'deposit_money_all':
trigger: '/all/'
script:
- trigger name:chat toggle:false
- narrate "You have deposited all of your money into the bank!"
- flag player bankbalance:+:<player.money>
- ^take money qty:<player.money>
- narrate "<light_purple>Your new balance is <green>β<player.flag[bankbalance]>"
- ^run "manage_account_task"