static EitriBrain() { SfDialog = new DialogEntry(); ConversationEntry defConvers = SfDialog.AddConversation(); defConvers.Name = BaseLocale.GetStr(RS.rs_EitriTopic); TopicEntry rootTopic = defConvers.AddTopic(); rootTopic.Answer = BaseLocale.GetStr(RS.rs_EitriSaid) + "\"" + BaseLocale.GetStr(RS.rs_Eitri1) + "\"."; TopicEntry topic = rootTopic.AddTopic(); topic.Condition = "player.hasItem('PlatinumAnvil')"; topic.Phrase = BaseLocale.GetStr(RS.rs_Eitri_Yes); topic.Answer = BaseLocale.GetStr(RS.rs_Eitri3) + " " + BaseLocale.GetStr(RS.rs_Eitri4); topic.Action = "player.transferItem(NPC, 'PlatinumAnvil'); NPC.transferItem(player, 'DwarvenArm');"; topic = rootTopic.AddTopic(); topic.Phrase = BaseLocale.GetStr(RS.rs_Eitri_No); topic.Answer = BaseLocale.GetStr(RS.rs_Eitri2); }
static VictimBrain() { SfAgnarDialog = new DialogEntry(); ConversationEntry defConvers = SfAgnarDialog.AddConversation(BaseLocale.GetStr(RS.rs_Sacrifice)); TopicEntry rootTopic = defConvers.AddTopic(); rootTopic.Answer = BaseLocale.GetStr(RS.rs_Agnar_IsStrungUp) + " " + BaseLocale.GetStr(RS.rs_VictimPleads); TopicEntry topic1 = rootTopic.AddTopic(); topic1.Phrase = BaseLocale.GetStr(RS.rs_Agnar_KickOutStump); topic1.Answer = BaseLocale.GetStr(RS.rs_SacrificeAward); topic1.Action = "NPC.sacrificeVictim();"; TopicEntry topic2 = rootTopic.AddTopic(); topic2.Phrase = BaseLocale.GetStr(RS.rs_SetHimFree); topic2.Answer = BaseLocale.GetStr(RS.rs_VictimFree); topic2.Action = "NPC.freeVictim();"; TopicEntry topic3 = rootTopic.AddTopic(); topic3.Phrase = BaseLocale.GetStr(RS.rs_DoNothing); topic3.Answer = ""; SfHaddingrDialog = new DialogEntry(); defConvers = SfHaddingrDialog.AddConversation(BaseLocale.GetStr(RS.rs_Sacrifice)); rootTopic = defConvers.AddTopic(); rootTopic.Answer = BaseLocale.GetStr(RS.rs_Haddingr_IsPinned) + " " + BaseLocale.GetStr(RS.rs_VictimPleads); topic1 = rootTopic.AddTopic(); topic1.Phrase = BaseLocale.GetStr(RS.rs_Haddingr_TwistSpear); topic1.Answer = BaseLocale.GetStr(RS.rs_SacrificeAward); topic1.Action = "NPC.sacrificeVictim();"; topic2 = rootTopic.AddTopic(); topic2.Phrase = BaseLocale.GetStr(RS.rs_SetHimFree); topic2.Answer = BaseLocale.GetStr(RS.rs_VictimFree); topic2.Action = "NPC.freeVictim();"; topic3 = rootTopic.AddTopic(); topic3.Phrase = BaseLocale.GetStr(RS.rs_DoNothing); topic3.Answer = ""; SfKetillDialog = new DialogEntry(); defConvers = SfKetillDialog.AddConversation(BaseLocale.GetStr(RS.rs_Sacrifice)); rootTopic = defConvers.AddTopic(); rootTopic.Answer = BaseLocale.GetStr(RS.rs_Ketill_IsDangling) + " " + BaseLocale.GetStr(RS.rs_VictimPleads); topic1 = rootTopic.AddTopic(); topic1.Phrase = BaseLocale.GetStr(RS.rs_Ketill_DrownHim); topic1.Answer = BaseLocale.GetStr(RS.rs_SacrificeAward); topic1.Action = "NPC.sacrificeVictim();"; topic2 = rootTopic.AddTopic(); topic2.Phrase = BaseLocale.GetStr(RS.rs_SetHimFree); topic2.Answer = BaseLocale.GetStr(RS.rs_VictimFree); topic2.Action = "NPC.freeVictim();"; topic3 = rootTopic.AddTopic(); topic3.Phrase = BaseLocale.GetStr(RS.rs_DoNothing); topic3.Answer = ""; }