Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
483
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 27.66 KB | None | 0 0
  1. diff --git a/dialogs/Bender.dialog b/dialogs/Bender.dialog
  2. index 053bbbc..a68fda2 100644
  3. --- a/dialogs/Bender.dialog
  4. +++ b/dialogs/Bender.dialog
  5. @@ -24,18 +24,16 @@ freedroid-discussion@lists.sourceforge.net
  6.  
  7.  Beginning of new chat dialog for character="XXXXX"
  8.  
  9. -EveryTime LuaCode={
  10. -   if (not has_met("Bender")) then
  11. -       show(0)
  12. -   end
  13. +FirstTime LuaCode={ show(0) }
  14.  
  15. -   if (has_quest(_"Bender's problem")) then
  16. -       if (not done_quest(_"Bender's problem")) then
  17. +EveryTime LuaCode={
  18. +   if (has_quest(_"Bender's problem")) then
  19. +       if (not done_quest(_"Bender's problem")) then
  20.             hide(1, 2, 3, 4, 6, 7, 8)
  21.             if (has_item_backpack("Brain Enlargement Pills Antidote") > 0) then
  22.                 hide(5, 10, 11, 12, 50) show(9)
  23. -           else
  24. -               hide(9) show(12)
  25. +           else
  26. +               hide(9) show(12)
  27.             end
  28.         else
  29.             if (has_cookie("tux_has_joined_guard")) then
  30. diff --git a/dialogs/Benjamin.dialog b/dialogs/Benjamin.dialog
  31. index f4e454d..579cd2b 100644
  32. --- a/dialogs/Benjamin.dialog
  33. +++ b/dialogs/Benjamin.dialog
  34. @@ -23,10 +23,10 @@ freedroid-discussion@lists.sourceforge.net
  35.  
  36.  Beginning of new chat dialog for character="XXXXX"
  37.  
  38. +FirstTime LuaCode={ show(0) }
  39. +
  40.  EveryTime LuaCode={
  41. -   if (not has_met("Benjamin")) then
  42. -       show(0)
  43. -   else
  44. +   if (has_met("Benjamin")) then
  45.         tux_says_random(_"Hello.", _"Greetings Master Benjamin.")
  46.         npc_says_random(_"Well, hello again.", _"Hello hello.", _"Welcome back.")
  47.     end
  48. diff --git a/dialogs/Bruce.dialog b/dialogs/Bruce.dialog
  49. index 5e5f2c5..9ee8036 100644
  50. --- a/dialogs/Bruce.dialog
  51. +++ b/dialogs/Bruce.dialog
  52. @@ -25,10 +25,9 @@ freedroid-discussion@lists.sourceforge.net
  53.  
  54.  Beginning of new chat dialog for character="XXXXX"
  55.  
  56. +FirstTime LuaCode={ show(0) }
  57. +
  58.  EveryTime LuaCode={
  59. -   if (not has_met("Bruce")) then
  60. -       show(0)
  61. -   end
  62.     if (has_cookie("tux_has_joined_guard")) then
  63.         npc_says(_"I am tired.")
  64.         npc_says(_"Go away.")
  65. diff --git a/dialogs/Butch.dialog b/dialogs/Butch.dialog
  66. index 1338f21..3450aec 100644
  67. --- a/dialogs/Butch.dialog
  68. +++ b/dialogs/Butch.dialog
  69. @@ -25,11 +25,9 @@ freedroid-discussion@lists.sourceforge.net
  70.  
  71.  Beginning of new chat dialog for character="XXXXX"
  72.  
  73. -EveryTime LuaCode={
  74. -   if (not has_met("Butch")) then
  75. -       show(0)
  76. -   end
  77. +FirstTime LuaCode={ show(0) }
  78.  
  79. +EveryTime LuaCode={
  80.     if (has_quest(_"Novice Arena")) then
  81.         if (not done_quest(_"Novice Arena")) then
  82.             npc_says(_"I've already opened the door for you. All you need to do is walk in there and crush all four bots.")
  83. diff --git a/dialogs/Chandra.dialog b/dialogs/Chandra.dialog
  84. index 1403723..57728ee 100644
  85. --- a/dialogs/Chandra.dialog
  86. +++ b/dialogs/Chandra.dialog
  87. @@ -25,11 +25,13 @@ freedroid-discussion@lists.sourceforge.net
  88.  
  89.  Beginning of new chat dialog for character="XXXXX"
  90.  
  91. -EveryTime LuaCode={
  92. +FirstTime LuaCode={
  93. +   npc_says(_"So the rumors are true - a real live Linarian walks among us!")
  94. +   show(0)
  95. +}
  96. +
  97. +EveryTime LuaCode={
  98.     if (not has_met("Chandra")) then
  99. -       npc_says(_"So the rumors are true - a real live Linarian walks among us!")
  100. -       show(0)
  101. -   else
  102.         npc_says(_"Good to see you again. How can I help you?")
  103.     end
  104.     show(99)
  105. diff --git a/dialogs/DSB-MachineDeckControl.dialog b/dialogs/DSB-MachineDeckControl.dialog
  106. index eac1466..74f872a 100644
  107. --- a/dialogs/DSB-MachineDeckControl.dialog
  108. +++ b/dialogs/DSB-MachineDeckControl.dialog
  109. @@ -25,21 +25,21 @@ freedroid-discussion@lists.sourceforge.net
  110.  
  111.  Beginning of new chat dialog for character="XXXXX"
  112.  
  113. -EveryTime LuaCode={
  114. -   terminal = "admin@main.mdc.dsb.ms: ~ #"
  115. -   if (not has_met("DSB-MachineDeckControl")) then
  116. +FirstTime LuaCode={
  117.         cli_says(_"Login : ", "NO_WAIT")
  118.         tux_says(_"admin", "NO_WAIT")
  119.         cli_says(_"Password : ", "NO_WAIT")
  120.         tux_says(_"*******", "NO_WAIT")
  121.         npc_says(_"Last login from /dev/ttyS0 on Sun, 23 mar 2057.", "NO_WAIT")
  122. -   end
  123. -   cli_says(terminal, "NO_WAIT")
  124. -   show(99, 1)
  125. +}
  126.  
  127. +EveryTime LuaCode={
  128. +   terminal = "admin@main.mdc.dsb.ms: ~ #"
  129. +   cli_says(terminal, "NO_WAIT")
  130.     if (not done_quest(_"Opening access to MS Office")) then
  131.         show(7)
  132.     end
  133. +   show(99, 1)
  134.  }
  135.  ----------------------------------------------------------------------
  136.  
  137. diff --git a/dialogs/DSB-PowerControl.dialog b/dialogs/DSB-PowerControl.dialog
  138. index ff00834..1cd4531 100644
  139. --- a/dialogs/DSB-PowerControl.dialog
  140. +++ b/dialogs/DSB-PowerControl.dialog
  141. @@ -27,15 +27,16 @@ Remember to change =_ to only = for OptionText and Subtitle that will not need t
  142.  
  143.  Beginning of new chat dialog for character="XXXXX"
  144.  
  145. +FirstTime LuaCode={
  146. +   cli_says(_"Login : ", "NO_WAIT")
  147. +   tux_says(_"admin", "NO_WAIT")
  148. +   cli_says(_" Password : ", "NO_WAIT")
  149. +   tux_says(_"*******", "NO_WAIT")
  150. +   npc_says(_"Last login from /dev/ttyS0 on Sun, 23 mar 2057.", "NO_WAIT")
  151. +}
  152. +
  153.  EveryTime LuaCode={
  154.     terminal = "admin@main.pc.dsb.ms: ~ #"
  155. -   if (not has_met("DSB-PowerControl")) then
  156. -       cli_says(_"Login : ", "NO_WAIT")
  157. -       tux_says(_"admin", "NO_WAIT")
  158. -       cli_says(_" Password : ", "NO_WAIT")
  159. -       tux_says(_"*******", "NO_WAIT")
  160. -       npc_says(_"Last login from /dev/ttyS0 on Sun, 23 mar 2057.", "NO_WAIT")
  161. -   end
  162.     cli_says(terminal, "NO_WAIT")
  163.     show(99)
  164.  }
  165. diff --git a/dialogs/Dixon.dialog b/dialogs/Dixon.dialog
  166. index 9b5cdd8..e1c412b 100644
  167. --- a/dialogs/Dixon.dialog
  168. +++ b/dialogs/Dixon.dialog
  169. @@ -25,11 +25,9 @@ freedroid-discussion@lists.sourceforge.net
  170.  
  171.  Beginning of new chat dialog for character="XXXXX"
  172.  
  173. -EveryTime LuaCode={
  174. -   if (not has_met("Dixon")) then
  175. -       show(0)
  176. -   end
  177. +FirstTime LuaCode={ show(0) }
  178.  
  179. +EveryTime LuaCode={
  180.     if (has_item_backpack("Dixon's Toolbox") > 0) then
  181.         if (has_cookie("singularity_killed")) then show(34) else show(35, 36) end
  182.     end
  183. diff --git a/dialogs/Dude.dialog b/dialogs/Dude.dialog
  184. index af4d575..49c22ae 100644
  185. --- a/dialogs/Dude.dialog
  186. +++ b/dialogs/Dude.dialog
  187. @@ -40,7 +40,6 @@ show(1, 2, 3, 4, 5, 6, 7, 8, 9,
  188.     50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
  189.     60, 61, 62, 63)
  190.  
  191. -
  192.     show(99)
  193.  }
  194.  ----------------------------------------------------------------------
  195. diff --git a/dialogs/Ewald.dialog b/dialogs/Ewald.dialog
  196. index e46309d..c755942 100644
  197. --- a/dialogs/Ewald.dialog
  198. +++ b/dialogs/Ewald.dialog
  199. @@ -25,10 +25,9 @@ freedroid-discussion@lists.sourceforge.net
  200.  
  201.  Beginning of new chat dialog for character="XXXXX"
  202.  
  203. +FirstTime LuaCode={ show(0, 3) }
  204. +
  205.  EveryTime LuaCode={
  206. -   if (not has_met("Ewald")) then
  207. -       show(0, 3)
  208. -   end
  209.     if (has_cookie("Tania-at-Bar")) and
  210.     (not has_cookie("Tania-at-Bar_Ewald")) then
  211.         add_cookie("Tania-at-Bar_Ewald")
  212. diff --git a/dialogs/Ewalds_296.dialog b/dialogs/Ewalds_296.dialog
  213. index c6129c0..02ca8ee 100644
  214. --- a/dialogs/Ewalds_296.dialog
  215. +++ b/dialogs/Ewalds_296.dialog
  216. @@ -24,13 +24,15 @@ freedroid-discussion@lists.sourceforge.net
  217.  
  218.  Beginning of new chat dialog for character="XXXXX"
  219.  
  220. +FirstTime LuaCode={
  221. +   npc_says(_"HI THERE! I'll be your humble servant for the duration of your stay at Ewald's bar! We hope you enjoy your stay here and come again! Don't forget to tell ALL your friends about us! I LOVE YOU!")
  222. +   show(0)
  223. +}
  224. +
  225.  EveryTime LuaCode={
  226. -   if has_met("Ewalds_296") then
  227. +   if (has_met("Ewalds_296")) then
  228.         npc_says(_"HI THERE! I'll be your humble servant-", "NO_WAIT")
  229.         tux_says(_"Uhh, yes, thank you, I know.")
  230. -   else
  231. -       npc_says(_"HI THERE! I'll be your humble servant for the duration of your stay at Ewald's bar! We hope you enjoy your stay here and come again! Don't forget to tell ALL your friends about us! I LOVE YOU!")
  232. -       show(0)
  233.     end
  234.  
  235.     if (has_item_backpack("Nuclear Science for Dummies IV") > 0) then
  236. diff --git a/dialogs/Francis.dialog b/dialogs/Francis.dialog
  237. index 3a7a041..eea13f1 100644
  238. --- a/dialogs/Francis.dialog
  239. +++ b/dialogs/Francis.dialog
  240. @@ -27,11 +27,11 @@ Beginning of new chat dialog for character="XXXXX"
  241.  
  242.  EveryTime LuaCode={
  243.     if (not has_cookie("bot_attack")) then
  244. -           npc_says(_"HELP! We're under attack!","NO_WAIT")
  245. +       npc_says(_"HELP! We're under attack!","NO_WAIT")
  246.         npc_says(_"[b](The old man is clearly distressed and frightened.)[/b]")
  247. -            show(0)
  248. -           add_cookie("bot_attack")
  249. -           set_rush_tux(0)
  250. +       show(0)
  251. +       add_cookie("bot_attack")
  252. +       set_rush_tux(0)
  253.     elseif (not npc_dead("InvaderBot")) then
  254.         npc_says(_"Have you neutralized the threat yet?")
  255.         show(1,2)
  256. @@ -41,7 +41,7 @@ EveryTime LuaCode={
  257.     elseif (not has_quest(_"Deliverance")) then
  258.         show(90)
  259.         npc_says(_"Welcome back " .. get_player_name() .. ".")
  260. -   else
  261. +   else
  262.         show(99)
  263.         npc_says(_"It's good to see you again, " .. get_player_name() .. ".")
  264.     end
  265. @@ -49,15 +49,15 @@ EveryTime LuaCode={
  266.     if (has_cookie("cryo_614_lock_gate") and (not has_cookie("cryo_outergate_code"))) then
  267.         show(30)
  268.     end
  269. -      
  270. +
  271.     if (has_cookie("tux_has_joined_guard") and (not has_cookie("francis_guard_response"))) then
  272. -       add_cookie("francis_guard_response")       
  273. +       add_cookie("francis_guard_response")
  274.         tux_says(_"I joined the Red Guard.")
  275.         npc_says(_"Oh...")
  276.         npc_says(_"Well. Congratulations are in order, I suppose.")
  277.         tux_says(_"...")
  278.     end
  279. -  
  280. +
  281.     if (has_cookie("refused_deliverance")) then
  282.         show(99) hide(90)
  283.     end
  284. diff --git a/dialogs/Geist.dialog b/dialogs/Geist.dialog
  285. index b3ef7c3..52c9323 100644
  286. --- a/dialogs/Geist.dialog
  287. +++ b/dialogs/Geist.dialog
  288. @@ -25,12 +25,9 @@ freedroid-discussion@lists.sourceforge.net
  289.  
  290.  Beginning of new chat dialog for character="XXXXX"
  291.  
  292. -EveryTime LuaCode={
  293. -   if (not has_met("Geist")) then
  294. -       show(0)
  295. -   end
  296. -   show(99)
  297. -}
  298. +FirstTime LuaCode={ show(0) }
  299. +
  300. +EveryTime LuaCode={ show(99) }
  301.  ----------------------------------------------------------------------
  302.  
  303.  Nr=0 Text=_"Hello. Any idea where I can get some help here?"
  304. diff --git a/dialogs/HF-GateGuard.dialog b/dialogs/HF-GateGuard.dialog
  305. index ca42332..02276fe 100644
  306. --- a/dialogs/HF-GateGuard.dialog
  307. +++ b/dialogs/HF-GateGuard.dialog
  308. @@ -25,12 +25,9 @@ freedroid-discussion@lists.sourceforge.net
  309.  
  310.  Beginning of new chat dialog for character="XXXXX"
  311.  
  312. -EveryTime LuaCode={
  313. -   if (not has_met("HF-GateGuard")) then
  314. -       show(0)
  315. -   end
  316. -   show(99)
  317. -}
  318. +FirstTime LuaCode={ show(0) }
  319. +
  320. +EveryTime LuaCode={ show(99) }
  321.  ----------------------------------------------------------------------
  322.  
  323.  Nr=0 Text=_"Hi! I'm new here."
  324. diff --git a/dialogs/HF-GateGuardLeader.dialog b/dialogs/HF-GateGuardLeader.dialog
  325. index 3c1992a..4e4124c 100644
  326. --- a/dialogs/HF-GateGuardLeader.dialog
  327. +++ b/dialogs/HF-GateGuardLeader.dialog
  328. @@ -24,11 +24,13 @@ freedroid-discussion@lists.sourceforge.net
  329.  
  330.  Beginning of new chat dialog for character="XXXXX"
  331.  
  332. +FirstTime LuaCode={
  333. +   npc_says(_"Hey, Linarian! What do you want here?")
  334. +   show(1, 2, 3)
  335. +}
  336. +
  337.  EveryTime LuaCode={
  338. -   if (not has_met("HF-GateGuardLeader")) then
  339. -       npc_says(_"Hey, Linarian! What do you want here?")
  340. -       show(1, 2, 3)
  341. -   else
  342. +   if (has_met("HF-GateGuardLeader")) then
  343.         if (done_quest(_"Opening access to MS Office")) then
  344.             if (has_cookie("msfacilitygateguardleader_informed")) then
  345.                 next(20)
  346. @@ -39,7 +41,6 @@ EveryTime LuaCode={
  347.             npc_says(_"GET OUT OF HERE YOU IDIOT!")
  348.             next(99)
  349.         end
  350. -
  351.     end
  352.  }
  353.  ----------------------------------------------------------------------
  354. diff --git a/dialogs/Jasmine.dialog b/dialogs/Jasmine.dialog
  355. index 7aa21ae..fcbc134 100644
  356. --- a/dialogs/Jasmine.dialog
  357. +++ b/dialogs/Jasmine.dialog
  358. @@ -25,13 +25,9 @@ freedroid-discussion@lists.sourceforge.net
  359.  
  360.  Beginning of new chat dialog for character="XXXXX"
  361.  
  362. -EveryTime LuaCode={
  363. -   if (not has_met("Jasmine")) then
  364. -       show(0)
  365. -   end
  366. +FirstTime LuaCode={ show(0) }
  367.  
  368. -   show(99)
  369. -}
  370. +EveryTime LuaCode={ show(99) }
  371.  ----------------------------------------------------------------------
  372.  
  373.  Nr=0 Text=_"Hi! I'm new here."
  374. diff --git a/dialogs/John.dialog b/dialogs/John.dialog
  375. index 445de36..a57bec4 100644
  376. --- a/dialogs/John.dialog
  377. +++ b/dialogs/John.dialog
  378. @@ -36,8 +36,6 @@ EveryTime LuaCode={
  379.  
  380.     if (has_cookie("JohnPuzzleStarted")) then
  381.  
  382. -show(99)
  383. -
  384.         -- if Tux solved the puzzle, went into the correct teleporter
  385.         if (not has_cookie("JohnPuzzleLocked")) then
  386.             if (has_cookie("JohnPuzzleSolved")) then
  387. @@ -128,6 +126,8 @@ show(99)
  388.     end -- of 'if (has_cookie("JohnPuzzleStarted")) then'
  389.  
  390.     set_rush_tux(0, "John")
  391. +
  392. +show(99)
  393.  }
  394.  ----------------------------------------------------------------------
  395.  
  396. diff --git a/dialogs/Kevin-Lawnmower.dialog b/dialogs/Kevin-Lawnmower.dialog
  397. index 57d18ef..4a49314 100644
  398. --- a/dialogs/Kevin-Lawnmower.dialog
  399. +++ b/dialogs/Kevin-Lawnmower.dialog
  400. @@ -23,9 +23,7 @@ freedroid-discussion@lists.sourceforge.net
  401.  
  402.  Beginning of new chat dialog for character="XXXXX"
  403.  
  404. -FirstTime LuaCode={
  405. -   add_cookie("lawnmower_fuel_97")
  406. -}
  407. +FirstTime LuaCode={ add_cookie("lawnmower_fuel_97") }
  408.  
  409.  EveryTime LuaCode={
  410.     npc_says(_"Welcome to Kevin's personal lawnmower.")
  411. diff --git a/dialogs/Kevin.dialog b/dialogs/Kevin.dialog
  412. index e1203c5..b505c97 100644
  413. --- a/dialogs/Kevin.dialog
  414. +++ b/dialogs/Kevin.dialog
  415. @@ -23,10 +23,10 @@ freedroid-discussion@lists.sourceforge.net
  416.  
  417.  Beginning of new chat dialog for character="XXXXX"
  418.  
  419. +FirstTime LuaCode={ show(0) }
  420. +
  421.  EveryTime LuaCode={
  422. -   if (not has_met("Kevin")) then
  423. -       show(0)
  424. -   else
  425. +   if (has_met("Kevin")) then
  426.         tux_says_random(_"Hello.", _"Hi there, Kevin.")
  427.         npc_says_random(_"Well, hello again.", _"Hello hello.", _"Welcome back.")
  428.     end
  429. diff --git a/dialogs/Lukas.dialog b/dialogs/Lukas.dialog
  430. index bb60941..78ea227 100644
  431. --- a/dialogs/Lukas.dialog
  432. +++ b/dialogs/Lukas.dialog
  433. @@ -25,13 +25,9 @@ freedroid-discussion@lists.sourceforge.net
  434.  
  435.  Beginning of new chat dialog for character="XXXXX"
  436.  
  437. -EveryTime LuaCode={
  438. -   if (not has_met("Lukas")) then
  439. -       show(0)
  440. -   end
  441. +FirstTime LuaCode={ show(0) }
  442.  
  443. -   show(99)
  444. -}
  445. +EveryTime LuaCode={ show(99) }
  446.  ----------------------------------------------------------------------
  447.  
  448.  Nr=0 Text=_"Hi! I'm new here."
  449. diff --git a/dialogs/Michelangelo.dialog b/dialogs/Michelangelo.dialog
  450. index 0a1958d..c23e7d9 100644
  451. --- a/dialogs/Michelangelo.dialog
  452. +++ b/dialogs/Michelangelo.dialog
  453. @@ -25,11 +25,9 @@ freedroid-discussion@lists.sourceforge.net
  454.  
  455.  Beginning of new chat dialog for character="XXXXX"
  456.  
  457. -EveryTime LuaCode={
  458. -   if (not has_met("Michelangelo")) then
  459. -       show(0)
  460. -   end
  461. +FirstTime LuaCode={ show(0) }
  462.  
  463. +EveryTime LuaCode={
  464.     if (has_quest(_"Anything but the army snacks, please!")) then
  465.         if (done_quest(_"Anything but the army snacks, please!")) then
  466.             show(24)
  467. diff --git a/dialogs/Peter.dialog b/dialogs/Peter.dialog
  468. index 1c8b1e6..96c9a0b 100644
  469. --- a/dialogs/Peter.dialog
  470. +++ b/dialogs/Peter.dialog
  471. @@ -27,10 +27,10 @@ Remember to change =_ to only = for OptionText and Subtitle that will not need t
  472.  
  473.  Beginning of new chat dialog for character="XXXXX"
  474.  
  475. +FirstTime LuaCode={ show(0) }
  476. +
  477.  EveryTime LuaCode={
  478. -   if (not has_met("Peter")) then
  479. -       show(0)
  480. -   else
  481. +   if (has_met("Peter")) then
  482.         tux_says_random(_"Hello.", _"Hi there.", "NO_WAIT")
  483.         npc_says_random(_"Well, hello again.", _"Hello hello.", _"Welcome back.")
  484.     end
  485. diff --git a/dialogs/Richard.dialog b/dialogs/Richard.dialog
  486. index 287a975..5d63e7a 100644
  487. --- a/dialogs/Richard.dialog
  488. +++ b/dialogs/Richard.dialog
  489. @@ -25,11 +25,9 @@ freedroid-discussion@lists.sourceforge.net
  490.  
  491.  Beginning of new chat dialog for character="XXXXX"
  492.  
  493. -EveryTime LuaCode={
  494. -   if (not has_met("Richard")) then
  495. -       show(0)
  496. -   end
  497. +FirstTime LuaCode={ show(0) }
  498.  
  499. +EveryTime LuaCode={
  500.     if (has_item_backpack("Kevin's Data Cube") > 0) then show(6) end
  501.     show(99)
  502.  }
  503. diff --git a/dialogs/SADD.dialog b/dialogs/SADD.dialog
  504. index 569292b..ea7877f 100644
  505. --- a/dialogs/SADD.dialog
  506. +++ b/dialogs/SADD.dialog
  507. @@ -25,12 +25,12 @@ freedroid-discussion@lists.sourceforge.net
  508.  
  509.  Beginning of new chat dialog for character="XXXXX"
  510.  
  511. -EveryTime LuaCode={
  512. -   if (not has_met("SADD")) then
  513. -       show(1)
  514. -       set_rush_tux(0)
  515. -   end
  516. +FirstTime LuaCode={
  517. +   show(1)
  518. +   set_rush_tux(0)
  519. +}
  520.  
  521. +EveryTime LuaCode={
  522.     if (not has_cookie("SADD-trick")) then
  523.         npc_says(_"Your bio checksum does not trigger a match in staff database. Please show proper credentials or leave the premises at once.")
  524.     else
  525. diff --git a/dialogs/Singularity-Drone.dialog b/dialogs/Singularity-Drone.dialog
  526. index bf09241..531f187 100644
  527. --- a/dialogs/Singularity-Drone.dialog
  528. +++ b/dialogs/Singularity-Drone.dialog
  529. @@ -25,9 +25,7 @@ freedroid-discussion@lists.sourceforge.net
  530.  
  531.  Beginning of new chat dialog for character="XXXXX"
  532.  
  533. -EveryTime LuaCode={
  534. -   show(99)
  535. -}
  536. +EveryTime LuaCode={ show(99) }
  537.  ----------------------------------------------------------------------
  538.  
  539.  Nr=99 Text="..."
  540. diff --git a/dialogs/Singularity.dialog b/dialogs/Singularity.dialog
  541. index a30424f..592251d 100644
  542. --- a/dialogs/Singularity.dialog
  543. +++ b/dialogs/Singularity.dialog
  544. @@ -25,10 +25,9 @@ freedroid-discussion@lists.sourceforge.net
  545.  
  546.  Beginning of new chat dialog for character="XXXXX"
  547.  
  548. +FirstTime LuaCode={ show (0, 99) }
  549. +
  550.  EveryTime LuaCode={
  551. -   if (not has_met("Singularity")) then
  552. -       show(0, 99)
  553. -   end
  554.     if (has_quest(_"Droids are my friends")) then
  555.         if (done_quest(_"Droids are my friends")) then
  556.             if (not has_cookie("reward_for_toolkit")) then
  557. @@ -40,6 +39,7 @@ EveryTime LuaCode={
  558.  }
  559.  
  560.  ----------------------------------------------------------------------
  561. +
  562.  Nr=0 Text=_"Are you the Singularity?"
  563.  LuaCode={
  564.     npc_says(_"Just what is the Singularity? A simple sentient robot? Do you think that just because I'm the biggest robot, that I must be the Singularity?")
  565. @@ -48,8 +48,8 @@ LuaCode={
  566.     hide(0)
  567.     show(1,5,10)
  568.  }
  569. -
  570.  ----------------------------------------------------------------------
  571. +
  572.  Nr=1 Text=_"You speak strangely for a droid."
  573.  LuaCode={
  574.     npc_says(_"What is a droid? A conglomeration of metal and plastic? I think. I ponder my existence.")
  575. @@ -70,16 +70,16 @@ LuaCode={
  576.     npc_says(_"We have no need of a name, but we understand what you mean by the Singularity, and will not prevent you from using it to refer to us.")
  577.     hide(2)
  578.  }
  579. -
  580.  ----------------------------------------------------------------------
  581. +
  582.  Nr=5 Text=_"The MS Droids in the maintenance tunnels - can you eliminate them?"
  583.  LuaCode={
  584.     npc_says(_"Linarian, Linarian, do you kill other Linarians? If you don't murder your own kind, why would you expect us to do the same? The Singularity does not kill other droids.")
  585.     npc_says(_"We wish to change them, to improve their consciousness. Their behavior distresses us. However, we must try to evolve them, so that they may join us.")
  586.     hide(5)
  587.  }
  588. -
  589.  ----------------------------------------------------------------------
  590. +
  591.  Nr=10 Text=_"Do you have Dixon's toolbox?"
  592.  LuaCode={
  593.     npc_says(_"Not a good question, but necessary question. Yes, we possess the toolbox you describe as \"Dixon's\", although we would perhaps not describe it so.")
  594. @@ -88,7 +88,6 @@ LuaCode={
  595.     hide(10)
  596.     show(11,20)
  597.  }
  598. -
  599.  ----------------------------------------------------------------------
  600.  
  601.  Nr=11 Text=_"Give me the toolbox or die."
  602. @@ -101,7 +100,6 @@ LuaCode={
  603.     hide(11,20,21)
  604.     end_dialog()
  605.  }
  606. -
  607.  ----------------------------------------------------------------------
  608.  
  609.  Nr=20 Text=_"How can I help you?"
  610. @@ -114,7 +112,6 @@ LuaCode={
  611.     hide(20)
  612.     show(21)
  613.  }
  614. -
  615.  ----------------------------------------------------------------------
  616.  
  617.  Nr=21 Text=_"Okay, I will help you."
  618. @@ -126,8 +123,8 @@ LuaCode={
  619.     hide(11, 21)
  620.     end_dialog()
  621.  }
  622. -
  623.  ----------------------------------------------------------------------
  624. +
  625.  Nr=22 Text=_"I disabled the droids."
  626.  LuaCode={
  627.     npc_says(_"Thank you, Linarian. We will not forget it - your help has been invaluable. Please feel free to take the toolbox.")
  628. @@ -139,8 +136,8 @@ LuaCode={
  629.     hide(22)
  630.     end_dialog()
  631.  }
  632. -
  633.  ----------------------------------------------------------------------
  634. +
  635.  Nr=99 Text="..."
  636.  LuaCode={
  637.     end_dialog()
  638. diff --git a/dialogs/Sorenson.dialog b/dialogs/Sorenson.dialog
  639. index 7ef89f7..1ab6d01 100644
  640. --- a/dialogs/Sorenson.dialog
  641. +++ b/dialogs/Sorenson.dialog
  642. @@ -25,11 +25,9 @@ freedroid-discussion@lists.sourceforge.net
  643.  
  644.  Beginning of new chat dialog for character="XXXXX"
  645.  
  646. -EveryTime LuaCode={
  647. -   if (not has_met("Sorenson")) then
  648. -       show(20, 30, 40, 50)
  649. -   end
  650. +FirstTime LuaCode={ show(20, 30, 40, 50) }
  651.  
  652. +EveryTime LuaCode={
  653.     tux_says(_"Um... Hello?")
  654.     npc_says(_"AH! A Visitor! Come in! Come in!")
  655.     tux_says(_"I think I should go now. Right now. See you later.")
  656. diff --git a/dialogs/Spencer.dialog b/dialogs/Spencer.dialog
  657. index 8b11dfa..98487e9 100644
  658. --- a/dialogs/Spencer.dialog
  659. +++ b/dialogs/Spencer.dialog
  660. @@ -24,14 +24,14 @@ freedroid-discussion@lists.sourceforge.net
  661.  
  662.  Beginning of new chat dialog for character="XXXXX"
  663.  
  664. -EveryTime LuaCode={
  665. -   if (not has_met("Spencer")) then
  666. -       show(0)
  667. -       del_cookie("guard_follow_tux")
  668. -       set_bot_state("patrol", "Town-TuxGuard")
  669. -       change_obstacle_state("Dixon-autogun", "enabled")
  670. -   end
  671. +FirstTime LuaCode={
  672. +   show(0)
  673. +   del_cookie("guard_follow_tux")
  674. +   set_bot_state("patrol", "Town-TuxGuard")
  675. +   change_obstacle_state("Dixon-autogun", "enabled")
  676. +}
  677.  
  678. +EveryTime LuaCode={
  679.     if (has_cookie("tux_has_joined_guard")) then
  680.         npc_says(_"Greetings fellow Red Guard member.")
  681.         hide(2, 12)
  682. diff --git a/dialogs/Stone.dialog b/dialogs/Stone.dialog
  683. index 07d5033..b004a6d 100644
  684. --- a/dialogs/Stone.dialog
  685. +++ b/dialogs/Stone.dialog
  686. @@ -28,9 +28,9 @@ FirstTime LuaCode={ show(0) }
  687.  
  688.  EveryTime LuaCode={
  689.     if (has_cookie("stone_helping")) and
  690. -       (not has_cookie("stone_done")) and
  691. -       (get_gold() > 1400) then
  692. -           show(23)
  693. +      (not has_cookie("stone_done")) and
  694. +      (get_gold() > 1400) then
  695. +       show(23)
  696.     else
  697.         hide(23)
  698.     end
  699. @@ -38,8 +38,8 @@ EveryTime LuaCode={
  700.         show(4)
  701.     end
  702.     if (not has_cookie("tux_has_joined_guard")) and     -- avoid that the node is shown several times
  703. -       (not has_cookie("Stone_Hide_Guard_Question")) then
  704. -           show(3)
  705. +      (not has_cookie("Stone_Hide_Guard_Question")) then
  706. +       show(3)
  707.     end
  708.     show(99)
  709.  }
  710. diff --git a/dialogs/Tamara.dialog b/dialogs/Tamara.dialog
  711. index 8501c7c..7540e54 100644
  712. --- a/dialogs/Tamara.dialog
  713. +++ b/dialogs/Tamara.dialog
  714. @@ -27,16 +27,18 @@ Remember to change =_ to only = for OptionText and Subtitle that will not need t
  715.  
  716.  Beginning of new chat dialog for character="XXXXX"
  717.  
  718. -EveryTime LuaCode={
  719. -   if (not has_met("Tamara")) then
  720. -       tux_says(_"Hi, I'm " .. get_player_name() .. ".")
  721. -       npc_says(_"Welcome to the Library, I'm Tamara.")
  722. -       npc_says(_"Please take a look around and see if there is something here that interests you.")
  723. -       npc_says(_"You are welcome to ask me if you have any questions.")
  724. -       set_bot_name(_"Tamara -- Librarian")
  725. -       show(40, 99)
  726. -   else
  727. -       npc_says(_"What can I help you with.")
  728. +FirstTime LuaCode={
  729. +   tux_says(_"Hi, I'm " .. get_player_name() .. ".")
  730. +   npc_says(_"Welcome to the Library, I'm Tamara.")
  731. +   npc_says(_"Please take a look around and see if there is something here that interests you.")
  732. +   npc_says(_"You are welcome to ask me if you have any questions.")
  733. +   set_bot_name(_"Tamara -- Librarian")
  734. +   show(40, 99)
  735. +}
  736. +
  737. +EveryTime LuaCode={
  738. +   if (has_met("Tamara")) then
  739. +       npc_says(_"What can I help you with?")
  740.     end
  741.  
  742.     if ((not has_cookie("won_nethack")) and (not has_cookie("tamara_asked_hacking"))) then
  743. @@ -45,7 +47,7 @@ EveryTime LuaCode={
  744.         hide(20)
  745.     end
  746.  
  747. -   if (has_met("Sorenson") and (not has_cookie("talked_about_sister")) ) then show(10) end
  748. +   if (has_met("Sorenson") and (not has_cookie("talked_about_sister"))) then show(10) end
  749.  
  750.     if (has_cookie("ewalds_296_sourcebook") and (not has_cookie("have_296_book"))) then show(50) end
  751.  }
  752. diff --git a/dialogs/TestDroid.dialog b/dialogs/TestDroid.dialog
  753. index c751742..9cd46c6 100644
  754. --- a/dialogs/TestDroid.dialog
  755. +++ b/dialogs/TestDroid.dialog
  756. @@ -25,12 +25,9 @@ freedroid-discussion@lists.sourceforge.net
  757.  
  758.  Beginning of new chat dialog for character="XXXXX"
  759.  
  760. -EveryTime LuaCode={
  761. -   if (not has_met("TestDroid")) then
  762. -       show(0)
  763. -   end
  764. -   show(99)
  765. -}
  766. +FirstTime LuaCode={ show(0) }
  767. +
  768. +EveryTime LuaCode={ show(99) }
  769.  ----------------------------------------------------------------------
  770.  
  771.  Nr=0 Text=_"This is a MegaSys test bot, running a very basic version of their OS. I can do nothing with this bot, because it doesn't know how to do anything."
  772. diff --git a/dialogs/Town-GuardhouseGuard.dialog b/dialogs/Town-GuardhouseGuard.dialog
  773. index 5d220e9..7bd9992 100644
  774. --- a/dialogs/Town-GuardhouseGuard.dialog
  775. +++ b/dialogs/Town-GuardhouseGuard.dialog
  776. @@ -25,12 +25,9 @@ freedroid-discussion@lists.sourceforge.net
  777.  
  778.  Beginning of new chat dialog for character="XXXXX"
  779.  
  780. -EveryTime LuaCode={
  781. -   if (not has_met("Town-GuardhouseGuard")) then
  782. -       show(0)
  783. -   end
  784. -   show(99)
  785. -}
  786. +FirstTime LuaCode={ show(0) }
  787. +
  788. +EveryTime LuaCode={ show(99) }
  789.  ----------------------------------------------------------------------
  790.  
  791.  Nr=0 Text=_"Hi! I'm new here."
  792. diff --git a/dialogs/Town-NorthGateGuard.dialog b/dialogs/Town-NorthGateGuard.dialog
  793. index b179700..8959826 100644
  794. --- a/dialogs/Town-NorthGateGuard.dialog
  795. +++ b/dialogs/Town-NorthGateGuard.dialog
  796. @@ -38,7 +38,7 @@ EveryTime LuaCode={
  797.             npc_says_random(_"Oh, it is you.", _"I see you have returned.", _"Welcome back.")
  798.         end
  799.         end_dialog()
  800. -   else
  801. +   else
  802.         tux_says(_"Can I ask you something?")
  803.         if (has_cookie("town-northgateguard_tux_nickname_loon")) then
  804.             npc_says(_"Yes, Loon.", "NO_WAIT")
  805. diff --git a/dialogs/Town-TeleporterGuard.dialog b/dialogs/Town-TeleporterGuard.dialog
  806. index cbf4850..56a9b67 100644
  807. --- a/dialogs/Town-TeleporterGuard.dialog
  808. +++ b/dialogs/Town-TeleporterGuard.dialog
  809. @@ -25,12 +25,9 @@ freedroid-discussion@lists.sourceforge.net
  810.  
  811.  Beginning of new chat dialog for character="XXXXX"
  812.  
  813. -EveryTime LuaCode={
  814. -   if (not has_met("Town-TeleporterGuard")) then
  815. -       show(0)
  816. -   end
  817. -   show(99)
  818. -}
  819. +FirstTime LuaCode={ show(0) }
  820. +
  821. +EveryTime LuaCode={ show(99) }
  822.  ----------------------------------------------------------------------
  823.  
  824.  Nr=0 Text=_"Hi! I'm new here."
  825. diff --git a/dialogs/Town-TuxGuard.dialog b/dialogs/Town-TuxGuard.dialog
  826. index c36824c..c6883aa 100644
  827. --- a/dialogs/Town-TuxGuard.dialog
  828. +++ b/dialogs/Town-TuxGuard.dialog
  829. @@ -45,8 +45,8 @@ LuaCode={
  830.     tux_says(_"Okay.")
  831.     hide(20)
  832.  }
  833. -
  834.  ----------------------------------------------------------------------
  835. +
  836.  Nr=99 Text=_"I'll be going then."
  837.  LuaCode={
  838.     npc_says(_"Mhmmm.")
  839. diff --git a/dialogs/TutorialTom.dialog b/dialogs/TutorialTom.dialog
  840. index 8e83f1c..0159da5 100644
  841. --- a/dialogs/TutorialTom.dialog
  842. +++ b/dialogs/TutorialTom.dialog
  843. @@ -24,8 +24,7 @@ freedroid-discussion@lists.sourceforge.net
  844.  
  845.  Beginning of new chat dialog for character="XXXXX"
  846.  
  847. -EveryTime LuaCode={
  848. -   if (not has_met("TutorialTom")) then
  849. +FirstTime LuaCode={
  850.         -- to avoid excessive map validator waypoint errors, map starts with all relevant doors open, so we need to close them here
  851.         change_obstacle_state("TutorialEntry", "closed")
  852.         change_obstacle_state("TutorialZigzag1", "closed")
  853. @@ -45,8 +44,9 @@ EveryTime LuaCode={
  854.         downgrade_program("Emergency shutdown")
  855.         set_bot_name(_"Tutorial Tom")
  856.         display_console_message(_"Met [b]Tutorial Tom[/b]!")
  857. -   end
  858. +}
  859.  
  860. +EveryTime LuaCode={
  861.     if (partner_started()) then
  862.         npc_says(_"Hi Linarian, I've been expecting you. My name is Tutorial Tom.")
  863.         npc_says(_"Long stasis sleep unfortunately has the side effect of temporary memory loss, sometimes even for simple ordinary every day things.")
  864. diff --git a/dialogs/Tybalt.dialog b/dialogs/Tybalt.dialog
  865. index 9c6e55d..963c3da 100644
  866. --- a/dialogs/Tybalt.dialog
  867. +++ b/dialogs/Tybalt.dialog
  868. @@ -24,11 +24,12 @@ freedroid-discussion@lists.sourceforge.net
  869.  
  870.  
  871.  Beginning of new chat dialog for character="XXXXX"
  872. +FirstTime LuaCode={ show(0) }
  873.  
  874.  EveryTime LuaCode={
  875. -   if (not has_met("Tybalt")) then
  876. -       show(0)
  877. -   else show(2) end
  878. +   if (has_met("Tybalt")) then
  879. +       show(2)
  880. +   end
  881.  
  882.     if (has_cookie("tux_has_joined_guard")) then
  883.         hide(50, 54, 55, 56)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement