Advertisement
Deadman69330

Erreur Chesnut

Mar 21st, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.98 KB | None | 0 0
  1. -- Set the name of the NPC. This will be displayed on the top of the panel.
  2. NPC.name = "Surveillant"
  3.  
  4. -- This is the function that gets called when the player presses <E> on the NPC.
  5. function NPC:onStart()
  6.     -- self:addText(<text>) adds text that comes from the NPC.
  7.     self:addText("Que veut tu esclave ?")
  8.  
  9.     -- self:addOption(<text>, <callback>) is a button that you can pick and it will
  10.     -- run the callback function.
  11.     self:addOption("Je veux devenir un sith !", function()
  12.         -- This code is inside a function that gets ran after pressing the option.
  13.         self:addText("Et bien, pour devenir Acolyte tu devra trouver mon apprenti, il t'enseignera des choses utiles. Il se trouve dans les tombeaux")
  14.  
  15.         -- self:addLeave(<leave text>) adds a button that closes the dialogue.
  16.         self:addLeave("Merci (ferme la conversation)")
  17.     end)
  18.  
  19.     -- You can have as many options as you need.
  20.     self:addOption("Parlez moi mieux !", function()
  21.         self:addText("Est-tu sûr de ce que tu dit cloporte ?!")
  22.  
  23.         self:addOption("Oui !", function()
  24.             self:send("Ignite", 15)
  25.  
  26.             -- Add a leave.
  27.             self:addLeave("Ouch!")
  28.         end)
  29.         self:addLeave("Non excusez moi (ferme la conversation)")
  30.     end)
  31.    
  32.     self:addOption("J'ai fini ma formation", function()
  33.         self:addText("Et bien récite moi le code sith alors")
  34.             self:addOption("La paix est un mensonge, il n'y a que la passion", function()
  35.                 self:addText("Bien, continue")
  36.                     self:addOption("Par la passion je domine", function()
  37.                         self:addText("C'EST FAUX, RETOURNE APPRENDRE")
  38.                         self:send("Ignite", 5)
  39.                         self:addLeave("Excusez moi !")
  40.                     end)
  41.                     self:addOption("Par la passion j'ai la puissance", function()
  42.                         self:addText("Bien, continue")
  43.                     end)
  44.                             self:addOption("Par la puissance j'ai le pouvoir", function()
  45.                                 self:addText("Bien, continue")
  46.                             end)
  47.                                     self:addOption("Par la victoire je brise mes chaines", function()
  48.                                         self:addText("C'EST FAUX, RETOURNE APPRENDRE")
  49.                                         self:send("Ignite", 5)
  50.                                         self:addLeave("Excusez moi !")
  51.                                     end)
  52.                                     self:addOption("Par la victoire je me libère", function()
  53.                                         self:addText("C'EST FAUX, RETOURNE APPRENDRE")
  54.                                         self:send("Ignite", 5)
  55.                                         self:addLeave("Excusez moi !")
  56.                                     end)
  57.                                     self:addOption("Par le pouvoir j'ai la victoire", function()
  58.                                         self:addText("Bien, continue")
  59.                                     end)
  60.                                             self:addOption("Par la victoire je brise ta mère", function()
  61.                                                 self:addText("COMMENT OSE TU MISERABLE, TU VA MOURRIR POUR CELA !")
  62.                                                 self:send("Ignite", 10)
  63.                                                 self:addLeave("Excusez moi !")
  64.                                             end)
  65.                                             self:addOption("Par la victoire je brise mes chaînes", function()
  66.                                                 self:addText("Une dernière pour la route")
  67.                                                     self:addOption("La force me libèrera")
  68.                                                         self:addText("Bien, tu à bien révisé")
  69.                                             end)
  70.                                                             self:addOption("Que dois-je faire maintenant ?", function()
  71.                                                                 self:addText("Tu doit aller tuer 6 Tuk'ata dans la vallée des morts, quand ce sera fait tu ira voir Spindrall dans les tombeaux")
  72.                                                                     self:addLeave("Bien, merci Surveillant")
  73.                                                                     self:addLeave("Ouais c'est ça....")
  74.                                                                         self:send("Ignite", 2)
  75.                                                             end)
  76.                                                     self:addOption("La libération me tuera", function()
  77.                                                         self:addText("C'EST FAUX, RETOURNE APPRENDRE")
  78.                                                         self:send("Ignite", 5)
  79.                                                         self:addLeave("Excusez moi !")
  80.                                                     end)
  81.                                                     self:addOption("La mort me libèrera", function()
  82.                                                         self:addText("C'EST FAUX, RETOURNE APPRENDRE")
  83.                                                         self:send("Ignite", 5)
  84.                                                         self:addLeave("Excusez moi !")
  85.                                                     end)
  86.                                             self:addOption("Par la victoire je brise mes ennemis", function()
  87.                                                 self:addText("C'EST FAUX, RETOURNE APPRENDRE")
  88.                                                 self:send("Ignite", 5)
  89.                                                 self:addLeave("Excusez moi !")
  90.                                             end)
  91.                             self:addOption("Par le pouvoir j'ai la puissance", function()
  92.                                 self:addText("C'EST FAUX, RETOURNE APPRENDRE")
  93.                                 self:send("Ignite", 5)
  94.                                 self:addLeave("Excusez moi !")
  95.                             end)
  96.                             self:addOption("Par la puissance j'ai la victoire", function()
  97.                                 self:addText("C'EST FAUX, RETOURNE APPRENDRE")
  98.                                 self:send("Ignite", 5)
  99.                                 self:addLeave("Excusez moi !")
  100.                             end)
  101.                     self:addOption("Par la passion je brûle", function()
  102.                         self:addText("C'EST FAUX, RETOURNE APPRENDRE")
  103.                         self:send("Ignite", 5)
  104.                         self:addLeave("Excusez moi !")
  105.                     end)
  106.             end)
  107.             self:addOption("La paix est la vérité, il n'y a que les sentiments", function()
  108.                 self:addText("C'EST FAUX, RETOURNE APPRENDRE")
  109.                 self:send("Ignite", 5)
  110.                 self:addLeave("Excusez moi !")
  111.             end)
  112.             self:addOption("La paix n'existe pas, il n'y a que la passion", function()
  113.                 self:addText("C'EST FAUX, RETOURNE APPRENDRE")
  114.                 self:send("Ignite", 5)
  115.                 self:addLeave("Excusez moi !")
  116.             end)
  117.     end)
  118. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement