NullthraB wrote...
One other note: and question
the player can set his appearance many times as he can also take on many new forms. If the set appearance changes many times will only the most current set appearance be the starting condition?
Or will an older set appearance prevent the starting condition from seeing the newest set appearance?
The PC object only has one entree in its structure for the appearance type. So it does not matter how many times you set the appearance, the GetAppearanceType function will retrive the appearance that the PC is currently using.
I also need a simple script that checks for a single set appearance type. All are starting conditions for conversations.
int StartingConditional()
{
int nAppearance = GetAppearanceType(GetPCSpeaker());
return nAppearance == APPEARANCE_TYPE_GOBLIN_A;
}
for your request to see if a PC is polymorphed you can use this from the statring condition.
#include "nw_i0_generic"
int StartingConditional()
{
object oPC=GetPCSpeaker();
return GetHasEffect(EFFECT_TYPE_POLYMORPH,oPC);
}