Jump to content

REPLACE_STATE_TRIGGER problem


Lauriel

Recommended Posts

There's a dialogue file that has state 0 trigger of "True()" so it runs every time.  I want this NPC to talk to the PC after Sarevok is dead (this is for a mod that let's you stay in BG1 after he's killed).   So I need to change the original dialogue trigger so only the 2nd set of dialogues start.

I put this in my .tpa file

REPLACE_STATE_TRIGGER DENKOD 0 ~!Dead("Sarevok")~

But I get the following error:
 

Quote

 

[transitions/components/cleanup_maze.tpa] PARSE ERROR at line 34 column 1-28
Near Text: DENKOD
        GLR parse error

[transitions/components/cleanup_maze.tpa]  ERROR at line 34 column 1-28
Near Text: DENKOD
        Parsing.Parse_error
ERROR: parsing [transitions/components/cleanup_maze.tpa]: Parsing.Parse_error

 

 

Help?  I just don't see what's wrong...

Edited by Lauriel
Fixed typos
Link to comment

Never mind.  Once again I post the problem after hours of futile hair-pulling only to then find my solution about 30 seconds later.  Seems to be an annoying habit...

I realized the REPLACE_STATE_TRIGGER line had to be inside a .d file, not a .tpa file.

 

Link to comment

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...