Paste #42511: Untitled Paste

Date: 2017/06/09 18:42:48 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


monsterwithina:
  type: assignment
  actions:
    on assignment:
    - narrate "Assignment set."
  interact scripts:
  - 1 monsterwithini
monsterwithini:
  type: interact
  steps:
    1:
      chat trigger:
        1:
          trigger: /Regex:Hello|Hi|Hey|Greetings|Good Day/.
          script:
            - if player.flag[monsterwithinstart] {
              - chat "You came back... Did you... find him?"
              - wait 2
              - chat "Please... anything helps..."
              }
              else {
              - chat "Oh... hello there..."
              - wait 2
              - chat "*The girl looks down, then around, really anywhere but you.*"
              - narrate "Who are you, what's wrong, rumors, the town?"
              }
        2:
          trigger: What's /Regex:Wrong/?
          script:
            - chat "It's... just my dad. He went out to go get some supplies..."
            - wait 2
            - chat "But.. he hasn't come back yet. It's nothing... he'll probably come home soon..."
            - narrate "Who are you, what's wrong, rumors, the town, offer help?"
        3:
          trigger: /Regex:Offer Help|help|offer/.
          script:
            - chat "You... want to help me?"
            - chat "*Her face lights up slightly.*"
            - wait 2
            - chat "The last time I saw him... he was going to scour the mountain line to the North West-"
            - wait 2
            - chat "of here... he loves the mountaintops. Please... find him."
            - flag player monsterwithinstart
        4:
          trigger: /Regex:The Town|town|merchants/?
          script:
            - chat "Moneta... it's a nice little place. Natives and Colonists trying to sell wares together."
            - wait 3
            - chat "We've never had anything really go wrong here... my daddy and I would always come-"
            - wait 3
            - chat "To sell gems and things that we've found in our travels..."
            - narrate "Who are you, what's wrong, rumors, the town?"
        5:
          trigger: /Regex:Who|who|you|You|Yourself/?
          script:
            - chat "My name is Hailee. My dad and I come here to sell things..."
            - wait 1
            - chat "*She turns... seeming to close off a bit.*"
            - narrate "Who are you, what's wrong, rumors, the town?"
        6:
          trigger: /Regex:Rumors|rumor|Rumor|rumors/?
          script:
            - chat "R-rumors? I... I don't know any right now..."
            - wait 2
            - chat "I'm... kinda busy."
monsterwithingirl:
  type: task
  script:
  - chat "I... I don't believe you... I don't."
  - wait 2
  - chat "My daddy will come back home to me. I believe in him."
  - wait 2
  - chat "He wouldn't leave me... He wouldn't..."
  - wait 2
  - chat "*She hangs her head, then turns around, saddened.*"
  - give memorybottle15
  - flag player monsterwithinfinish:false
monsterwithina2:
  type: task
  script:
  - chat "You... my daughter sent you... didn't she."
  - chat *cough cough*
  - wait 3
  - chat "I... wish I had better news... but I need you to tell her..."
  - wait 2
  - chat "Tell her..."
  - wait 2
  - chat "That I can't come home."
  - wait 2
  - ex run memory16

#The Village
thevillagea:
  type: assignment
  actions:
    on assignment:
    - narrate "Assignment set."
  interact scripts:
  - 1 thevillagei
thevillagei:
  type: interact
  steps:
    1:
      chat trigger:
        1:
          trigger: /Regex:Hello|Hi|Hey|Greetings|Good day/.
          script:
            - if player.flag[CIVillageTH]{
              - chat "Traveler... I wish to speak with you, in private."
              - wait 2
              - chat "You see... citizens here have told me much about your aid."
              - wait 2
              - chat "If you willing, I require one more task of you."
              - wait 2
              - chat "It is sensitive. Will you help us?"
              - narrate "Yes|No"
              - zap 2
              }
              else {
              - chat "Welcome, traveler."
              - wait 2
              - chat "If you wish to stay for more than a night, take caution."
              - wait 2
              - chat "Natives tend to not like others running around here..."
              - wait 2
              - chat "If you wish to change opinions, then you help them."
              }
    2:
      click trigger:
        script:
          - chat "Will you help us?"
          - narrate "Yes|No"
      chat trigger:
        1:
          trigger: /Regex:Yes|yes|Okay|okay|Of course|of course/.
          script:
          - chat "*The Chief smiles dimly.*"
          - wait 2
          - chat "You see... we are not only tribe plagued by Storm and by Colonist."
          - wait 2
          - chat "Ever since arrival, tension between grow."
          - wait 2
          - chat "There are some tribes, mainly one to South, which are considering riot."
          - wait 2
          - chat "They wish to stage coup, enslave other savages."
          - wait 2
          - chat "Some of my tribe are out there, slaves. Please... find tribe. Free slaves. Do what must."
          - wait 2
          - chat "Please... lives depend on action."
          - wait 2
          - chat "I will give blessing, if success."
          - flag player CIVillageTHQuest
          - zap 3
        2:
          trigger: /Regex:No|no/.
          script:
          - chat "I beg you change mind. Give time to think."
          - zap 1
   3:
     click trigger:
       script:
         - chat "Did you find the riot tribe?"
     chat trigger:
       1:
         trigger:/Regex:Hello|Hi|Hey|Greetings|Good day/.
         - if player.inventory.contains[CIVillageNecklace]{
           - chat "You... you did. Brought back my necklace..."
           - wait 2
           - chat "I cannot give enough thanks, kin."
           - wait 2
           - chat "Take this, it is all I can give."
           - give CIVillageReward
           - wait 2
           - chat "Thank you... thank you."
           - flag player CIVillageTHComplete
           - flag player CIVillageTHQuest:false}
CIVillageNecklace:
  type: item
  material: i@diamond
  display name: <&c>Tribal Necklace
  lore:
  - An ornate, feathered necklace which
  - intricate carvings. Belongs to the
  - chief of one of the Central Tribes.
CIVillageReward:
  type: item
  material: i@leather_helmet
  display name: <&c>Ancient Tribal Headdress
  lore:
  - A feathered, rainbow headdress
  - given as a gift from a Tribal Village.
  - Rumored to protect from fire.
  enchantments:
  - PROTECTION_FIRE:3
thevillagea1:
  type: assignment
  actions:
    on assignment:
    - narrate "Assignment set."
  interact scripts:
  - 1 thevillagei1
thevillagei1:
  type: interact
  steps:
    1:
      chat trigger:
        1:
          trigger: /Regex:Hello|Hi|Hey|Greetings|Good day/.
          script:
            - chat "You not belong here stranger."
            - wait 2
            - chat "*The native turns back to their leather stand.*"
            - narrate "Options: The Tribe|Need Help"
        2:
          trigger: /Regex:The tribe|The Tribe|tribe|Tribe/?
          script:
            - chat "Small tribe. Keep to self. Unlike colonists North..."
            - wait 1
            - chat "*He grunts, clearly not interested in chatting.*"
            - narrate "Options: The Tribe|Need Help"
        3:
          trigger: /Regex:Need help|Need Help|help|Help|need/?
          script:
            - chat "Look. I give you chance around here."
            - wait 2
            - chat "Hunting has not gone well. Bring twenty leather pelts, and we talk more."
            - flag player Villagei1start
        4:
          trigger: /Regex:leather|Leather/.
          script:
            - if player.inventory.contains[leather].quantity[20]{
              - chat "I see you bring leather."
              - take i@leather quantity:20
              - chat "Many thanks traveler. Perhaps hope for colonists yet."
              - flag player Villagei1start:false
              - if player.flag[CIVillageTH1]{
                - if player.flag[CIVillageTH2]{
                  - flag player CIVillageTH}
                  else {
                  - flag player CIVillageTH2}
                }
                else {
                - flag player CIVillageTH1}
              }
              }#end first if
              else {
                - chat "*Your empty pack seems to displease him.*"
                - wait 2
                - chat "Where is leather..."}
thevillagea2:
  type: assignment
  actions:
    on assignment:
    - narrate "Assignment set."
  interact scripts:
  - 1 thevillagei2
thevillagei2:
  type: interact
  steps:
    1:
      chat trigger:
        1:
          trigger: /Regex:Hello|Hi|Hey|Greetings|Good day/.
          script:
          if player.flag[CIVillage2start]{
            - chat "Do you have meat for bears?"
            - if player.inventory.contains[beef].quantity[10]{
              - chat "Seems you do... Thank you."
              - wait 2
              - take beef quantity:20
              - chat "You good person. I'll tell Chief."
              - wait 1
              - chat "Take this. Native talisman. Brings luck."
              - give i@FireCrystal quantity:6
              - flag player CIVillage2start:false
              - if player.flag[CIVillageTH1]{
                - if player.flag[CIVillageTH2]{
                  - flag player CIVillageTH
                  }
                  else {
                  - flag player CIVillageTH2
                  }
                }
                else {
                - flag player CIVillageTH1}
              }
              else {
              - chat "You no have meat..."}
            }  
            else {
              - chat "Another visitor. Popular late."
              - wait 2
              - chat "Chief said many would be around. Said to be careful."
              - narrate "Options: The Tribe?|Need Help?|Careful?"
            }
        2:
          trigger: /Regex:The tribe|The Tribe|tribe|Tribe/?
          script:
            - chat "Tribe is peaceful. Live off white bear in area."
            - wait 2
            - chat "Time is rough, with Symfora abound."
            - narrate "Options: The Tribe?|Need Help?|Careful?|Symfora?"
        3:
          trigger: /Regex:Need help|Need Help|help|Help|need/?
          script:
            - chat "Suppose I could use help, if offered."
            - wait 2
            - chat "Times are tough. Bears losing food."
            - wait 2
            - chat "Could you get 10 raw steak for the bears?"
            - wait 2
            - chat "I will give reward, unlike some others."
            - flag player CIVillage2start
        4:
          trigger: /Regex:Careful|careful/?
          script:
            - chat "Some people have come around lately... start trouble."
            - wait 2
            - chat "Mostly runaway colonist from city. Hate us, no reason."
            - wait 2
            - chat "Dangerous, so must be careful."
            - narrate "Options: The Tribe?|Need Help?|Careful?"
        5:
          trigger: /Regex:Symfora|symfora/?
          script:
            - chat "The storms. You see rain come, stay strong long time."
            - wait 2
            - chat "Since gods have ceased activity, Symfora rain down."
            - wait 2
            - chat "Corrupts good things... births evil."
            - narrate "Options: The Tribe?|Need Help?|Careful?"
thevillagea3:
  type: assignment
  actions:
    on assignment:
    - narrate "Assignment set."
  interact scripts:
  - 1 thevillagei3
thevillagei3:
  type: interact
  steps:
    1:
      chat trigger:
        1:
          trigger: /Regex:Hello|Hi|Hey|Greetings|Good day/.
          script:
          - if player.flag[CIVillage3start]{
            - if player.inventory.contains[wool].quantity[64]{
              - chat "You brought it... wonderful..."
              - take wool quantity:64
              - flag player CIVillage3start:false
              - give i@AirCrystal quantity:6
              - if player.flag[CIVillageTH1]{
                - if player.flag[CIVillageTH2]{
                  - flag player CIVillageTH
                  }
                  else {
                  - flag player CIVillageTH2
                  }
                }
                else {
                - flag player CIVillageTH1
                }
              }
              else {
              - chat "Still await wool, friend."
              }
            }
          - chat "Good day, traveler."
          - wait 2
          - chat "I may be forward, but require aid."
          - wait 2
          - chat "Can you please bring me a crate (stack) of wool?"
          - chat "Plain colored would be best."
          - narrate "Accept|Decline"
        2:
          trigger: /Regex:Accept|accept|Okay|Yes|yes/
          script:
          - chat "Thank you... traveler."
        3:
          trigger: /Regex:Decline|decline|no|No/
          script:
          - chat "I see.. perhaps the rumors were true."