Author Topic: [solved] I don't want to speak to party except protagonist ...  (Read 1391 times)

Offline Baldurien

  • Planewalker
  • *****
  • Posts: 28
Hello

I'm trying to force the player to speak only with the protagonist to a specific player,

I've tried that :
0x40BC IsGabber(O:Object*)
NT Returns true only if the specified object is in the party but is not the protagonist.

Code: [Select]
IF ~IsGabber(LastTalkedToBy)~
THEN BEGIN notprotagonist
SAY ~I don't want to speak to you, you're not <CHARNAME>~
IF ~~ THEN EXIT
END


I solved the problem :

InPartySlot( LastTalkedToBy, 0 )

But it seems to fail in Bg2

How could I do that ? (since I can't test if LastTalkedToBy == Protagonist)
« Last Edit: July 27, 2004, 05:20:01 AM by Baldurien »

Offline Shed

  • Planewalker
  • *****
  • Posts: 48
  • Gender: Male
  • ZOMG!
    • OMGWeRTehFuny
Re: [solved] I don't want to speak to party except protagonist ...
« Reply #1 on: July 27, 2004, 05:20:14 AM »
!InPartySlot(LastTalkedToBy,0)

That's the condition Cespenar uses.
Quote from: jcompton
Whatever, man. We'll just see what happens when Seifer and Shed have another attack of "omg we are teh funy".

Offline Baldurien

  • Planewalker
  • *****
  • Posts: 28
Re: [solved] I don't want to speak to party except protagonist ...
« Reply #2 on: July 27, 2004, 05:54:32 AM »
I've seen ;)

Hum I've got another annoyance but with DO :

Code: [Select]
SetGlobal( "OutsideIsCold", "LOCALS", 1 );
ClearAllActions()
SetCutSceneLite(TRUE)
ActionOverride( Protagonist, ForceSpell(LastTalkedToBy(Protagonist),CLERIC_RESIST_FIRE))
ActionOverride( Protagonist, SetCutSceneLite(FALSE))
ActionOverride( Protagonist, StartDialogueNoSet(LastTalkedToBy))

All of that work except for the last line : Bgmain say "Action:) invalid... " or it don't work.

I would like the main character to speak again with the NPC he was talking to. I could force the NPC to talk to the protagonist (it will work), but if I do this, then I will potentially have the cutscenelite end before. I could handle this with Wait() but still, I don't know how many time should I wait.
« Last Edit: July 27, 2004, 05:57:25 AM by Baldurien »

Offline Shed

  • Planewalker
  • *****
  • Posts: 48
  • Gender: Male
  • ZOMG!
    • OMGWeRTehFuny
Re: [solved] I don't want to speak to party except protagonist ...
« Reply #3 on: July 27, 2004, 07:22:17 AM »
LastTalkedToBy isn't really an Object, I think. It needs to be LastTalkedToBy(Protagonist).

As far as I know anyway. And I don't know what cutscenelite is. Also I assume you are putting spaces only to avoid smilies?
Quote from: jcompton
Whatever, man. We'll just see what happens when Seifer and Shed have another attack of "omg we are teh funy".

Offline SimDing0

  • Back In Black
  • Global Moderator
  • Planewalker
  • *****
  • Posts: 3496
  • Gender: Male
  • Word Enhancer
Re: [solved] I don't want to speak to party except protagonist ...
« Reply #4 on: July 27, 2004, 07:39:25 AM »
LastTalkedToBy with no nested object will default to LastTalkedToBy(Myself).

Offline Baldurien

  • Planewalker
  • *****
  • Posts: 28
Re: [solved] I don't want to speak to party except protagonist ...
« Reply #5 on: July 27, 2004, 12:56:59 PM »
I put space only for scripting conveniance, Bioware Script doesn't care of space.

I used a Wait(6).

CutSceneLite is the same as CutSceneMode except the scripts doesn't stop.

 

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