Added NWN Dark Sun module contents
Added NWN Dark Sun module contents.
This commit is contained in:
21
nwnds_module/ar_d0_headsetup.nss
Normal file
21
nwnds_module/ar_d0_headsetup.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
void main()
|
||||
{
|
||||
object oModel = OBJECT_SELF;
|
||||
object oPC = GetPCSpeaker();
|
||||
int nPCAppearance = GetAppearanceType(oPC);
|
||||
int nPCSex= GetGender(oPC);
|
||||
int nModelSex =GetGender(OBJECT_SELF);
|
||||
|
||||
if(nPCSex != nModelSex)
|
||||
{
|
||||
string sErrorText = "Please speak with the other visage.";
|
||||
FloatingTextStringOnCreature(sErrorText, oModel);
|
||||
FloatingTextStringOnCreature(sErrorText, oModel);
|
||||
SendMessageToPC(oPC,sErrorText);
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
SetCreatureAppearanceType(oModel,nPCAppearance);
|
||||
|
||||
}
|
Reference in New Issue
Block a user