Beispiel #1
0
 protected override void ExtendedStart()
 {
     conversations = GetComponent <NPCConversations>();
     persistence   = GetComponent <PersistentNPC>();
     // narsty hack to not display the prompt for multi-box NPC signs
     if (generateMapIcon && !name.ToLower().Contains("sign"))
     {
         SpawnMapIcon();
     }
 }
Beispiel #2
0
 protected override void ExtendedStart()
 {
     conversations = GetComponent <NPCConversations>();
     persistence   = GetComponent <PersistentNPC>();
     // narsty hack to not display the prompt for multi-box NPC signs
     if (name.ToLower().Contains("sign"))
     {
         Instantiate(Resources.Load("NPCIcon"), transform.position, Quaternion.identity, this.transform);
     }
 }
Beispiel #3
0
    static NPC MakeItemPickupDialogue(InventoryItem item)
    {
        NPCConversations conversations = new NPCConversations();
        DialogueLine     line          = new DialogueLine();

        line.lineText     = "You got the <color=aqua>" + item.itemName + "</color>.";
        line.speakerImage = item.detailedIcon;
        line.speakerName  = "";

        //this was never meant to happen
        conversations.conversations = new List <Conversation>();
        conversations.conversations.Add(new Conversation(line));
        return(new NPC(conversations));
    }
Beispiel #4
0
 protected override void ExtendedStart()
 {
     conversations = GetComponent <NPCConversations>();
 }
Beispiel #5
0
 public NPC(NPCConversations c)
 {
     this.conversations = c;
 }
Beispiel #6
0
 public StatefulNPC(NPCConversations c) : base(c)
 {
     this.conversations = c;
 }