/* ** CHD 0.0.1 ** Author: Krisztian PIFKO ** License: GPL ** Last modified: 2004-12-04 ** ** chd_altar_used.nss: shows the PC's current deity ** ** invoked from an item's on use event */ void main() { object oPC=GetLastUsedBy(); if (GetIsPC(oPC)){ string sDeity=GetDeity(oPC); if (sDeity!=""){ FloatingTextStringOnCreature("Your deity is "+sDeity+".",oPC,FALSE); }else{ FloatingTextStringOnCreature("Your have no deity.",oPC,FALSE); } } }