PDA

View Full Version : [TSL] Delete a dialog node


Master Zionosis
06-21-2007, 04:32 PM
Hey people, I'm at the last stage of my mod and i need one more thing.

I need a script that will make a dialog node disappear once Bao-Dur has added to the list of available party members.

Thanks in advance.

tk102
06-21-2007, 04:34 PM
Master Z, just use that same script from the other thread (http://www.lucasforums.com/showthread.php?t=179688) as a conditional but put a check in the "Not" checkbox in DLGEditor.

Master Zionosis
06-21-2007, 04:42 PM
Ohhh, thanks Tk i really am losing my mind these past few days.

I seem to be having a problem with the script though when compiling i get this error:

Compiling: c_chk_baodur.nss
c_chk_baodur.nss(2): Error: Undeclared identifier "IsAvailableNPC"
c_chk_baodur.nss(3): Error: Not all paths return a value
Compilation aborted with errors
Total Execution time = 78 ms

Any clues?

tk102
06-21-2007, 04:48 PM
:o A typo in nwscript.nss!!!

// 696. IsAvailableNPC
// This returns whether a NPC is in the list of available party members
int IsAvailableCreature( int nNPC );

It says IsAvailableNPC but it is declared as IsAvailableCreature!

try this:int StartingConditional() {
return IsAvailableCreature(NPC_BAO_DUR);
}

Master Zionosis
06-21-2007, 04:54 PM
Lol, it seems there are a few of those, thanks TK, ill just test out the mod now :D