Jump to content

Recommended Posts

Posted (edited)

So, I'm trying to make some changes to a script for the hostages in the Booted quest, but NVSE is giving me a block start/end error for this section of (vanilla, seemingly-working ingame) script, line 16:

  Reveal hidden contents


Any ideas?

EDIT: So I've figured that first bit out I think, actually (It seems to work correctly if "elseIf" is changed to just "if"). However, I could use some advice on the next part; I've added a new button to the menu that appears when you activate a hostage in hopes that you'll be able to trade items with them, but the button doesn't have any effect. Did I use the wrong function? It's on line 29.

 

  Reveal hidden contents

 

Edited by Manan6619
Posted

An "EndIf" terminates a condition block. An "ElseIf" is a continuation of an "IF' block as the "If not true" stage, so you are not getting to your "elseIf ( button == 2 )" line. You want to move the "EndIf" after the "OpenTeammateContainer 1" line.

 

-Dubious-

Posted

Hm, thanks. I think I see what you mean. I've changed the script as follows, but still no dice:

 

  Reveal hidden contents

 

Posted

I'm not seeing any reason that won't compile, but haven't checked each command for proper syntax. Do you have the GECK Extender NVSE Plugin installed? It should give you some better error messages; at least indicating which line is causing the problem.

 

-Dubious-

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...