- 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


TitleUntitled Paste
TypeDenizen Script
Date2018/03/06 21:32:13 UTC-08:00
ByBloodEko
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
3900
npc:
  type: yaml data
  onAssignment:
  - trigger name:click state:true
  - trigger name:chat state:true radius:5
  chatEngine:
  - determine passively cancelled
  - wait 1t
  - narrate " "
  - if <player.has_flag[<npc>_engaged]> { - queue clear }
  - if <context.message> !matches number || <context.message> < 1 || <context.message> > <player.flag[<proc[e-id]>].size||0> { - narrate "<&6>Die Zahl ist ungültig!" - queue clear }
  - flag player <npc>_engaged
  - inject <def[script]> <player.flag[<proc[e-id]>].get[<context.message>]>
  - if <def[queue]||x> != clear { - inject <def[script]> loader }
  - flag player <npc>_engaged:!

#173_2
173_fährmeister_as:
  type: assignment
  speed: 10t
  loader:
  - foreach <player.flag[<proc[e-id]>].as_list> {
    - narrate "<def[loop_index]><&a><script.constant[<def[value]>]>"
    }
  actions:
    on assignment:
    - inject npc path:onAssignment
    on chat:
    - inject profiler path:globalStart
    - define script <script>
    - inject npc path:chatEngine
    - inject profiler path:globalStop
  default constants:
    0: Bis bald.
    1: Bring mich über das Wasser. <&6>(3 Gold)
    2: nana
  1:
  - narrate NANA



RawRaw



Pastes made: 59170