Date: 2015/06/17 12:19:45 UTC-07: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
Siege-Ragador:
type: assignment
interact scripts:
- 10 Siege-Start-Ragador
Siege-Start-Ragador:
type: interact
steps:
1:
chat trigger:
1:
trigger: "I want to /siege Ragador/! At once!"
script:
- if <player.nation.relation[<town@Ragador.nation>]> == 'enemies' && <player.nation.king.name> == <player.name>
{
- flag server siege_Ragador:on
- flag <player> king:on
- flag server at_kingdom:<player.nation.name>
- flag server Ragador_Defense:25
- chat "Yes, sire! We will begin the siege at once"
- execute as_server "tell <town@Ragador.nation.king.name> You must type <aqua>/nation kick Ragador . Otherwise your kingdom will be DELETED!"
}
else
{
- chat "I'm sorry but we are not at war or that city is already yours!"
}
2:
trigger: "I wish to /participate/ at war!"
script:
- if <server.has_flag[<siege_Ragador>]> && <player.nation.name> == <server.flag[<at_kingdom>]>
{
- flag <player> inwar:on
- flag global inwar_players:->:<player>
- chat "Let me write your name!"
}
else
{
- chat "I am sorry but there is not ongoing siege or you don't belong to the right nation!"
}
3:
trigger: "Let's /attack/ those bastards!"
script:
- chat "Yes sire! Kill the citizens and the city will be ours!"
- wait 1
- chat "Make sure you won't die!"
- schematic load name:seballista
- schematic paste name:seballista <player.location> noair