ace92 Posted July 29, 2008 Share Posted July 29, 2008 what do i do if i want to put inside the Dialogue a line that i want to it to be shown only once in one module and after i chose it, it won't be shown again? Link to comment Share on other sites More sharing options...
Stream Posted July 29, 2008 Share Posted July 29, 2008 Attach the following script as the conditional script, change GLOBAL to the name of the global you want to track, 0 to whatever state it needs to be at and 711KOR to whatever module the player has to be in. int StartingConditional() { if ( ( GetModuleName() == "711KOR") && (GetGlobalBoolean("GLOBAL")==0)) { return 1; } return 0; } Don't forget that if you're using globals you'll have to add them to globalcat.2da or the game won't be able to track them. --Stream Link to comment Share on other sites More sharing options...
ace92 Posted July 29, 2008 Author Share Posted July 29, 2008 sorry...i didn't get it...can you elaborate more? Link to comment Share on other sites More sharing options...
Stream Posted July 29, 2008 Share Posted July 29, 2008 Which part didn't you get? The adding the script to the dialog part of editing globalcat.2da? --Stream Link to comment Share on other sites More sharing options...
ace92 Posted July 29, 2008 Author Share Posted July 29, 2008 the editing globalcat.2da Link to comment Share on other sites More sharing options...
zbyl2 Posted July 29, 2008 Share Posted July 29, 2008 I hope it'll be clear... You need open globalcat.2da in KotOR Tool 2da editor. Go to BIFs\2da.bif\2da array\find and open globalcat.2da. Now scroll down of file. In "(Row label)" column add some number, in column name write any name for your global (next you'll need put name in script), and a type must be "Number" or "Boolean". In this script it's Global Boolean. Now you can save globalcat.2da in your override folder. Link to comment Share on other sites More sharing options...
ace92 Posted July 29, 2008 Author Share Posted July 29, 2008 ok...now if you can explain to me what Stream said: 0 to whatever state it needs to be at what did Stream mean by state? Link to comment Share on other sites More sharing options...
glovemaster Posted July 29, 2008 Share Posted July 29, 2008 He means that you need to change it to return either TRUE or FALSE. There was an error in the script however, where GetGlobalBoolean was being compared with TRUE or FALSE. This should work: int StartingConditional() { return (GetModuleName() == [color=cyan]"module_resref"[/color] && GetGlobalBoolean([color=cyan]"global_boolean_identifier"[/color])) } Link to comment Share on other sites More sharing options...
ace92 Posted July 29, 2008 Author Share Posted July 29, 2008 so in: module_resref - i put the resref of the module global_boolean_identifier - i put 1 or 0? Link to comment Share on other sites More sharing options...
glovemaster Posted July 29, 2008 Share Posted July 29, 2008 Well, actually now I think about it you don't really need to have a check on the module unless you intend to have the dialogue called from different modules. And global_boolean_identifier is the identifier for your new line in globalcat.2da int StartingConditional() { return (GetGlobalBoolean([color=cyan]"global_boolean_identifier"[/color])); } That script will probably be just as effective. Link to comment Share on other sites More sharing options...
ace92 Posted July 29, 2008 Author Share Posted July 29, 2008 so in global_boolean_identifier i put the line of the globalcat.2da and the effect would be that, once i chose the line it won't appear again? Link to comment Share on other sites More sharing options...
glovemaster Posted July 29, 2008 Share Posted July 29, 2008 Sort of, but for that to occur a script must be fired when the Player selected the node that will set the GlobalBoolean to true. void main() { SetGlobalBoolean([color=cyan]"global_boolean_identifier"[/color], TRUE); } And so in globalcat.2da you will add a new line like so: RowLabel name type ---------------------------------------- (High) 555_spokento Boolean Therefore, global_boolean_identifier will become 555_spokento Link to comment Share on other sites More sharing options...
ace92 Posted July 29, 2008 Author Share Posted July 29, 2008 thanks!i love you!thank you!lol Link to comment Share on other sites More sharing options...
ace92 Posted July 30, 2008 Author Share Posted July 30, 2008 does the name has to be matching to the module?because it won't work for some reason... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.