Aller au contenu

Photo

Editing OC Quests/Events(class Restrictions)


  • Veuillez vous connecter pour répondre
12 réponses à ce sujet

#1
SVKnight

SVKnight
  • Members
  • 42 messages
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 .


#2
Shadooow

Shadooow
  • Members
  • 4 471 messages
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.

#3
SVKnight

SVKnight
  • Members
  • 42 messages

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.

#4
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
The Guide to Building Volume I – The Aurora Toolset Manual

#5
SVKnight

SVKnight
  • Members
  • 42 messages
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.

#6
Urk

Urk
  • Members
  • 232 messages
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.

#7
SVKnight

SVKnight
  • Members
  • 42 messages

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.

#8
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
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?

#9
SVKnight

SVKnight
  • Members
  • 42 messages

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?

#10
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
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

#11
SVKnight

SVKnight
  • Members
  • 42 messages

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.

#12
SVKnight

SVKnight
  • Members
  • 42 messages
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?

#13
SVKnight

SVKnight
  • Members
  • 42 messages
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?