Author Topic: Dialogue option only availabe with a certain NPC  (Read 1327 times)

Offline redtempest

  • Yet another Hormonal Moose
  • Planewalker
  • *****
  • Posts: 22
  • Gender: Female
  • Resists everything but temptation. And Haer'Dalis.
Dialogue option only availabe with a certain NPC
« on: July 01, 2004, 11:51:38 PM »
Say, for example:
"I am Anomen Delryn, Priest of Helm and Romantic Lover Extraordinaire."
How could I script this so that this option only shows up if the speaker is Anomen?
I've tried

IF ~!Name("Anomen",Player1)~ THEN REPLY

But it doesn't seem to work.  :-[
Even if you're paranoid - they really might be after you.

Offline neriana

  • Planewalker
  • *****
  • Posts: 585
  • Gender: Female
    • Darien NPC for BG2
Re: Dialogue option only availabe with a certain NPC
« Reply #1 on: July 02, 2004, 12:22:30 AM »
! = not. What exactly are you trying to do, by the way?
The color of infinity inside an empty glass.

Offline jcompton

  • Niche Exploiter
  • Administrator
  • Planewalker
  • *****
  • Posts: 7246
Re: Dialogue option only availabe with a certain NPC
« Reply #2 on: July 02, 2004, 12:51:11 AM »
This is the result of a bit of communication between Ms. Tempest and myself.

I'm pretty sure she wants IsGabber() for this. She wanted !Name for something else. :)
Cespenar says, "Kelsey and friends be at the Pocket Plane? Ohhh yesssss!" http://www.pocketplane.net

Offline Rastor

  • Planewalker
  • *****
  • Posts: 271
  • Author of the book, "Being a Jerk for Dummies"
    • RPG Dungeon
Re: Dialogue option only availabe with a certain NPC
« Reply #3 on: July 02, 2004, 12:50:16 PM »
All that will do is return True if CHARNAME is not named Anomen.  IsGabber() is the best thing to use for what you are trying to do.

Offline redtempest

  • Yet another Hormonal Moose
  • Planewalker
  • *****
  • Posts: 22
  • Gender: Female
  • Resists everything but temptation. And Haer'Dalis.
Re: Dialogue option only availabe with a certain NPC
« Reply #4 on: July 02, 2004, 11:03:56 PM »
Yeah, solved it. Thanks. (Jason was trying to confuse me with information overload. :) )
Even if you're paranoid - they really might be after you.

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: