Paste #16550: Debuging the schematic thingy.

Date: 2015/06/17 12:19:45 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


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