×
Меню
Индекс

MSFD Monitoring inventory activities: Adding

 
[no fix] OnPCAdd          (is local short variable)
 
     Short OnPCAdd
     If ( OnPCAdd == 1 )
This variable is set to 1 when the PC added the object to inventory. Must be reset manually for multiple use (set OnPCAdd to 0 ).
Example: This is an excerpt from the script attached to Fargoth's ring, that gives you the magic menu during character creation:
 
if ( OnPCAdd == 1 ); Player has added the item to the inventory
     if ( State == 0 )
          EnableMagicMenu
          MessageBox "You now have a Magic Menu, where you can see all your powers, spells, and magic items." "Ok"
          set state to 10
          return
     endif
endif