Files
Anphillia_PRC8/_module/nss/chd_altar_used.nss
Jaysyn904 28cdb617b3 Initial commit
Adding all of the current content for Anphillia Unlimited.
2024-01-04 07:49:38 -05:00

26 lines
536 B
Plaintext

/*
** CHD 0.0.1
** Author: Krisztian PIFKO <monsta@monsta.hu>
** 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);
}
}
}