Author Topic: Editing OC Quests/Events(class Restrictions)  (Read 524 times)

Legacy_SVKnight

  • Jr. Member
  • **
  • Posts: 64
  • Karma: +0/-0
Editing OC Quests/Events(class Restrictions)
« on: July 29, 2012, 12:34:48 am »


               Can anyone help me edit OC quests/events that have class restrictions on
them? For starters, I'm trying to edit Eltoora's script to make it look
like I'm a wizard, bard, or a sorcerer no matter what class I'm in. I'm
completely new to the toolset but I have basic understanding of the
tools.

int StartingConditional()

{

    int bCondition = GetLevelByclass(class_TYPE_SORCERER,GetPCSpeaker()) == 0 &&

                     GetLevelByclass(class_TYPE_WIZARD,GetPCSpeaker()) == 0 &&

                     GetLevelByclass(class_TYPE_BARD,GetPCSpeaker()) == 0 ;

    return bCondition;

}

This is the script that determine wether you get the non-magic adept conversation or not, if I'm correct. From what I can understand, you get this conversation route automatically when the script detects you don't have a level of the 3 arcane spellcasters. So how do I avoid this route? Do I need to delete the 'conditions'? Or does adding every class in those 'conditions'  work?

Also, is it possible to 'export' these changes and 'import' them to the OC like an override file? I don't really like to edit the OC module since I might make mistakes.
               
               

               


                     Modifié par SVKnight, 28 juillet 2012 - 11:40 .
                     
                  


            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Editing OC Quests/Events(class Restrictions)
« Reply #1 on: July 29, 2012, 12:43:14 am »


               this will do the trick

int StartingConditional()

{
return TRUE;

}

for your second question, yes this should be possible, you need to add the compiled script (*.ncs) into your override, if name matches, it should overwrite the script in module, same could be done with conversation, so you could take conversation, cut the script attached to the Appears if node and put such modified conversation into you override.
               
               

               
            

Legacy_SVKnight

  • Jr. Member
  • **
  • Posts: 64
  • Karma: +0/-0
Editing OC Quests/Events(class Restrictions)
« Reply #2 on: July 29, 2012, 01:00:37 am »


               

ShaDoOoW wrote...

this will do the trick

int StartingConditional()

{
return TRUE;

}

for your second question, yes this should be possible, you need to add the compiled script (*.ncs) into your override, if name matches, it should overwrite the script in module, same could be done with conversation, so you could take conversation, cut the script attached to the Appears if node and put such modified conversation into you override.

Thanks for the quick reply but how do I compile the script or the conversation? Like I said, I'm completely new to this kind of thing.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Editing OC Quests/Events(class Restrictions)
« Reply #3 on: July 29, 2012, 01:38:50 am »


               The Guide to Building Volume I – The Aurora Toolset Manual
               
               

               
            

Legacy_SVKnight

  • Jr. Member
  • **
  • Posts: 64
  • Karma: +0/-0
Editing OC Quests/Events(class Restrictions)
« Reply #4 on: July 29, 2012, 02:19:25 am »


               I don't wanna sound like an ingrate but that doesn't really help me. I tried exporting the conversation but it gave me an .erf file and I don't know what to do with it.
               
               

               
            

Legacy_Urk

  • Sr. Member
  • ****
  • Posts: 253
  • Karma: +0/-0
Editing OC Quests/Events(class Restrictions)
« Reply #5 on: July 29, 2012, 02:51:22 am »


               Put the file into your C:/NeverwinterNights/NWN/erf folder. Then open your module in the toolset. Go to "File>Import" in your toolset and import the erf into your module.
               
               

               
            

Legacy_SVKnight

  • Jr. Member
  • **
  • Posts: 64
  • Karma: +0/-0
Editing OC Quests/Events(class Restrictions)
« Reply #6 on: July 29, 2012, 03:01:46 am »


               

Urk wrote...

Put the file into your C:/NeverwinterNights/NWN/erf folder. Then open your module in the toolset. Go to "File>Import" in your toolset and import the erf into your module.

I know how to do that but what I'm trying to do is to put the files in the override folder so that I don't have to edit OC files.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Editing OC Quests/Events(class Restrictions)
« Reply #7 on: July 29, 2012, 03:10:26 am »


               If the file is in the module, The override folder will not override it.  
If the file is in the .bif's the Override folder will override it.

So the Question comes down to where is the original file located?
               
               

               
            

Legacy_SVKnight

  • Jr. Member
  • **
  • Posts: 64
  • Karma: +0/-0
Editing OC Quests/Events(class Restrictions)
« Reply #8 on: July 29, 2012, 03:29:06 am »


               

Lightfoot8 wrote...

If the file is in the module, The override folder will not override it.  
If the file is in the .bif's the Override folder will override it.

So the Question comes down to where is the original file located?

Sigh... so I have no choice but to edit the OC module itself?
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Editing OC Quests/Events(class Restrictions)
« Reply #9 on: July 29, 2012, 03:36:22 am »


               If you wanted to try the override folder.  You can extract the files from the .erf using  nwhak.exe

just right click on the ERF and select "open with..."  then browse the the *\\nwn\\utils folder and select nwhak
               
               

               
            

Legacy_SVKnight

  • Jr. Member
  • **
  • Posts: 64
  • Karma: +0/-0
Editing OC Quests/Events(class Restrictions)
« Reply #10 on: July 29, 2012, 03:43:06 am »


               

Lightfoot8 wrote...

If you wanted to try the override folder.  You can extract the files from the .erf using  nwhak.exe

just right click on the ERF and select "open with..."  then browse the the *nwnutils folder and select nwhak

Just tried it and it doesn't work.
               
               

               
            

Legacy_SVKnight

  • Jr. Member
  • **
  • Posts: 64
  • Karma: +0/-0
Editing OC Quests/Events(class Restrictions)
« Reply #11 on: July 29, 2012, 10:01:33 am »


               YES! I have successfully edited the Cloaktower Membership and the Druid Challenge Circle quests so that I can take it no matter what class I'm in. Are there any other events/rewards/quests that have class restrictions?
               
               

               
            

Legacy_SVKnight

  • Jr. Member
  • **
  • Posts: 64
  • Karma: +0/-0
Editing OC Quests/Events(class Restrictions)
« Reply #12 on: July 31, 2012, 08:13:00 pm »


               Can anyone help me? I just discovered that you need to edit the script of the containers from the wizard labs for the items to appear for every class in the Cloaktower Membership quest. I edited it and tested it on a new character and it works for all four items. However, when it comes to my save games, they won't appear at all. Is there any way to "update" save games so that it uses the current edited OC module?