hmmm...
//:: door_male_chker
////////////////////////////////////////////////////////////////////////////////
/*
I've tried all these they work except yours... I didn't have a female char
so I switched it to ==male and it worked fine not sure why its not working
for you.
*/
void main()
{
/*
object oOpener =GetLastOpenedBy();
int iOpener = GetGender(oOpener);
if(GetIsObjectValid(oOpener)==TRUE && iOpener == GENDER_MALE)
{
AssignCommand(oOpener,ClearAllActions(TRUE));
DelayCommand(1.0, ActionCloseDoor(OBJECT_SELF));
//ActionSpeakString("<c ¥ >[Narrator]:</c> This door sences that your not a male.");
string sData="<c ¥ >[Narrator]:</c> This door sences that your not a male.";
FloatingTextStringOnCreature( sData,oOpener,FALSE);
}
*/
// /*
int iOpener = GetGender(GetLastOpenedBy());
if(iOpener == GENDER_MALE)
{
DelayCommand(1.0, ActionCloseDoor(OBJECT_SELF));
ActionSpeakString("<c ¥ >[Narrator]:</c> This door sences that your a male.");
}
// */
/*
int iOpener = GetGender(GetLastOpenedBy());
if(iOpener != GENDER_MALE)
{
DelayCommand(1.0, ActionCloseDoor(OBJECT_SELF));
ActionSpeakString("<c ¥ >[Narrator]:</c> This door sences that your not a male.");
}
*/
}
Modifié par Greyfort, 11 février 2011 - 07:05 .