Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

[TSL] Delete a dialog node

Page: 1 of 1
 Master Zionosis
06-21-2007, 3:32 PM
#1
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, 3:34 PM
#2
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, 3:42 PM
#3
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, 3:48 PM
#4
: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, 3:54 PM
#5
Lol, it seems there are a few of those, thanks TK, ill just test out the mod now :D
Page: 1 of 1