public static void PopulateLocList() { ILocation house = new ILocation(LOCN_ID_HOUSE, "Your House", "This is your home.", 0, 0) { Discovered = true, Revealed = true }; ILocation forest = new ILocation(LOCN_ID_FOREST, "Forest", "It's very quiet and shady.", 1, 0) { MonsterHere = IMonster.MonsterID(2), Discovered = true, QuestReqToSearch = IQuest.QuestID(4), ItemHere = IItem.ItemID(104), AfterSearchText = "When your hand touches the mushroom, you hear an angry growl in the distance." }; ILocation deepforest = new ILocation(LOCN_ID_DEEP_FOREST, "Deep Forest", "It's dark and damp this far into the woods.", 2, 0) { MonsterHere = IMonster.MonsterID(1), QuestReqToSearch = IQuest.QuestID(4), ItemHere = IItem.ItemID(104), AfterSearchText = "As you pick the mushroom, a huge shape rises and knocks you over, before disappearing away to the east. When you look down at your clothes, they are covered in mushroom spores, which you shake off." }; ILocation spidernest = new ILocation(LOCN_ID_SPIDER_NEST, "Spider's Nest", "There are webs everywhere...", 1, 1) { MonsterHere = IMonster.MonsterID(3) }; ILocation graveyard = new ILocation(LOCN_ID_GRAVEYARD, "Graveyard", "It's always eerie walking through a graveyard in the dark.", 1, -1) { MonsterHere = IMonster.MonsterID(0) }; ILocation mushroomgrove = new ILocation(LOCN_ID_MUSHROOM_GROVE, "Mushroom Grove", "Countless small mushrooms are growing on trees and underfoot.", 2, 1) { QuestReqToSearch = IQuest.QuestID(5), BossHere = IMonster.MonsterID(4), AfterSearchText = "During your search, you accidentally step on one of the faintly glowing mushrooms on the ground. There is a howl of rage from behind you, and a huge mushroom turns and charges you!" }; ILocation hut = new ILocation(LOCN_ID_ALCHEMIST_HOUSE, "Hut", "There is a sign outside that says \"Fizzlebrew Alchemy\". Blue smoke is coming out of the chimney.", 3, 0) { QuestReqToSearch = IQuest.QuestID(4), ItemHere = IItem.ItemID(104), AfterSearchText = "After you put the mushroom in your bag, you think you see a lumpy shadow shambling into the woods.", NpcHere = INpc.NpcID(0) }; LocList.Add(house); LocList.Add(forest); LocList.Add(deepforest); LocList.Add(spidernest); LocList.Add(graveyard); LocList.Add(hut); LocList.Add(mushroomgrove); }
public static void PopulateNpcList() { INpc alchemist = new INpc(NPC_ID_ALCHEMIST, "Alchemist Fizzlebrew") { Greetings = "Hello, traveller! I haven't got any potions in stock at the moment.", GiveQuests = { IQuest.QuestID(0), IQuest.QuestID(3), IQuest.QuestID(4), IQuest.QuestID(5) } }; NpcList.Add(alchemist); }
public static string DialogueWriter(Player player) { INpc npc = player.PlayerLocation.NpcHere; return("You greet " + npc.Name + ".\n\n\"" + npc.Greetings + "\""); }