CharGenStatsSheet
Morrowind.esm
Variables
2
Local Variables
state
OnPCAdd
Source
1begin CharGenStatsSheet
2
3;for picking up the stats sheet, shows inventory
4
5short state
6short OnPCAdd ;auto set by code when object is picked up, see help file
7
8if ( menumode == 1 )
9 return
10endif
11
12if ( state == 20 )
13 return
14endif
15
16if ( State == 0 )
17
18 if ( OnActivate == 1)
19 Activate
20 EnableInventoryMenu
21 endif
22
23 ;if ( Player->GetItemCount "CharGen Statssheet" > 0 )
24 if ( OnPCAdd == 1 )
25 MessageBox "You now have an Inventory Menu, where you can see what you are carrying." "Ok"
26 enableplayerfighting
27 enableplayermagic
28 set state to 10
29 return
30 endif
31
32endif
33
34if ( state == 10 )
35 if ( Xbox == 0 )
36 MessageBox "Like all menus, right click to use your new menu. You can click and move objects from the world to your inventory." "Ok"
37 else
38 MessageBox "Like all menus, press B to use your new menu. The triggers cycle between menus. Press B again to exit your menus." "Ok"
39 endif
40
41 set state to 20
42
43endif
44
45end