Paste #3251: healthset

Date: 2014/04/07 16:59:45 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19


healthsetnpc:
    type: assignment
    steps:
        1:
            Chat Trigger:
                1:
                    trigger: 'Health /test/.'
                    script:
                    - chat 'Setting health to 100'
                    - adjust <player> Max_health 100
                    - adjust <player> health 100
                    - determine fulfilled
                2:
                    trigger: 'Health /reset/.'
                    script:
                    - chat 'Resetting health to normal values.'
                    - adjust <player> Max_health 20
                    - adjust <player> health 20
                    - determine fulfilled