1--------------------------------------------------------------------- 2-- This file is part of Freedroid 3-- 4-- Freedroid is free software; you can redistribute it and/or modify 5-- it under the terms of the GNU General Public License as published by 6-- the Free Software Foundation; either version 2 of the License, or 7-- (at your option) any later version. 8-- 9-- Freedroid is distributed in the hope that it will be useful, 10-- but WITHOUT ANY WARRANTY; without even the implied warranty of 11-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12-- GNU General Public License for more details. 13-- 14-- You should have received a copy of the GNU General Public License 15-- along with Freedroid; see the file COPYING. If not, write to the 16-- Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 17-- MA 02111-1307 USA 18---------------------------------------------------------------------- 19--[[WIKI 20PERSONALITY = { "Belligerent", "Resentful" }, 21BACKSTORY = "$$NAME$$ is being held prisoner in the inner citadel for being apart of a resistance movement against the Red Guard." 22WIKI]]-- 23 24local Npc = FDrpg.get_npc() 25local Tux = FDrpg.get_tux() 26 27return { 28 FirstTime = function() 29 show("node0") 30 end, 31 32 EveryTime = function() 33 if (Tux:has_met("Peter")) then 34 Tux:says_random(_"Hello.", 35 _"Hi there.", "NO_WAIT") 36 Npc:says_random(_"Well, hello again.", 37 _"Hello hello.", 38 _"Welcome back.") 39 end 40 show("node99") 41 end, 42 43 { 44 id = "node0", 45 text = _"Why are you here?", 46 code = function() 47 Npc:says(_"I'm a political prisoner.") 48 Npc:says(_"Those red fascists put me here.") 49 Npc:says(_"And I guess you are a fascist too, as only Red Guard members are allowed in here.") 50 hide("node0") show("node1") 51 end, 52 }, 53 { 54 id = "node1", 55 text = _"What is a fascist?", 56 echo_text = false, 57 code = function() 58 Tux:says(_"What is ...", "NO_WAIT") 59 Npc:says(_"LALALALALA - I'm not hearing you. I have my fingers in my ears and just go - LALALALALA") 60 end, 61 }, 62 { 63 id = "node99", 64 text = _"Talk to you later.", 65 code = function() 66 Npc:says(_"Not in your life, Fascist!") 67 end_dialog() 68 end, 69 }, 70} 71