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
# simple pickpocket skill
pickpocket:
    name: Pickpocket
    description: Tries to steal items and gold from enemy.

    type: Generic
    cooldown: 3

    # the Trigger has an array of Actions
    OnUse:
        - Steal:
               chance:   [ 25%, 45% ]
               steals:   random_item

# 10 second buff that will steal 25% of enemy health on attack,
# but reduces your mana by 8% of total every second
necroshield:
    name: Necro Shield
    description: Sap enemy health and defense at the cost of your own mana.

    type: Spell
    cooldown: 2
    mana: 5
    duration: 10

    vfx: darken_screen
    animation: bone_shield

    OnUse:
        - Effect:
              target:        Self
              manaPerSecond: -8%
              duration:      parent  # use the spell's entire duration

    OnAttack:
        - Steal:
              steals: health
              amount: 25%