Paste #16928: Untitled Paste

Date: 2015/06/25 05:40:09 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


"Jedi_Law Assignment":
    type: assignment

    actions:
      on assignment:
      - lookclose toggle:true

    interact scripts:
    - 10 Jedi_Law Greeting


'Jedi_Law Greeting':
    type: interact

    steps:
        '1*':
            click trigger:
                script:
                - engage
                - if <player.in_group[Padawan]> {
                  - if <player.flag[JediLanguage]> == "Finished" && <player.flag[JediScience]> == "Finished" {
                    - if <player.flag[JediLaw]> == "" || <player.flag[JediLaw]> == null {
                      - chat "Welcome Padawan <player.name>, I am going to be your law tutor."
                      - wait 1
                      - chat "The <aqua>Justice<white> System is represented by two systems, local and imperial. Local law covers smaller cases and imperial law handles those of greater importance."
                      - wait 2
                      - chat "There is a case going on now that you can assist with that will show you the difference. A local man was arrested for a bar fight in Chalmun's cantina and brought here."
                      - wait 2
                      - chat "It is a civic case and should be tried in local courts but the empire wants to question him on something unrelated so they are trying to charge him in imperial court."
                      - wait 2
                      - chat "He will not get a fair trial in imperial court so you must make sure that he makes his way back to Mos Eisley and to the civic court house safely."
                      - flag player "JediLaw:Justice"
                      }
                      else if <player.flag[JediLaw]> == "Justice" {
                      - if <player.inventory.contains[i@CounterTransferRequest]> {
                        - chat "Glad to see you back."
                        - wait 1
                        - chat "He will now be tried in a proper court and receive appropriate sentencing."
                        - wait 1
                        - chat "I might as well file that away while I am here."
                        - wait 1
                        - take "i@CounterTransferRequest" "qty:1"
                        - wait 2
                        - chat "Moving on now, another legal problem we have is the smuggling and <aqua>Trade<white> of illegal items in the system."
                        - wait 1
                        - chat "Because of this there is extensive records kept of all transactions."
                        - flag player "JediLaw:Trade"
                        }
                        else {
                        - chat "Collect the prisoner from the guard room downstairs and take him back to the courthouse in Mos Eisley for appropriate <aqua>Justice<white>."
                        }
                      }
                      else if <player.flag[JediLaw]> == "Trade" {
                      - if <player.inventory.contains[i@KashyyykExportManifest]> {
                        - chat "Now that you have it just out of curiosity how many Bowcasters did they dispatch from Kashyyyk?"
                        - flag player "JediLaw:Dispatched"
                        }
                        else {
                        - chat "Go to Kashyyyk and collect the <aqua>Trade<white> Export Manifest and bring it back."
                        }
                      }
                      else if <player.flag[JediLaw]> == "Dispatched" {
                      - chat "How many Bowcasters did they dispatch from Kashyyyk?"
                      }
                      else if <player.flag[JediLaw]> == "Audit" {
                      - if <player.inventory.contains[i@RoshaExportManifest]> {
                        - chat "What was in the Rosha manifest then?"
                        - wait 1
                        - chat "There is always something!"
                        }
                        else {
                        - chat "Go to Rosha and collect the <aqua>Trade<white> Export Manifest and bring it back."
                        }
                      }
                      else if <player.flag[JediLaw]> == "Seizure" {
                      - chat "Seizure."
                      }
                      else if <player.flag[JediLaw]> == "Gun" {
                      - if <player.inventory.contains[i@bedrock]> {
                        - chat "Well done, now we are finished."
                        - flag player "JediLaw:Finished"
                        }
                        else {
                        - chat "<aqua>Gun<white> Control."
                        }
                      }
                      else {
                      - chat "Would you like another book on Illegal <aqua>Trade<white>, <aqua>Gun<white> Control or the <aqua>Justice<white> System?"
                      }
                    }
                    else {
                    - chat "You must complete Languages and Science before studying Law."
                    }
                  }
                  else {
                  - chat "Hello. I <aqua>teach<white> Law at the Jedi Academy."
                  }
                - disengage

            damage trigger: 
                script:
                - chat "You're going to attack a Jedi?" 

            chat trigger:
                'teach':
                    trigger: 'Could you /teach/ me please?'
                    script: 
                    - engage
                    - chat "There are three courses available here at the moment. <aqua>Gun<white> control, the <aqua>justice<white> system and illegal <aqua>trade<white>."
                    - if !<player.in_group[Padawan]> {
                      - chat "They are only available to Padawan learners though."
                      }
                    - disengage
                'gun':
                    trigger: '/Gun/ Control'
                    script: 
                    - engage
                    - chat "You will learn about gun control throughout the galaxy."
                    - scribe "Gun" give
                    - disengage
                'justice':
                    trigger: '/Justice/ System'
                    script: 
                    - engage
                    - chat "You will learn about the justice system."
                    - scribe "Justice" give
                    - disengage
                'trade':
                    trigger: 'Illegal /Trade/'
                    script: 
                    - engage
                    - chat "You will learn about the illegal trade routes."
                    - scribe "Trade" give
                    - disengage
                'catch-all':
                    trigger: '/REGEX:\w+/'
                    script: 
                    - engage
                    - if <player.flag[JediLaw]> == "Dispatched" {
                      - if <player.inventory.contains[i@KashyyykExportManifest]> {
                        - if <player.chat_history.as_int> == null {
                          - chat "I need just the quantity of Bowcasters exported from Kashyyk."
                          }
                          else {
                          - if <player.chat_history.as_int> == 320 {
                            - chat "That sounds about right. I can file that away then."
                            - wait 1 
                            - take i@KashyyykExportManifest "qty:1"
                            - wait 1 
                            - chat "Next is the Neimoidians turn to hand in their export logs."
                            - flag player "JediLaw:Audit"
                            }
                            else if <player.chat_history.as_int> < "320" {
                            - chat "That sounds a bit small, are you sure that's correct?"
                            }
                            else if <player.chat_history.as_int> > "320" {
                            - chat "That sounds a bit large, are you sure that's correct?"
                            }
                          }
                        }
                        else {
                        - chat "Where is the Kashyyyk Trade Export Manifest?"
                        }
                      }
                      else if <player.flag[JediLaw]> == "Audit" {
                      - if <player.inventory.contains[i@RoshaExportManifest]> {
                        - if <player.chat_history> == "growth samples" {
                          - chat "Growth Samples?"
                          - wait 1
                          - chat "What do the manufacturers of Battle Droids want with Growth Samples?"
                          }
                          else {
                          - chat "That's not an issue, anything else?"
                          }
                        }
                        else {
                        - chat "Where is the Rosha Trade Export Manifest?"
                        }
                      }
                      else {
                      - chat "I'm sorry. I don't know what you're talking about."
                      }
                    - disengage