Author Topic: CHAIN and AI problem  (Read 1394 times)

Offline balduran

  • Supremacy of the Metal Kingdom
  • Planewalker
  • *****
  • Posts: 271
  • Gender: Male
  • Photo - useless. Inner beauty - questionable.
    • BG2 Improvements Mod by Victor and azure NPC Romance
CHAIN and AI problem
« on: September 15, 2005, 04:53:47 AM »
So, I'm making this CHAIN dialogue, and I noticed that it's OK if it is initiated with AI turned off, but it breaks if I try it with AI ON. How come?
Ask not! Dominate!

http://balduran.blackwyrmlair.net

-- BG2 Improvements
-- Azure NPC Romance

"In the end, my girlfirend became my arch-enemy, my arch-enemy became my best friend, and my best friend became my girlfriend. But hey - that's high school!"

Offline jcompton

  • Niche Exploiter
  • Administrator
  • Planewalker
  • *****
  • Posts: 7246
Re: CHAIN and AI problem
« Reply #1 on: September 15, 2005, 08:53:06 AM »
That's surprising, to say the very least, so I think you'd better just post the code.
Cespenar says, "Kelsey and friends be at the Pocket Plane? Ohhh yesssss!" http://www.pocketplane.net

Offline balduran

  • Supremacy of the Metal Kingdom
  • Planewalker
  • *****
  • Posts: 271
  • Gender: Male
  • Photo - useless. Inner beauty - questionable.
    • BG2 Improvements Mod by Victor and azure NPC Romance
Re: CHAIN and AI problem
« Reply #2 on: September 16, 2005, 06:42:29 AM »
This is the code of the chain:

Quote
CHAIN kiral 1
   ~How are you?~
   == azurej IF ~~ THEN
   ~Kiral! What are you doing here?~
   == kiral IF ~~ THEN ~I was looking for you.~
   == azurej IF ~~ THEN ~What for? Last time we saw each other, you told me I cannot be allowed inside Suldanessellar. Did you prehaps come to tell me that this has changed?~
   == kiral IF ~~ THEN ~My reason for being here hase little to do with Suldanessellar or my people. I wanted to tell you that one of our scouts spotted Trajan's location.~
   == azurej IF ~~ THEN ~You know where the traitor is? You must tell me, now!~
END kiral 2

There also seems to be a problem with two of the scripts which are supposed to start dialogues. They also seem to work only with AI OFF:

Quote
IF
   Global("AzureInParty","GLOBAL",1)
   See("Azure")
   Global("SharoMet","GLOBAL",0)
THEN
   RESPONSE #100
      MakeGlobal()
      SetGlobal("SharoInParty","GLOBAL",1)
      ActionOverride("Azure",StartDialogNoSet([PC]))
END

and

Quote
IF
   NumTimesTalkedTo(0)
   See("Azure")
   !StateCheck("Azure",STATE_SLEEPING)
THEN
   RESPONSE #100
      MakeGlobal()
      StartDialogNoSet("Azure")
END

The first quote is from the override script of Azure's guardian wolf, the second - from the script of an elf, who starts the chain above.

Is it possible that the problem is in the script position in the cre files? I mean, does it make difference if I place it as a GENERAL, DEFAULT, RACE or CLASS script. I know that the Override script is supposed to work with higher priority then the other scripts, but in my case it seems that it si actually being "overriden" by the other scripts when the AI is ON.
« Last Edit: September 16, 2005, 06:44:07 AM by balduran »
Ask not! Dominate!

http://balduran.blackwyrmlair.net

-- BG2 Improvements
-- Azure NPC Romance

"In the end, my girlfirend became my arch-enemy, my arch-enemy became my best friend, and my best friend became my girlfriend. But hey - that's high school!"

Offline jastey

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 1524
  • Gender: Female
Re: CHAIN and AI problem
« Reply #3 on: September 16, 2005, 10:55:56 AM »
As I wrote at BWL it works fine for me. ???

Offline jcompton

  • Niche Exploiter
  • Administrator
  • Planewalker
  • *****
  • Posts: 7246
Re: CHAIN and AI problem
« Reply #4 on: September 16, 2005, 11:08:26 AM »
Given that you're also the guy who can't get the eminently functional Jaheira flirt pack to work for him, yes, I suspect there's something larger causing you trouble here.
Cespenar says, "Kelsey and friends be at the Pocket Plane? Ohhh yesssss!" http://www.pocketplane.net

Offline balduran

  • Supremacy of the Metal Kingdom
  • Planewalker
  • *****
  • Posts: 271
  • Gender: Male
  • Photo - useless. Inner beauty - questionable.
    • BG2 Improvements Mod by Victor and azure NPC Romance
Re: CHAIN and AI problem
« Reply #5 on: September 17, 2005, 05:20:45 AM »
You suggest I should reinstall then?

Actually if it works for other players, then it is OK, since I was worried that people downloading that stuff could get the same problem, and I didn't want to release a non-working mod.
« Last Edit: September 17, 2005, 05:24:12 AM by balduran »
Ask not! Dominate!

http://balduran.blackwyrmlair.net

-- BG2 Improvements
-- Azure NPC Romance

"In the end, my girlfirend became my arch-enemy, my arch-enemy became my best friend, and my best friend became my girlfriend. But hey - that's high school!"

Offline balduran

  • Supremacy of the Metal Kingdom
  • Planewalker
  • *****
  • Posts: 271
  • Gender: Male
  • Photo - useless. Inner beauty - questionable.
    • BG2 Improvements Mod by Victor and azure NPC Romance
Re: CHAIN and AI problem
« Reply #6 on: September 19, 2005, 03:52:31 AM »
The new install fixed all isues, including the non-working Jaheira flirt.

THX!
Ask not! Dominate!

http://balduran.blackwyrmlair.net

-- BG2 Improvements
-- Azure NPC Romance

"In the end, my girlfirend became my arch-enemy, my arch-enemy became my best friend, and my best friend became my girlfriend. But hey - that's high school!"

 

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)?: