Thread: Delta[Npc's talking about head]

Results 1 to 2 of 2
  1. #1 Delta[Npc's talking about head] 
    Registered Member
    Join Date
    Sep 2008
    Posts
    59
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    I want it to make a npc say when the next pest control game is going to start.
    Is this how I would do it?


    if (npcs[NPCID].npcType == 3789) {
    if (misc.random(90) == 2) {
    npcs[i].updateRequired = true;
    npcs[i].textUpdateRequired = true;
    npcs[i].textUpdate = "Game will start in +PlayerHandler.pcWaitTimer+";
    }
    }
    Reply With Quote  
     

  2. #2  
    Renown Programmer
    Method's Avatar
    Join Date
    Feb 2009
    Posts
    1,455
    Thanks given
    0
    Thanks received
    842
    Rep Power
    3019
    it looks like it might, but only once every 90 tries or so. why are you making it happen randomly?

    edit: nevermind, it looks like you're doing some incorrect String concatenation.
    :-)
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •