Signup Now
Results 1 to 5 of 5
  1. #1
    Free User
    Join Date
    Aug 2014
    Posts
    15
    Reputation
    10
    Rep Power
    0

    Question [Help] Respond X if NPC say Y.

    Hi guys.

    I am in need of kind of a NPC auto responder, since this in particular NPC will say randoms thing in which you must reply a specific line to get it right.

    For instance:

    NPC: Hello <Name>.
    Me: Hi
    NPC: What is the name of my cat?
    Me: Ziggy
    NPC: Alright, next random question --- what is the lenght of my right ear?
    Me: 3,1
    NPC: Congratulations, you won the random answer competition! Say "Reward" to gain your prize.
    Me: Reward.
    I hope you understand what I mean. Thank you kindly for assisting me!

    Is this maybe something I can beg for your help? @Raphael, @Dehan, @Leonardo, @SuNe?
    Last edited by adihada; 08-24-2014 at 04:08 PM.

  2. #2
    Free User
    Join Date
    Aug 2014
    Posts
    15
    Reputation
    10
    Rep Power
    0
    Anyone? I've been trying around with $lastnpcmsg, $writtentext in both persistent scripter and action waypoint in the scripter but nothing seems to work.

  3. #3
    Free User
    Join Date
    Aug 2014
    Posts
    15
    Reputation
    10
    Rep Power
    0
    Still trying everything I can find and teach myself. Help is very appreciated...

  4. #4
    Wind Powered
    Join Date
    Dec 2013
    Location
    dvscripts.com
    Posts
    7,105
    Reputation
    433
    Rep Power
    39
    How its working ? you can make all in action and make smth

        auto(100)
    if $lastnpcmsg.content == 'You dont have enough money.' then
    say("blabla")
    elseif $lastnpcmsg.content == 'You dont have enough moneyaaaaaa.' then
    say("bleble")
    end


    etc?

  5. #5
    Free User
    Join Date
    Aug 2014
    Posts
    15
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by Dworak View Post
    How its working ? you can make all in action and make smth

        auto(100)
    if $lastnpcmsg.content == 'You dont have enough money.' then
    say("blabla")
    elseif $lastnpcmsg.content == 'You dont have enough moneyaaaaaa.' then
    say("bleble")
    end


    etc?
    Hi,

    thank you very much for your help! I have been working hence the late reply.

    I have been trying around with that script a lot but I'll test yours right now and update.

    Thanks, brb

 

 

Posting Permissions

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