# Starter NPC PortalNPC: type: assignment interact scripts: - 10 PortalScript actions: on assignment: # These triggers enable interaction with an NPC via chatting, clicking and entering proximity - trigger name:chat state:true - trigger name:click state:true - trigger name:proximity state:true - lookclose state:false PortalScript: type: interact steps: 1: proximity Trigger: entry: Script: - if == 'true' { - narrate "[Guard] -> You<&co> I don't have time to answer all your questions" - wait 1 - narrate "[Guard] -> You<&co> Head up the stairs, follow the dirt part, take the first right and head to the docks." - wait 1 - narrate "[Guard] -> You<&co> Now move along I got others coming through." } - if != 'true' { - narrate "Quest Started A New Beginning" - wait 1 - narrate "[Guard] -> You<&co> Alright, alright everyone over here." - wait 1 - narrate "[Guard] -> You<&co> What's your gender, male or female?" - zap step:ChooseGender } ChooseGender: chat Trigger: 1: Trigger: "/regex:.*female.*|.*woman.*|.*girl.*|.*Female.*|.*FEMALE.*/" Script: - invisible state:false - narrate "[Old Man] -> You<&co> Good, now what's your race?" - ^execute as_server "manudelsub GenderMale" - execute as_server "manuaddsub GenderFemale" - wait 1 - zap step:ChooseRace - execute as_server "sudo menu open race_menu" 2: Trigger: "/regex:.*male.*|.*man.*|.*boy.*|.*Male.*|.*MALE.*/" Script: - invisible state:false - narrate "[Old Man] -> You<&co> Good, now what's your race?" - ^execute as_server "manudelsub GenderFemale" - execute as_server "manuaddsub GenderMale" - wait 1 - zap step:ChooseRace - execute as_server "sudo menu open race_menu" 3: Trigger: "/regex:.+/" Script: - invisible state:false - narrate "[Guard] -> You<&co> Look, we need to get this over and done with, are you" - narrate "MALE, or FEMALE?" - zap step:ChooseGender Click Trigger: Script: - invisible state:false - narrate "[Guard] -> You<&co> Are you male, or female?" - zap step:ChooseGender ChooseRace: chat trigger: 1: Trigger: "/regex:.*Adan.*|.*man.*|.*human.*|.*adan.*/" Script: - ^execute as_server "manuaddsub Adan" - invisible state:false - narrate "[Guard] -> You<&co> Good, Good." - wait 1 - narrate "[Guard] -> You<&co> We're all done here." - zap step:Destination - wait 2 - narrate "[Guard] -> You<&co> Go up the stairs, follow the dirtpath and take the first right to the docks." - wait 2 - narrate "[Guard] -> You<&co> Next!" - flag player "portal" 2: Trigger: "/regex:.*Glamog.*|.*orc.*|.*glamog.*|.*Orc.*/" Script: - ^execute as_server "manuaddsub Glamog" - invisible state:false - narrate "[Guard] -> You<&co> Good, Good." - wait 1 - narrate "[Guard] -> You<&co> We're all done here." - zap step:Destination - wait 2 - narrate "[Guard] -> You<&co> Go up the stairs, follow the dirtpath and take the first right to the docks." - wait 2 - narrate "[Guard] -> You<&co> Next!" - flag player "portal" 3: Trigger: "/regex:.*Druin.*|.*nord.*|.*barbarian.*|.*druin.*|.*Barbarian.*|.*Nord.*/" Script: - ^execute as_server "manuaddsub Druin" - invisible state:false - narrate "[Guard] -> You<&co> Good, Good." - wait 1 - narrate "[Guard] -> You<&co> We're all done here." - zap step:Destination - wait 2 - narrate "[Guard] -> You<&co> Go up the stairs, follow the dirtpath and take the first right to the docks." - wait 2 - narrate "[Guard] -> You<&co> Next!" - flag player "portal" 4: Trigger: "/regex:.*Mahreki.*|.*goblin.*|.*mahreki.*|.*Goblin.*/" Script: - ^execute as_server "manuaddsub Mahreki" - invisible state:false - narrate "[Guard] -> You<&co> Good, Good." - wait 1 - narrate "[Guard] -> You<&co> We're all done here." - zap step:Destination - wait 2 - narrate "[Guard] -> You<&co> Go up the stairs, follow the dirtpath and take the first right to the docks." - wait 2 - narrate "[Guard] -> You<&co> Next!" - flag player "portal" 5: Trigger: "/regex:.*Anfang.*|.*dwarves.*|.*dwarf.*|.*anfang.*|.*Dwarf.*/" Script: - ^execute as_server "manuaddsub Anfang" - invisible state:false - invisible state:false - narrate "[Guard] -> You<&co> Good, Good." - wait 1 - narrate "[Guard] -> You<&co> We're all done here." - zap step:Destination - wait 2 - narrate "[Guard] -> You<&co> Go up the stairs, follow the dirtpath and take the first right to the docks." - wait 2 - narrate "[Guard] -> You<&co> Next!" - flag player "portal" 6: Trigger: "/regex:.*Perian.*|.*halfling.*|.*perian.*|.*Halfling.*|.*hobbit.*|.*Hobbit.*/" Script: - ^execute as_server "manuaddsub Perian" - invisible state:false - invisible state:false - narrate "[Guard] -> You<&co> Good, Good." - wait 1 - narrate "[Guard] -> You<&co> We're all done here." - zap step:Destination - wait 2 - narrate "[Guard] -> You<&co> Go up the stairs, follow the dirtpath and take the first right to the docks." - wait 2 - narrate "[Guard] -> You<&co> Next!" - flag player "portal" 7: Trigger: "/regex:.*Eylaed.*|.*elves.*|.*elf.*|.*eylaed.*|.*Elf.*/" Script: - ^execute as_server "manuaddsub Eylaed" - invisible state:false - invisible state:false - narrate "[Guard] -> You<&co> Good, Good." - wait 1 - narrate "[Guard] -> You<&co> We're all done here." - zap step:Destination - wait 2 - narrate "[Guard] -> You<&co> Go up the stairs, follow the dirtpath and take the first right to the docks." - wait 2 - narrate "[Guard] -> You<&co> Next!" - flag player "portal" 8: Trigger: "/regex:.+/" Script: - invisible state:false - narrate "[Guard] -> You<&co> Ha! those aren't flesh and blood, and you know it. Just stories made up for children... Now tell me, what is your race?" - execute as_server "sudo menu open race_menu" - zap step:ChooseRace Click Trigger: Script: - invisible state:false - narrate "[Guard] -> You<&co> What Race are you?" - wait 2 - execute as_server "sudo menu open race_menu" - zap step:ChooseRace Portal_cap_NPC: type: assignment interact scripts: - 10 Portal_cap_Script actions: on assignment: # These triggers enable interaction with an NPC via chatting, clicking and entering proximity - trigger name:chat state:true - trigger name:click state:true - trigger name:proximity state:true - lookclose state:false Portal_cap_Script: type: interact steps: 1: proximity Trigger: entry: Script: - if == 'true' { - narrate "[Captain] -> You<&co> Alright, lets get everyone onboard!" - wait 1 - narrate "[Captain] -> You<&co> You there, where are you headed?" - wait 2 - execute as_server "sudo menu open city_menu" } - if != 'true' { - narrate "[Captain] -> You<&co> Alright, lets get everyone onboard!" - wait 1 - narrate "[Captain] -> You<&co> You there, I'll need some information for the manifest" - wait 2 - narrate "[Guard] -> You<&co> First question:" - wait 1 - narrate "[Guard] -> You<&co> What's your gender, male or female?" - flag player "portal" - zap step:ChooseGender } chat Trigger: 1: Trigger: "/regex:.*Cathar.*|.*cathar.*/" Script: - invisible state:false - wait 1 - narrate "[Captain] -> You<&co> Ah! Well you're in luck! If we're going to Cathar," - wait 1 - narrate "[Captain] -> You<&co> this boat will pull up right into the docks!" - wait 1 - narrate "[Captain] -> You<&co> The city is vast, and there's something for everyone there." - wait 1 - narrate "[Captain] -> You<&co> I even hear there's a brothel to spend your coin!" - wait 1 - execute as_server "manuaddsub Cathar" - execute as_server "townyadmin town Cathar add " - wait 1 - execute as_server "sudo accept" - wait 1 - narrate "[Captain] -> You<&co> Here, take this. It's not much but It'll keep you alive." - wait 1 - narrate "[Captain] -> You<&co> Now head downstairs with the others, there should be a bed in the cabin." - wait 1 - narrate "[Captain] -> You<&co> It's not far, We'll arrive at the destination before you know it." - wait 1 - give "i@bread[display_name=Stale Bread;quantity=15]" - narrate "You've recived 15 Stale Bread from the Captain" - wait 1 - narrate "New Quest Objective: Get some rest." - flag player "BedTime" - zap step:bed 2: Trigger: "/regex:.*Orgoroth.*|.*orgoroth.*/" Script: - invisible state:false - wait 1 - narrate "[Captain] -> You<&co> Most folk wouldn't think it," - narrate "[Captain] -> You<&co> but Orgoroth is actually a beautiful place." - wait 1 - narrate "[Captain] -> You<&co> It's situated in a canyon, just south of a great redwood forest," - wait 1 - narrate "[Captain] -> You<&co> and an oasis can be found east, if I remember correctly." - wait 1 - narrate "[Captain] -> You<&co> There's a tunnel that'll take ya' to the city - " - wait 1 - narrate "[Captain] -> You<&co> you'll just have to keep an eye out for it." - execute as_server "manuaddsub Orgoroth" - execute as_server "townyadmin town Orgoroth add " - wait 1 - execute as_server "sudo accept" - wait 1 - narrate "[Captain] -> You<&co> Here, take this. It's not much but It'll keep you alive." - wait 1 - narrate "[Captain] -> You<&co> Now head downstairs with the others, there should be a bed in the cabin." - wait 1 - narrate "[Captain] -> You<&co> It's not far, We'll arrive at the destination before you know it." - wait 1 - give "i@bread[display_name=Stale Bread;quantity=15]" - narrate "You've recived 15 Stale Bread from the Captain" - wait 1 - narrate "New Quest Objective: Get some rest." - flag player "BedTime" - flag player "Quest_A_New_Story_Begins_Orgoroth" - zap step:bed 3: Trigger: "/regex:.*Roskgrod.*|.*roskgrod.*/" Script: - invisible state:false - wait 1 - narrate "[Captain] -> You<&co> If you're going to Roskgrod, " - wait 1 - narrate "[Captain] -> You<&co> you’ll have to follow the road north to actually get to the city," - narrate "[Captain] -> You<&co> since it’s a bit inland." - wait 1 - narrate "[Captain] -> You<&co> It's not far though, a short distance to walk." - wait 1 - narrate "[Captain] -> You<&co> Unless we arrive at night, I'm sure you'll do fine." - execute as_server "manuaddsub Roskgrod" - execute as_server "townyadmin town Roskgrod add " - wait 1 - execute as_server "sudo accept" - wait 1 - narrate "[Captain] -> You<&co> Here, take this. It's not much but It'll keep you alive." - wait 1 - narrate "[Captain] -> You<&co> Now head downstairs with the others, there should be a bed in the cabin." - wait 1 - narrate "[Captain] -> You<&co> It's not far, We'll arrive at the destination before you know it." - wait 1 - give "i@bread[display_name=Stale Bread;quantity=15]" - narrate "You've recived 15 Stale Bread from the Captain" - wait 1 - narrate "New Quest Objective: Get some rest." - flag player "BedTime" - flag player "Quest_A_New_Story_Begins_Roskgrod" - zap step:bed 4: Trigger: "/regex:.*Rhovan.*|.*rhovan.*/" Script: - invisible state:false - wait 1 - narrate "[Captain] -> You<&co> Looking to dig mines? Rhovan is in the great mountains," - wait 1 - narrate "[Captain] -> You<&co> and it'll be quite a trek, but I'm sure you already knew that." - wait 1 - narrate "[Captain] -> You<&co> We'll be docking just north of Westburry, " - wait 1 - narrate "[Captain] -> You<&co> so you'll want to hurry before nightfall arrives," - wait 1 - narrate "[Captain] -> You<&co> or at worst case, wait until dawn to venture out." - wait 1 - narrate "[Captain] -> You<&co> It's dangerous in the woods. Creatures, bandits, and such… Anyhow!" - execute as_server "manuaddsub Rhovan" - execute as_server "townyadmin town Rhovan add " - wait 1 - execute as_server "sudo accept" - wait 1 - narrate "[Captain] -> You<&co> Here, take this. It's not much but It'll keep you alive." - wait 1 - narrate "[Captain] -> You<&co> Now head downstairs with the others, there should be a bed in the cabin." - wait 1 - narrate "[Captain] -> You<&co> It's not far, We'll arrive at the destination before you know it." - wait 1 - give "i@bread[display_name=Stale Bread;quantity=15]" - narrate "You've recived 15 Stale Bread from the Captain" - wait 1 - narrate "New Quest Objective: Get some rest." - flag player "BedTime" - flag player "Quest_A_New_Story_Begins_Rhovan" - zap step:bed 5: Trigger: "/regex:.*Lindorthell.*|.*lindorthell.*/" Script: - invisible state:false - wait 1 - narrate "[Captain] -> You<&co> Lindorthell is beautiful - " - wait 1 - narrate "[Captain] -> You<&co> the northern jewel of the central continent!" - wait 1 - narrate "[Captain] -> You<&co> 'Tis a fine place situated right along the sea!" - execute as_server "manuaddsub Lindorthell" - execute as_server "townyadmin town Lindorthell add " - wait 1 - execute as_server "sudo accept" - wait 1 - narrate "[Captain] -> You<&co> Here, take this. It's not much but It'll keep you alive." - wait 1 - narrate "[Captain] -> You<&co> Now head downstairs with the others, there should be a bed in the cabin." - wait 1 - narrate "[Captain] -> You<&co> It's not far, We'll arrive at the destination before you know it." - wait 1 - give "i@bread[display_name=Stale Bread;quantity=15]" - narrate "You've recived 15 Stale Bread from the Captain" - wait 1 - narrate "New Quest Objective: Get some rest." - flag player "BedTime" - flag player "Quest_A_New_Story_Begins_Lindorthell" - zap step:bed 7: Trigger: "/regex:.+/" Script: - if { - invisible state:false - narrate "[Captain] -> You<&co> Hmph - I would recommend you go to one of the Great Cities to get your bearings." - wait 1 - narrate "[Captain] -> You<&co> I would suggest Cathar. I think you'll do well, there," - wait 1 - narrate "[Captain] -> You<&co> but it is up to you. So where do you think you're headed?" - wait 1 - execute as_server "sudo menu open city_menu" } - if { - invisible state:false - narrate "[Captain] -> You<&co> Hmph - I would recommend you go to one of the Great Cities to get your bearings." - wait 1 - narrate "[Captain] -> You<&co> I would suggest Cathar. I think you'll do well, there," - wait 1 - narrate "[Captain] -> You<&co> but it is up to you. So where do you think you're headed?" - wait 1 - execute as_server "sudo menu open city_menu" } - if { - invisible state:false - narrate "[Captain] -> You<&co> Hmph - I would recommend you go to one of the Great Cities to get your bearings." - wait 1 - narrate "[Captain] -> You<&co> I would suggest Orgoroth. I think you'll do well, there," - wait 1 - narrate "[Captain] -> You<&co> but it is up to you. So where do you think you're headed?" - wait 1 - execute as_server "sudo menu open city_menu" } - if { - invisible state:false - narrate "[Captain] -> You<&co> Hmph - I would recommend you go to one of the Great Cities to get your bearings." - wait 1 - narrate "[Captain] -> You<&co> I would suggest Orgoroth. I think you'll do well, there," - wait 1 - narrate "[Captain] -> You<&co> but it is up to you. So where do you think you're headed?" - wait 1 - execute as_server "sudo menu open city_menu" } - if { - invisible state:false - narrate "[Captain] -> You<&co> Hmph - I would recommend you go to one of the Great Cities to get your bearings." - wait 1 - narrate "[Captain] -> You<&co> I would suggest Roskgrod. I think you'll do well, there," - wait 1 - narrate "[Captain] -> You<&co> but it is up to you. So where do you think you're headed?" - wait 1 - execute as_server "sudo menu open city_menu" } - if { - invisible state:false - narrate "[Captain] -> You<&co> Hmph - I would recommend you go to one of the Great Cities to get your bearings." - wait 1 - narrate "[Captain] -> You<&co> I would suggest Rhovan. I think you'll do well, there," - wait 1 - narrate "[Captain] -> You<&co> but it is up to you. So where do you think you're headed?" - wait 1 - execute as_server "sudo menu open city_menu" } - if { - invisible state:false - narrate "[Captain] -> You<&co> Hmph - I would recommend you go to one of the Great Cities to get your bearings." - wait 1 - narrate "[Captain] -> You<&co> I would suggest Lindorthell. I think you'll do well, there," - narrate "[Captain] -> You<&co> but it is up to you. So where do you think you're headed?" - wait 1 - execute as_server "sudo menu open city_menu" } ChooseGender: chat Trigger: 1: Trigger: "/regex:.*female.*|.*woman.*|.*girl.*|.*Female.*|.*FEMALE.*/" Script: - invisible state:false - narrate "[Captain] -> You<&co> Good, now what's your race?" - ^execute as_server "manudelsub GenderMale" - execute as_server "manuaddsub GenderFemale" - wait 1 - zap step:ChooseRace - execute as_server "sudo menu open race_menu" 2: Trigger: "/regex:.*male.*|.*man.*|.*boy.*|.*Male.*|.*MALE.*/" Script: - invisible state:false - narrate "[Captain] -> You<&co> Good, now what's your race?" - ^execute as_server "manudelsub GenderFemale" - execute as_server "manuaddsub GenderMale" - wait 1 - zap step:ChooseRace - execute as_server "sudo menu open race_menu" 3: Trigger: "/regex:.+/" Script: - invisible state:false - narrate "[Captain] -> You<&co> Look, we need to get this over and done with, are you" - narrate "MALE, or FEMALE?" - zap step:ChooseGender ChooseRace: chat trigger: 1: Trigger: "/regex:.*Adan.*|.*man.*|.*human.*|.*adan.*/" Script: - ^execute as_server "manuaddsub Adan" - invisible state:false - narrate "[Captain] -> You<&co> Good, Good." - wait 1 - narrate "[Captain] -> You<&co> We're almost done here." - zap step:Destination - wait 2 - narrate "[Captain] -> You<&co> Lastly I'll need to know where you are headed." - execute as_server "sudo menu open city_menu" - zap step:1 2: Trigger: "/regex:.*Glamog.*|.*orc.*|.*glamog.*|.*Orc.*/" Script: - ^execute as_server "manuaddsub Glamog" - invisible state:false - narrate "[Captain] -> You<&co> Good, Good." - wait 1 - narrate "[Captain] -> You<&co> We're almost done here." - zap step:Destination - wait 2 - narrate "[Captain] -> You<&co> Lastly I'll need to know where you are headed." - execute as_server "sudo menu open city_menu" - zap step:1 3: Trigger: "/regex:.*Druin.*|.*nord.*|.*barbarian.*|.*druin.*|.*Barbarian.*|.*Nord.*/" Script: - ^execute as_server "manuaddsub Druin" - invisible state:false - narrate "[Captain] -> You<&co> Good, Good." - wait 1 - narrate "[Captain] -> You<&co> We're almost done here." - zap step:Destination - wait 2 - narrate "[Captain] -> You<&co> Lastly I'll need to know where you are headed." - execute as_server "sudo menu open city_menu" - zap step:1 4: Trigger: "/regex:.*Mahreki.*|.*goblin.*|.*mahreki.*|.*Goblin.*/" Script: - ^execute as_server "manuaddsub Mahreki" - invisible state:false - narrate "[Captain] -> You<&co> Good, Good." - wait 1 - narrate "[Captain] -> You<&co> We're almost done here." - zap step:Destination - wait 2 - narrate "[Captain] -> You<&co> Lastly I'll need to know where you are headed." - execute as_server "sudo menu open city_menu" - zap step:1 5: Trigger: "/regex:.*Anfang.*|.*dwarves.*|.*dwarf.*|.*anfang.*|.*Dwarf.*/" Script: - ^execute as_server "manuaddsub Anfang" - invisible state:false - invisible state:false - narrate "[Captain] -> You<&co> Good, Good." - wait 1 - narrate "[Captain] -> You<&co> We're almost done here." - zap step:Destination - wait 2 - narrate "[Captain] -> You<&co> Lastly I'll need to know where you are headed." - execute as_server "sudo menu open city_menu" - zap step:1 6: Trigger: "/regex:.*Perian.*|.*halfling.*|.*perian.*|.*Halfling.*|.*hobbit.*|.*Hobbit.*/" Script: - ^execute as_server "manuaddsub Perian" - invisible state:false - invisible state:false - narrate "[Captain] -> You<&co> Good, Good." - wait 1 - narrate "[Captain] -> You<&co> We're almost done here." - zap step:Destination - wait 2 - narrate "[Captain] -> You<&co> Lastly I'll need to know where you are headed." - execute as_server "sudo menu open city_menu" - zap step:1 7: Trigger: "/regex:.*Eylaed.*|.*elves.*|.*elf.*|.*eylaed.*|.*Elf.*/" Script: - ^execute as_server "manuaddsub Eylaed" - invisible state:false - invisible state:false - narrate "[Captain] -> You<&co> Good, Good." - wait 1 - narrate "[Captain] -> You<&co> We're almost done here." - zap step:Destination - wait 2 - narrate "[Captain] -> You<&co> Lastly I'll need to know where you are headed." - execute as_server "sudo menu open city_menu" - zap step:1 8: Trigger: "/regex:.+/" Script: - invisible state:false - narrate "[Captain] -> You<&co> Ha! those aren't flesh and blood, and you know it. Just stories made up for children... Now tell me, what is your race?" - execute as_server "sudo menu open race_menu" - zap step:ChooseRace Click Trigger: Script: - invisible state:false - narrate "[Captain] -> You<&co> What Race are you?" - wait 2 - execute as_server "sudo menu open race_menu" - zap step:ChooseRace bed: proximity Trigger: entry: Script: - narrate "[Captain] -> You<&co> Look I'm busy filling up the ship." - wait 1 - narrate "[Captain] -> You<&co> Head below the deck, go in the cabin and lay down." - wait 2 - narrate "[Captain] -> You<&co> We'll arrive at the destination before you know it." Click Trigger: Script: - invisible state:false - narrate "[Captain] -> You<&co> Look I'm busy filling up the ship." - wait 1 - narrate "[Captain] -> You<&co> Head below the deck, go in the cabin and lay down in the bed." - wait 2 - narrate "[Captain] -> You<&co> We'll arrive at the destination before you know it." Portal_direction_NPC: type: assignment interact scripts: - 10 Portal_direction_Script actions: on assignment: # These triggers enable interaction with an NPC via chatting, clicking and entering proximity - trigger name:chat state:true - trigger name:click state:true - trigger name:proximity state:true - lookclose state:false Portal_direction_Script: type: interact steps: 1: proximity Trigger: entry: Script: - narrate "[Guard] -> You<&co> Everyone follow the road to the right." - wait 1 - narrate "[Guard] -> You<&co> When you get to the docks, find the Captain onboard the ship. He'll take care of you!" - wait 2 - narrate "[Guard] -> You<&co> everyone nice and easy, in a straight line please!"