Author Topic: How you move from one mod to another at the end of a dialogue?  (Read 385 times)

Legacy_simomate

  • Full Member
  • ***
  • Posts: 162
  • Karma: +0/-0


               Like in the OC after the prelude it loads chapter 1. How do I do this in my mod?  
               
               

               
            

Legacy_GhostOfGod

  • Hero Member
  • *****
  • Posts: 1490
  • Karma: +0/-0
How you move from one mod to another at the end of a dialogue?
« Reply #1 on: June 20, 2011, 07:41:29 am »


               Hopefully this will help you out. www.nwnlexicon.com/compiled/function.activateportal.html

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

               
            

Legacy_simomate

  • Full Member
  • ***
  • Posts: 162
  • Karma: +0/-0
How you move from one mod to another at the end of a dialogue?
« Reply #2 on: June 20, 2011, 07:58:52 am »


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

               
            

Legacy_GhostOfGod

  • Hero Member
  • *****
  • Posts: 1490
  • Karma: +0/-0
How you move from one mod to another at the end of a dialogue?
« Reply #3 on: June 20, 2011, 08:13:57 am »


               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 .
                     
                  


            

Legacy_Tiggers.no.tail

  • Jr. Member
  • **
  • Posts: 82
  • Karma: +0/-0
How you move from one mod to another at the end of a dialogue?
« Reply #4 on: June 20, 2011, 01:52:53 pm »


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

               
            

Legacy_GhostOfGod

  • Hero Member
  • *****
  • Posts: 1490
  • Karma: +0/-0
How you move from one mod to another at the end of a dialogue?
« Reply #5 on: June 20, 2011, 03:39:38 pm »


               

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.


               
               

               
            

Legacy_Fester Pot

  • Hero Member
  • *****
  • Posts: 1698
  • Karma: +0/-0
How you move from one mod to another at the end of a dialogue?
« Reply #6 on: June 20, 2011, 05:04:34 pm »


               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 .
                     
                  


            

Legacy_simo7mate

  • Jr. Member
  • **
  • Posts: 64
  • Karma: +0/-0
How you move from one mod to another at the end of a dialogue?
« Reply #7 on: June 27, 2011, 02:57:52 am »


               It's not working :/
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
How you move from one mod to another at the end of a dialogue?
« Reply #8 on: June 27, 2011, 03:23:32 am »


               Then post the code you are useing, with a little more info and perhaps someone can help you.
               
               

               
            

Legacy_simo7mate

  • Jr. Member
  • **
  • Posts: 64
  • Karma: +0/-0
How you move from one mod to another at the end of a dialogue?
« Reply #9 on: June 28, 2011, 08:43:44 am »


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

               
            

Legacy_Green_Dragon123

  • Newbie
  • *
  • Posts: 22
  • Karma: +0/-0
How you move from one mod to another at the end of a dialogue?
« Reply #10 on: July 01, 2011, 04:31:55 pm »


               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)?