Date: 2016/11/24 11:02:49 UTC-08:00
Type: Denizen Script
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
yanina_npc:
type: assignment
actions:
on assignment:
- trigger name:click state:true
- trigger name:proximity state:true radius:20
interact scripts:
- 10 yanina_npc_interact
portero_npc_interact:
type: interact
steps:
1:
proximity trigger:
entry:
script:
- if <player.has_flag[saludo_inicial]> queue clear
- narrate format:f1 "Buen dia alumnitos"
- narrate format:f1 "ya llegaron!!"
- flag player saludo_inicial
- if <npc.flag[cant_alum]> == <server.num_players> {
- narrate "estan todos"
}
move:
script:
- look <npc> <player.location>
exit:
script:
- narrate format:f1 "no corran!!"
cantidad_alumnos:
type: world
events:
on player joins:
- if <npc.has_flag[cant_alum]> {
- flag <npc> cant_alum:++
- queue clear
}
- flag <npc> cant_alum:0