Begin chargenewshort Stateshort State2short buttonshort buttonashort button1short button2Short SkipPress ;Used only for Random beginning. Skips Getbuttonpress.short OverallStateshort RandStartfloat WindowTimer ;Stops the windows from stacking (all coming up at the same time).if ( WindowTimer < 1 ) set WindowTimer to ( WindowTimer + GetSecondsPassed ) return endifif ( menumode == 1 ) returnendif;if ( State == -1); return;endifif ( OverallState == 1 ) ; moved shorter block up /abot "CharGen StatsSheet"->disable "CharGen Boat"->Disable "CharGen Boat Guard 1"->disable "CharGen Boat Guard 2"->disable "CharGen Dock Guard"->disable "CharGen_cabindoor"->disable "CharGen_chest_02_empty"->disable "CharGen_crate_01"->disable "CharGen_crate_01_empty"->disable "CharGen_crate_01_misc01"->disable "CharGen_crate_02"->disable "CharGen_lantern_03_sway"->disable "CharGen_ship_trapdoor"->disable "CharGen_barrel_01"->disable "CharGen_barrel_02"->disable "CharGenbarrel_01_drinks"->disable "CharGen_plank"->disable "CharGen Door Hall"->Unlock StartScript RaceCheck enableplayerfighting enableplayermagic enableplayercontrols EnablePlayerJumping EnablePlayerViewSwitch EnableVanityMode enablestatsmenu enableinventorymenu enablemagicmenu enablemapmenu EnableRest set CharGenState to -1 set State to -1 If ( CharGenQuick == 1 ) Player->Positioncell, -48, -135, 270, 90 "Seyda Neen, Census and Excise Office" else Set CharGenQuick to 1 Endif addtopic "background" addtopic "specific place" addtopic "someone in particular" addtopic "services" addtopic "my trade" addtopic "little secret" addtopic "latest rumors" addtopic "little advice" StopScript, "chargenew" returnendif; if ( OverallState == 0 ) ; moved longer code block down to remove one nesting level /abotIf ( State2 == 0 ) Set State to 999 MessageBox "How do you want to start your story?", "Quick Beginning", "Normal Beginning" , "Custom Beginning" Set state2 to 1elseif ( State2 == 1 ) set buttona to GetButtonPressed if ( buttona == -1 ) Return elseif ( buttona == 0 ) ;Quick Start Set CharGenQuick to 1 Set State to 0 Set State2 to -1 return elseif ( buttona == 1 ) ;Normal Beginning Set PCR_OldStart to 1 stopscript chargenew startscript chargen Set State to -1 Set State2 to -1 return elseif ( buttona == 2 ) ;Custom Beginning Set State2 to -1 Set State to 0 Return endifendifif ( State == 0 ) disablePlayerControls EnableNameMenu set State to 10 set WindowTimer to 0.5elseif ( State == 10 ) EnableRaceMenu set State to 20 set WindowTimer to 0.5elseif ( State == 20 ) EnableClassMenu set State to 30 set WindowTimer to 0.5elseif ( State == 30 ) EnableBirthMenu set State to 40 set WindowTimer to 0.5elseif ( State == 40 ) EnableStatReviewMenu set State to 50 set WindowTimer to 0.5elseif ( State == 50 ) If ( CharGenQuick == 1 ) Set OverallState to -1 Set state to -1 else startscript, CM_stateditor set State to 55 endifelseif ( State == 55 ) if ( ScriptRunning, "CM_stateditor" == 0 ) startscript, CM_skilleditor set State to 56 endif ;Start item editor only if skill editor is finishedelseif ( State == 56 ) if ( ScriptRunning, "CM_skilleditor" == 0 ) StartScript, CM_SpawnItem set State to 60 endifelseif ( State == 60 ) if ( ScriptRunning, "CM_SpawnItem" == 0 ) MessageBox "Under what circumstances does your story begin? ", "Random", "Arriving on a Prison Ship from Cyrodiil", "Exploring around Dagon Fel", "Stepping onto the docks at Ebonheart", "Getting something to eat in Caldera", "Browsing the market at Gnisis", "Drowning in a shipwreck on the east coast", "- NEXT -" set State to 65 endifelseif ( State == 65 ) If ( SkipPress != 1 ) set button to GetButtonPressed endif if ( button == -1 ) Return elseif ( button == 0 ) ;Random Set RandStart to ( ( Random, 3 ) + 1 ) If ( RandStart == 1 ) Set button to ( ( Random, 4 ) + 3 ) elseif ( RandStart == 2 ) Set State to 75 Set button1 to ( ( Random, 6 ) + 1 ) elseif ( RandStart == 3 ) Set State to 85 Set button to ( ( Random, 6 ) + 1 ) elseif ( RandStart == 4 ) Set State to 95 Set button2 to ( ( Random, 5 ) + 1 ) endif Set SkipPress to 1 Return elseif ( button == 1 ) ;;xPrison Shipx Decided to use Quick Start location. Maybe make it the same as Quick Start? Player->Positioncell, -48, -135, 270, 90 "Seyda Neen, Census and Excise Office" Player->additem "AB2_start instructions", 1 elseif ( button == 2 ) Player->PositionCell 59482,181274,553,115, "Balmora" ; using Balmora as standard generic exterior cell name for MWEdit syntax check compatibility, what counts is exterior coordinates /abot ChangeWeather "Sheogorad" 3 Player->AddItem, "Gold_001", 25 Player->AddItem, "ingred_bread_01", 1 Player->AddItem, "misc_de_foldedcloth00", 1 Player->AddItem "AB2_start instructions", 1 elseif ( button == 3 ) Player->PositionCell 20373,-102522,79,343, "Ebonheart" ChangeWeather "Ascadian Isles Region" 1 Player->AddItem, "Gold_001", 10 Player->AddItem, "bk_guide_to_vvardenfell", 1 Player->Additem "AB2_start instructions", 1 elseif ( button == 4 ) Player->PositionCell 230,-198,160,0, "Caldera, Shenk's Shovel" ChangeWeather "West Gash Region" 5 Player->AddItem, "Gold_001", 5 Player->AddItem, "ingred_fire_petal_01", 4 Player->AddItem, "ingred_black_anther_01", 6 Player->AddItem "AB2_start instructions", 1 elseif ( button == 5 ) Player->PositionCell -85371,92544,1028,0, "Gnisis" Player->AddItem, "Gold_001", 60 Player->AddItem, "light_de_buglamp_01", 1 Player->Additem "AB2_start instructions", 1 elseif ( button == 6 ) Player->PositionCell 4306,3763,-754,0, "Lonely Shipwreck, Upper Level" ChangeWeather "Azura's Coast Region" 5 Player->Additem "AB2_start instructions", 1 Player->RemoveItem "iron dagger", 1 Player->AddItem "iron dagger", 1 elseif ( button == 7 ) set State to 70 return endif set OverallState to 1elseif ( State == 70 ) MessageBox "Under what circumstances does your story begin?", "- PREVIOUS -", "Hiding from the law", "Diving for pearls near Pelagiad", "Hunting in the Grazelands", "Working in the fields", "Collecting ingredients on the Bitter Coast", "Grave Robbing in a tomb near Balmora", "Studying in the Balmora Mages Guild", "- NEXT -" set State to 75 returnendif; another split for safety /abotif ( State == 75 ) If ( SkipPress != 1 ) set button1 to GetButtonPressed endif if ( button1 == -1 ) Return elseif ( button1 == 0 ) set state to 60 Return elseif ( button1 == 1 ) Player->PositionCell 13078,-78339,402,217, "Balmora" Player->RemoveItem "common_shoes_01", 1 Player->AddItem "AB2_bearskin cuirass", 1 Player->Additem "AB2_netch leather boots", 1 Player->Additem "AB2_fur greaves", 1 Player->Additem "AB2_start instructions", 1 Player->Equip "AB2_bearskin cuirass" Player->Equip "AB2_netch leather boots" Player->Equip "AB2_fur greaves" Player->Equip "iron dagger" Player->AddItem "ingred_diamond_01", 1 SetPCCrimelevel, 75 elseif ( button1 == 2 ) Player->PositionCell 12481,-61011,-280,0, "Balmora" Player->RemoveItem "iron dagger", 1 Player->AddItem "bk_guide_to_vvardenfell", 1 Player->Additem "ingred_pearl_01", 2 Player->Additem "iron dagger", 1 Player->Additem "AB2_start instructions", 1 elseif ( button1 == 3 ) Player->PositionCell 74894,124753,1371,0, "Balmora" Player->RemoveItem "iron dagger", 1 Player->AddItem "ingred_hound_meat_01", 3 Player->Additem "AB2_start instructions", 1 Player->AddItem "AB2_chitin bow", 1 Player->Equip, "AB2_chitin bow" Player->AddItem "chitin arrow", 30 Player->AddItem "AB2_right cloth bracer", 1 Player->Equip, "AB2_right cloth bracer" Player->AddItem "AB2_netch gauntlet left", 1 Player->Equip, "AB2_netch gauntlet left" "CharGen StatsSheet"->disable "CharGen Boat"->Disable "CharGen Boat Guard 1"->disable "CharGen Boat Guard 2"->disable "CharGen Dock Guard"->disable "CharGen_cabindoor"->disable "CharGen_chest_02_empty"->disable "CharGen_crate_01"->disable "CharGen_crate_01_empty"->disable "CharGen_crate_01_misc01"->disable "CharGen_crate_02"->disable "CharGen_lantern_03_sway"->disable "CharGen_ship_trapdoor"->disable "CharGen_barrel_01"->disable "CharGen_barrel_02"->disable "CharGenbarrel_01_drinks"->disable "CharGen_plank"->disable "CharGen Door Hall"->Unlock StartScript RaceCheck enableplayerfighting enableplayermagic enableplayercontrols EnablePlayerJumping EnablePlayerViewSwitch EnableVanityMode enablestatsmenu enableinventorymenu enablemagicmenu enablemapmenu EnableRest set CharGenState to -1 set State to -1 elseif ( button1 == 4 ) Player->PositionCell 13449,-57064,136,0, "Balmora" Player->RemoveItem "iron dagger", 1 Player->RemoveItem "common_shirt_01", 1 Player->RemoveItem "common_shoes_01", 1 Player->AddItem "slave_bracer_right", 1 Player->AddItem "ingred_saltrice_01", 6 Player->Equip "slave_bracer_right" Additem "AB2_start instructions", 1 elseif ( button1 == 5 ) Player->PositionCell -42653,28795,355,0, "Balmora" ChangeWeather "Bitter Coast Region" 1 Player->RemoveItem "iron dagger", 1 Player->RemoveItem "common_shirt_01", 1 Player->Additem "AB2_mortar", 1 Player->AddItem "ingred_bc_bungler's_bane", 3 Player->Additem "AB2_start instructions", 1 Player->Additem "common_robe_01", 1 Player->Equip, "common_robe_01" elseif ( button1 == 6 ) Player->PositionCell 2043,263,-164,268, "Tharys Ancestral Tomb" Player->RemoveItem "iron dagger", 1 Player->AddItem "light_com_torch_01_256", 1 Player->Additem "AB2_start instructions", 1 Player->AddItem "AB2_silver claymore", 1 Player->AddItem "AB2_lucky", 1 Player->Equip, "AB2_silver claymore" Player->Equip, "AB2_lucky" elseif ( button1 == 7 ) Player->PositionCell 505,-387,-752,205, "Balmora, Guild of Mages" Player->RemoveItem "iron dagger", 1 Player->RemoveItem "common_shirt_01", 1 Player->Additem "bookskill_Alchemy2", 1 Player->AddItem "common_robe_03", 1 Player->Equip, "common_robe_03" Player->Additem "AB2_start instructions", 1 elseif ( button1 == 8 ) set state to 80 return endif set OverallState to 1elseif ( State == 80 ) MessageBox "Under what circumstances does your story begin?", "- PREVIOUS -", "Gathering firewood in the Wilderness", "In prison at Vivec", "Shipwrecked on a beach", "Fighting a battle in the Vivec Arena", "Setting up camp near Khuul", "Working as a commoner in Maar Gan", "Paying homage at the Fields of Kummu", "-NEXT-" set State to 85elseif ( State == 85 ) If ( SkipPress != 1 ) set button to GetButtonPressed endif if ( button == -1 ) Return elseif ( button == 0 ) set state to 70 Return elseif ( button == 1 ) Player->PositionCell 38154,-53328,931,268, "Balmora" Player->RemoveItem "iron dagger", 1 Player->RemoveItem "common_shoes_01", 1 Player->AddItem "iron battle axe", 1 Player->AddItem "fur_boots", 1 Player->Equip "iron battle axe" Player->Equip "fur_boots" Player->Additem "AB2_start instructions", 1 elseif ( button == 2 ) Player->PositionCell 274,-214,-100,0, "Vivec, Hlaalu Prison Cells" Player->RemoveItem "iron dagger", 1 Player->RemoveItem "common_shoes_01", 1 Player->RemoveItem "common_shirt_01", 1 Player->Additem "AB2_start instructions 2", 1 Player->AddItem "expensive_shirt_02", 1 Player->AddItem "key_vivec_hlaalu_cell", 1 Player->AddItem "expensive_pants_02", 1 Player->AddItem "common_shoes_01", 1 Player->Additem "gold_001", 20 elseif ( button == 3 ) Player->PositionCell -100317,84103,60,303, "Balmora" Player->RemoveItem "iron dagger", 1 Player->RemoveItem "common_shoes_01", 1 Player->Additem "AB2_start instructions", 1 elseif ( button == 4 ) Player->PositionCell 5,-583,-432,0, "Vivec, Arena Pit" Player->RemoveItem "iron dagger", 1 Player->AddItem, "AB2_iron shortsword", 1 Player->AddItem, "AB2_netch leather boots", 1 Player->AddItem, "AB2_netch leather shield", 1 Player->AddItem, "AB2_iron cuirass", 1 Player->Equip, "AB2_iron shortsword" Player->Equip, "AB2_Netch leather boots" Player->Equip, "AB2_netch leather shield" Player->Equip, "AB2_iron cuirass" Player->RemoveItem "common_shoes_01", 1 Player->Additem "AB2_start instructions", 1 PlaceAtPC, "AB2_hostile", 1, 1000, 0 elseif ( button == 5 ) Player->PositionCell -78170,143029,427,349, "Balmora" Player->Additem "AB2_start instructions", 1 elseif ( button == 6 ) Player->PositionCell 29,-384,-386,0"Maar Gan, Andus Tradehouse" Player->AddItem "gold_001", 35 Player->AddItem "misc_com_bucket_01", 1 Player->AddItem "misc_de_cloth10", 1 Player->AddItem "misc_de_tankard_01", 1 Player->AddItem "AB2_start instructions", 1 elseif ( button == 7 ) Player->PositionCell 14330,-33457,774,57, "Balmora" Player->RemoveItem "iron dagger", 1 Player->RemoveItem "common_shirt_01", 1 Player->AddItem "bk_PilgrimsPath", 1 Player->AddItem "common_robe_01", 1 Player->Equip "common_robe_01" Player->Additem "AB2_start instructions", 1 elseif ( button == 8 ) Set state to 90 Return endif set OverallState to 1elseif ( State == 90 ) MessageBox "Under what circumstances does your story begin?", "- PREVIOUS -", "Shaking down Fargoth", "Enjoying Dessel's House of Earthly Delights", "Fishing in Hlaa Oad", "Mining in the Caldera Ebony Mine", "Sleeping in a haunted room at Gateway Inn", "Entertaining patrons at Eight Plates" ; , "- NEXT -" set State to 95elseif ( State == 95 ) If ( SkipPress != 1 ) set button2 to GetButtonPressed endif if ( button2 == -1 ) Return elseif ( button2 == 0 ) ;Previous set state to 80 Return ; I added place holders here for now. The placeholders are Paying hommage in the fields of kummu elseif ( button2 == 1 ) ;Shaking Down Fargoth Player->PositionCell 14330,-33457,774,57, "Balmora" Player->RemoveItem "iron dagger", 1 Player->RemoveItem "common_shirt_01", 1 Player->AddItem "bk_PilgrimsPath", 1 Player->AddItem "common_robe_01", 1 Player->Equip "common_robe_01" Player->Additem "AB2_start instructions", 1 elseif ( button2 == 2 ) ;Enjoying Dessel's House of Earthly Delights Player->PositionCell 14330,-33457,774,57, "Balmora" Player->RemoveItem "iron dagger", 1 Player->RemoveItem "common_shirt_01", 1 Player->AddItem "bk_PilgrimsPath", 1 Player->AddItem "common_robe_01", 1 Player->Equip "common_robe_01" Player->Additem "AB2_start instructions", 1 elseif ( button2 == 3 ) ;Fishing in Hlaa Oad Player->PositionCell 14330,-33457,774,57, "Balmora" Player->RemoveItem "iron dagger", 1 Player->RemoveItem "common_shirt_01", 1 Player->AddItem "bk_PilgrimsPath", 1 Player->AddItem "common_robe_01", 1 Player->Equip "common_robe_01" Player->Additem "AB2_start instructions", 1 elseif ( button2 == 4 ) ;Mining in the Caldera Ebony Mines Player->PositionCell 14330,-33457,774,57, "Balmora" Player->RemoveItem "iron dagger", 1 Player->RemoveItem "common_shirt_01", 1 Player->AddItem "bk_PilgrimsPath", 1 Player->AddItem "common_robe_01", 1 Player->Equip "common_robe_01" Player->Additem "AB2_start instructions", 1 elseif ( button2 == 5 ) ;Sleeping in a haunted room at Gateway Inn Player->PositionCell 14330,-33457,774,57, "Balmora" Player->RemoveItem "iron dagger", 1 Player->RemoveItem "common_shirt_01", 1 Player->AddItem "bk_PilgrimsPath", 1 Player->AddItem "common_robe_01", 1 Player->Equip "common_robe_01" Player->Additem "AB2_start instructions", 1 elseif ( button2 == 6 ) ;Entertaining patrons at Eight Plates Player->PositionCell 14330,-33457,774,57, "Balmora" Player->RemoveItem "iron dagger", 1 Player->RemoveItem "common_shirt_01", 1 Player->AddItem "bk_PilgrimsPath", 1 Player->AddItem "common_robe_01", 1 Player->Equip "common_robe_01" Player->Additem "AB2_start instructions", 1 ; elseif ( button2 == 7 ) ;Not used yet ; elseif ( button2 == 8 ) ;Not used yet ; elseif ( button2 == 9 ) ;Not used yet endif set OverallState to 1endifEnd chargenew