Jump to content

Creating an Alternate Start Mod


Recommended Posts

This is the code I have so far, although, the if/end statements are completely useless because they did not work as expected. My Chargen can be this simple.

 

begin CharGen
;short CharGenState is a global
; 1 = start
; -1 = all done. Set from CharGenDoorExitCaptain. Can save game after that is set
Player->PositionCell 19420, 40385, 8235, 325, "NewPlace"
set CharGenState to 1
EnableNameMenu
if ( SayDone == 1 )
Enableracemenu
endif
if ( SayDone == 1 )
EnableBirthMenu
endif
EnableClassMenu
if ( SayDone == 1 )
EnableStatsMenu
"SW_DooCharGen"->disable
set CharGenState to -1
endif
stopscript CharGen
end CharGen
Link to comment
Share on other sites

if your mod is not a total conversion (e.g. you can return to Seyda Neen from it) you should probably disable other things after chargen. Try following the ->disable scripts chain in original chargen. You can find info on SayDone and any scripting command in Morrowind Scripting For Dummies.

Edited by abot
Link to comment
Share on other sites

Hmm... Yeah I took a look at what all needs to be disabled/re-enabled based on the chargen stuff but the problem isn't being able to move more than the fact that every window (race, class, birthsign, name, etc...) pops up at the same time rendering the player unable to press any of the buttons to progress.

Link to comment
Share on other sites

  • 2 weeks later...

Again I've stumped myself.

 

I took another route on the script and now it plays the first message box but will not allow me to press the button, "Continue".

 

Here is my script;

 

 

begin CharGen
;short CharGenState is a global
; 1 = start
; -1 = all done. Set from CharGenDoorExitCaptain. Can save game after that is set
short state
short button
set button to GetButtonPressed
Player->PositionCell 19420, 40385, 8235, 325, "NewWorldspace"
MessageBox "You awake in a bed, a doctor tells you that you are a survivor of an attacked ship." "Continue"
if ( button == 0 )
set state to 2
endif
if ( state == 2 )
EnableNameMenu
MessageBox "The doctor tells you that you were passenger to a cargo ship that was attacked." "Continue"
if ( button == 0 )
set state to 5
endif
endif
if ( state == 5 )
Enableracemenu
MessageBox "You are told that a robed individual brought you to this medical room." "Continue"
if ( button == 0 )
set state to 10
endif
endif
if ( state == 10 )
EnableBirthMenu
MessageBox "There was another, but he has passed, he left you with a pair of daggers." "Continue"
player->additem "Ig_Dagg" 1
if ( button == 0 )
set state to 15
endif
endif
if ( state == 15 )
EnableStatsMenu
MessageBox "He welcomes you to NewWorldspace." "Continue"
if ( button == 0 )
set state to 20
set CharGenState to -1
endif
endif
if ( state == 20 )
EnableClassMenu
set state to 25
endif
stopscript CharGen
end CharGen
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...