×
Меню
Индекс

MSFD using soul gems

[no fix] OnPCSoulGemUse          (is local short variable)
 
     Short OnPCSoulGemUse
     If (OnPCSoulGemUse == 1 )
 
This gets set to one if the calling Object is a soulgem and it has been used in either recharging or item making. Must be reset manually for multiple use (set OnPCSoulGemUse to 0 ).
Example: this is how Azura's star becomes an inexhaustible soulgem:
 
begin AzurasStarScript
;this is for Azura's Star. A never ending soulgem item. Mucho good. Kids love it.
 
short OnPCSoulGemUse    
 
;they use it, so give them a new one
if ( OnPCSoulGemUse == 1 )
     Player->additem, "Misc_soulgem_Azura" 1
endif
 
end