Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Set the name of the NPC. This will be displayed on the top of the panel.
- NPC.name = "Rezeption"
- -- Uncomment to make the NPC sit.
- --NPC.sequence = "sit"
- -- This is the function that gets called when the player presses <E> on the NPC.
- function NPC:onStart()
- -- self:addText(<text>) adds text that comes from the NPC.
- self:addText("Willkommen im 'THE TIDES'-Hotel. Wie kann ich Ihnen helfen?")
- -- self:addOption(<text>, <callback>) is a button that you can pick and it will
- -- run the callback function.
- self:addOption("Ich möchte ein Apartment mieten.", function()
- -- This code is inside a function that gets ran after pressing the option.
- self:addText("Okay, was ist Ihr derzeitiges Budget, das Sie für eine 3 Tage Miete eines Apartments zahlen würden?")
- self:addOption("~ 250.000", function()
- self:addText("Hierzu kommen folgende Apartments infrage:")
- self:addText("'Apartment 1' direkt links an der Ecke.")
- self:addText("'Apartment 2' direkt links hinten am Ende des Gangs.")
- end)
- self:addOption("~ 500.000", function()
- self:addText("Hierzu kommen folgende Apartments infrage:")
- self:addText("'Premium Suite' direkt rechts hinter der Rezeption.")
- end)
- -- self:addLeave(<leave text>) adds a button that closes the dialogue.
- self:addLeave("Ich muss gehen.")
- end)
- self:addOption("Was macht ihr Hotel so besonders?", function()
- -- This code is inside a function that gets ran after pressing the option.
- self:addText("Wir bieten unseren Kunden vornehm eingerichtete Apartments mit einfacher Bedienung der Mitbesitzer, Türen, Props an. Außerdem verfügen Sie über eine eigene Türklingel.")
- -- Add a leave.
- self:addLeave("Ouch!")
- end)
- self:addLeave("No thanks.")
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement