Author Topic: EA States  (Read 3282 times)

0 Members and 1 Guest are viewing this topic.

Offline Red Carnelian

  • Global Moderator
  • Level 1
  • *****
  • Posts: 356
  • Karma: +5/-0
  • Gender: Male
    • View Profile
    • The Stone of Askavar
EA States
« on: October 28, 2005, 02:36:19 PM »
This is a snip of code from Cuch's Dog in Dark Side for BG1. Put simply its supposed to change the state of the dog to controlled when cuch is in the party and neutral when he isn't in the party. Problem I'm having is when Cuch becomes part of the party the dog changes colour to green but isn't in a controlled state. Once I move out of that area where he joined though the Dog is controlled as it should be. Can anyone help me.


IF
   !InParty("CuChoinneach")
   !Allegiance("CuChoinneach",ENEMY)
THEN
   RESPONSE #100
      ChangeEnemyAlly(Myself,NEUTRAL)
      Continue()
END

IF
   InParty("CuChoinneach")
   !Allegiance("CuChoinneach",ENEMY)
THEN
   RESPONSE #100
      ChangeEnemyAlly(Myself,CONTROLLED)
      Continue()
END
Little is known of Nirel, a powerful cleric who could resist the spells of his enemies. However, history does record that he was a vile zealot whose hatred for followers of other faiths knew almost no bounds. It is said that he kept the heads of his victims as trophies and was personally responsible for defiling over one hundred temples of other faiths. In the centuries since, his mace has appeared in the hands of evil clerics across the Realms.