Date: 2016/11/06 16:17:58 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#Intro2. Triggered by Intro1.yml
Command Script Name:
type: command
# The name of the command. This will show up in the default list in the '/help' command
# and will be the default method for running the command.
name: intro2
# The description of the command. This will be shown in the '/help' command.
# Multiple lines are acceptable, via <&nl> (the tag for a new line), but you should
# make the first line a brief summary of what your command does.
description: Startet das Intro neu.
# Correct usage for the command. This will show in the '/help' command.
usage: /Intro2
# The procedure-based script that will be checked when a player or the console
# is trying to view help for this command. This must always be determined true
# or false. If there is no script, it's assumed that all players and the console
# should be allowed to view the help for this command.
# Available context: <context.server> returns whether the server is viewing the help (a player if false).
allowed help:
- determine <player.is_op||<context.server>>
# The procedure-based script that will run when a player uses tab completion to
# predict words. This should return a dList of words that the player can tab through,
# based on the arguments they have already typed. Leaving this node out will result
# in using Bukkit's built-in tab completion.
# Available context: <context.args> returns a list of input arguments.
# <context.raw_args> returns all the arguments as raw text.
# <context.server> returns whether the server is using tab completion (a player if false).
# <context.alias> returns the command alias being used.
tab complete:
- if !<player.is_op||<context.server>> queue clear
- determine <server.list_online_players.parse[name].include[pizza|potato|anchovy].filter[starts_with[<context.args.last>]]>
# The script that will run when the command is executed.
# No, you do not need '- determine fulfilled' or anything of the sort, since
# the command is fully registered.
# Available context: <context.args> returns a list of input arguments.
# <context.raw_args> returns all the arguments as raw text.
# <context.server> returns whether the server is running the command (a player if false).
# <context.alias> returns the command alias being used.
script:
- if !<player.is_op||<context.server>> {
- narrate "<red>You do not have permission for that command."
- queue clear
}
- ^execute as_server "warp <player.name> Intro1"
- narrate wait 5
- run CameraUtil def:attach|<l@location> as:<p@player>
- wait 1
- run CameraUtil def:detach as:<p@player>
- wait 1
# - run NpcIntroAction
# - run s@msgBoxed 'def:%script%|%title%|%subTitle%|%command%|%page%|%pageWidth%|%pageHeight%|%entries%'
- run s@msgBoxed 'def:Intro2|Netherstern by Hasenmafia|Eine kurze Reise|intro3|1|400|5|<&o>Pandora.<&nl>Lange war es eine Verlassene Seite der welt.<&nl>Menschen gab es nur wenige.<&nl>Sie Jagten,<&nl>bauten kleine Hütten,<&nl>erlernten gerade erst die Landwirtschaft... .<&r>'