randydg Posted May 16, 2005 Share Posted May 16, 2005 nwnnsscomp -c -g 2 a_bastila_holo from kor702 scripts says it decompiles it but when i try to edit it in the kotor_tool it looks all funky. am i not doing it right? Link to comment Share on other sites More sharing options...
Darth333 Posted May 16, 2005 Share Posted May 16, 2005 When you decompile a script, all you get is byte code, not a .nss file. If you want to modify the script, you have to either: a. reconstitute the script from the byte code (you'll find info here: http://www.torlack.com/index.html?topics=nwndata_ncs ) b. Use the execute script function (easier and as good as the other method) . There is a tutorial about this in the scripting tutorials. Link to comment Share on other sites More sharing options...
randydg Posted May 16, 2005 Author Share Posted May 16, 2005 that sucks, can't do #2 option cause i need to edit it. can't do #1 option looks to hard Link to comment Share on other sites More sharing options...
Darth333 Posted May 16, 2005 Share Posted May 16, 2005 Originally posted by randydg that sucks, can't do #2 option cause i need to edit it. can't do #1 option looks to hard What do you want to do? Link to comment Share on other sites More sharing options...
stoffe Posted May 16, 2005 Share Posted May 16, 2005 // ST: a_bastila_holo.nss (702KOR_s.rim) #include "k_inc_fab" void main() { if (GetGlobalNumber("101PER_Revan_End") == 0) { ActionStartConversation(GetFirstPC(), "bastila", FALSE, CONVERSATION_TYPE_CINEMATIC, TRUE); } else if (!GetIsObjectValid(GetObjectByTag("bastila_holo"))) { object oBastilaah = FAB_Spawn("bastila_holo"); AssignCommand(oBastilaah, ClearAllActions()); AssignCommand(oBastilaah, ActionStartConversation(GetFirstPC(), "bastila", FALSE, CONVERSATION_TYPE_CINEMATIC, TRUE)); } } Link to comment Share on other sites More sharing options...
randydg Posted May 16, 2005 Author Share Posted May 16, 2005 thanks!!! i think i was trying to get over my head with that one Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.