- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleEdit of P#4350 - Edit of P#4349 - Warrior
TypeDenizen Script
Date2014/05/12 23:19:50 UTC-07:00
ByGuest
Other
Paste
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
4400
Warrior:
  type: assignment
  actions:
    on spawn:
    - anchor id:home add l@275,64,141,World
    - trigger name:proximity state:true
    - health 30 state:true
    - equip <hand:268> <head:298> <chest:299> <legs:300> <boots:301>
  Interact scripts:
  - 10 WarriorAI
WarriorAI:
    type: interact
    steps:
        1:
            proximity trigger:
                move:
                    script:
                    - if <npc.flag[wait]> == null {
                        - flag npc wait d:5s 
                        - attack <npc> target:<npc.location.find.players.within[3]>
                        - chat "Feel my might!"
                        - wait 2
                        - foreach <npc.location.find.players.within[3]> {
                            - potion harm %value% p:0
                            }
                        }
                exit:
                    script:
                    - flag npc targets:<-:<player>
                    - if <npc.location.find.players.within[3]> == 0 {
                        - attack <player>
                        } else {
                        - anchor id:home walknear r:2
                        }
Slash:
    type: task
    script:
    - chat "Feel my might!"
    - wait 1
    - foreach <npc.location.find.players.within[5]> {
        - potion harm <player> p:1
        - cooldown 5s
        } 



RawRaw



Pastes made: 57253