Date: 2015/06/20 03:08:04 UTC-07:00
Type: Denizen Script
InfluenceListen:
type: world
events:
on player join:
- while true {
- define oldMoney <player.money>
- wait 30s
- define newMoney <player.money>
- if <def[oldMoney]> >= <def[newMoney]> {
- flag <player> playerMoney:+:<def[oldMoney].min[<def[newMoney]>]>
- narrate "t<player.flag[playerMoney]>"
- run CalcMoneyInfluence
- narrate "t<player.flag[playerMoney]>"
} else {
- flag <player> playerMoney:+:<def[newMoney].min[<def[oldMoney]>]>
- narrate "t<player.flag[playerMoney]>"
- run CalcMoneyInfluence
- narrate "t<player.flag[playerMoney]>"
}
}
CalcMoneyInfluence:
type: task
script:
#- define kdPoints <player.flag[globalkillcount].mult[25].add[<player.flag[globaldeathcount].mult[-35]>]>
- flag <player> playerInfluence:+:<player.flag[playerMoney].div[200]>