Author Topic: Mis-structured trigger in a talk  (Read 2169 times)

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Mis-structured trigger in a talk
« on: March 09, 2008, 11:46:23 AM »
During the "There is certainly much to be seen in the world" talk, with Extended Banters from G3Tweaks (but perhaps not only), you can get a duplicated line (the Imoen one).

Code: [Select]
IF ~~ t15.main
SAY @599
+ ~InParty("Imoen2") InMyArea("Imoen2") !StateCheck("Imoen2",CD_STATE_NOTVALID)~ + @600 EXTERN IMOEN2J t15.imoenhey
+ ~OR(2) !InParty("Imoen2") InMyArea("Imoen2")~ + @600 + t15.main2
++ @601 + t15.badperson
++ @602 + t15.main2
++ @603 + t15.painfully
END
The Imoen and no-Imoen triggers should be one the opposite of the other:
Code: [Select]
IF ~~ t15.main
SAY @599
+ ~InParty("Imoen2") InMyArea("Imoen2") !StateCheck("Imoen2",CD_STATE_NOTVALID)~ + @600 EXTERN IMOEN2J t15.imoenhey
+ ~OR(3) !InParty("Imoen2") !InMyArea("Imoen2") StateCheck("Imoen2",CD_STATE_NOTVALID)~ + @600 + t15.main2
++ @601 + t15.badperson
++ @602 + t15.main2
++ @603 + t15.painfully
END
Notice the negation to the second InMyArea and the added StateCeck.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6253
  • Gender: Female
  • The perfect moment is now.
Re: Mis-structured trigger in a talk
« Reply #1 on: March 09, 2008, 12:31:27 PM »
That's my typo in the second line, yes - should be !InMyArea("Imoen2"). (And I'll mirror the trigger while I'm at it). Thank 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)?: