https://sureai.net/forum/viewtopic.php?t=318
Begin CharGen
short Doonce
Short State
if ( CellChanged != 0 )
return
endif
if ( MenuMode != 0 )
return
endif
if ( Chargenstate == 1 )
player-> PositionCell -3106, 2769, 743, 0, "Melee, Kloster"
set Doonce to 1
if (state == 0)
Set State to 1
endif
endif
if (State == 1)
EnableNameMenu
set state to 2
endif
if (State == 2)
EnablePlayerControls
DisablePlayerViewSwitch
endif
endif
If ( Doonce == 1 )
return
endif
stopscript CharGen
end CharGenscriptname startmarker
Short State
Begin GameMode
if State == 0
Player.moveto TCPlayerStartMarker
Set State to 1
endif
End
scriptname Startup
; this script will run once at the beginning of the game
; any needed initialization should be done here
begin gamemode
; Shut this quest off for some reason.
StopQuest StartupQuest
end