Aller au contenu

Photo

How you move from one mod to another at the end of a dialogue?


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

#1
simomate

simomate
  • Members
  • 83 messages
Like in the OC after the prelude it loads chapter 1. How do I do this in my mod?  

#2
GhostOfGod

GhostOfGod
  • Members
  • 863 messages
Hopefully this will help you out. www.nwnlexicon.com/compiled/function.activateportal.html

If you need help with the scripting just ask. Good luck.

#3
simomate

simomate
  • Members
  • 83 messages
This is a single player module, not a online one, so I don't think this is what I'm looking for.

#4
GhostOfGod

GhostOfGod
  • Members
  • 863 messages
Oops sorry about that. I should've asked first. You'll want to use this instead:
www.nwnlexicon.com/compiled/function.startnewmodule.html

Modifié par GhostOfGod, 20 juin 2011 - 07:14 .


#5
Tiggers.no.tail

Tiggers.no.tail
  • Members
  • 41 messages
The game will crash if you attempt to load a module that doesnt exist, just so you know

#6
GhostOfGod

GhostOfGod
  • Members
  • 863 messages

Tiggers.no.tail wrote...

The game will crash if you attempt to load a module that doesnt exist, just so you know


You sure about that? I haven't tested it but...

Lexicon says...

The bug / issue that caused StartNewModule to crash if called with an
invalid filename has been fixed with patch 1.61. If the filename doesn't
exist, the function simply fails.



#7
Fester Pot

Fester Pot
  • Members
  • 1 395 messages
It works fine in 1.69, even if the module does not exist.

The following script is an example. If the player has not downloaded the second module you wish to load after ending the first, the credits will play instead.

void main()
{
StartNewModule("filenamehere");
DelayCommand(2.0, EndGame(""));
}


If the module is found, it loads the new module and disregards firing the end game credits.

FP!

Modifié par Fester Pot, 20 juin 2011 - 04:05 .


#8
simo7mate

simo7mate
  • Members
  • 36 messages
It's not working :/

#9
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
Then post the code you are useing, with a little more info and perhaps someone can help you.

#10
simo7mate

simo7mate
  • Members
  • 36 messages
Nevermind, it worked. For some reason I have to reboot my computer every time I put in that code.

#11
Green_Dragon123

Green_Dragon123
  • Members
  • 11 messages
I haven´t played through the OC, but I suppose when you use StartNewModule(), you can´t go back to the previous module without starting over again(i.e. move from Chapter 1 to Prologue)?