Like in the OC after the prelude it loads chapter 1. How do I do this in my mod?
How you move from one mod to another at the end of a dialogue?
Débuté par
simomate
, juin 20 2011 06:27
#1
Posté 20 juin 2011 - 06:27
#2
Posté 20 juin 2011 - 06:41
Hopefully this will help you out. www.nwnlexicon.com/compiled/function.activateportal.html
If you need help with the scripting just ask. Good luck.
If you need help with the scripting just ask. Good luck.
#3
Posté 20 juin 2011 - 06:58
This is a single player module, not a online one, so I don't think this is what I'm looking for.
#4
Posté 20 juin 2011 - 07:13
Oops sorry about that. I should've asked first. You'll want to use this instead:
www.nwnlexicon.com/compiled/function.startnewmodule.html
www.nwnlexicon.com/compiled/function.startnewmodule.html
Modifié par GhostOfGod, 20 juin 2011 - 07:14 .
#5
Posté 20 juin 2011 - 12:52
The game will crash if you attempt to load a module that doesnt exist, just so you know
#6
Posté 20 juin 2011 - 02:39
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
Posté 20 juin 2011 - 04:04
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.
If the module is found, it loads the new module and disregards firing the end game credits.
FP!
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
Posté 27 juin 2011 - 01:57
It's not working :/
#9
Posté 27 juin 2011 - 02:23
Then post the code you are useing, with a little more info and perhaps someone can help you.
#10
Posté 28 juin 2011 - 07:43
Nevermind, it worked. For some reason I have to reboot my computer every time I put in that code.
#11
Posté 01 juillet 2011 - 03:31
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)?





Retour en haut






