Date: 2014/12/05 21:26:38 UTC-08:00
Type: Denizen Script
# this links to Carrot Buff
'Carrot_Buff':
type: world
events:
on player consumes i@carrot_item:
- if <util.random.int[1].to[2]> = 1 {
- random 2
- run s@Carrot_Night_Vision
- run s@Carrot_Fungus
}
else {
}
## Carrot Scripts
"Carrot_Night_Vision":
type: task
script:
- chat "You suddenly see far into the distance"
- wait 3s
- cast NIGHT_VISION <player> duration 30s power:10
"Carrot_Fungus":
type: task
script:
- chat "You begin to feel the effects of the fungus outbreak"
- wait 3s
- cast POISON <player> duration:10s power:3
- wait 4 s
- cast CONFUSION <player> duration:8s power:10