×
Меню
Индекс

MSFD Functions for character generation menus

 
These undocumented functions are used for character creation. They enable all the menus that are used during the character creation process and enable certain basic features like the inventory, magic menu, stats window and the map:
 
Show character generation menus:
[no fix] EnableBirthMenu
[no fix] EnableClassMenu
[no fix] EnableRaceMenu
[no fix] EnableNameMenu
 
There is no disable command for these. They are disabled by selecting ok in the menu.
 
Enabling in-game menus:
[no fix] EnableMagicMenu
[no fix] EnableMapMenu
[no fix] EnableInventoryMenu
[no fix] EnableStatsMenu
 
Also no disable commands here unfortunately. These would have been useful.
The names of the functions should be self-explanatory. One use for these functions is as a cheat if you want to change your appearance or other things during a running game (although there might be problems associated with doing that). They can (and have been) used to create different ways of character generation. Be careful, sometimes these reset your level to 1.
 
Sample Script: This is one of many CharGen scripts that guide the player through character generation. This one is basically a safety feature for a player who just runs out the door, without triggering any or all of the little tutorials.
 
Begin CharGenDoorExit
 
;this is the door that exits the first part of the census building
;safety check for all menus on
 
short done
 
if (done == 1)
     return
endif
 
if ( OnActivate == 1 )
     enablestatsmenu
     enableinventorymenu
     enablemagicmenu
     enablemapmenu
     enableplayerfighting
     enableplayermagic
     set done to 1
     Activate
endif
 
End