Is it possible for an NPC to do a race check within a conversation?
ex.
NPC- Hello.
PC- Can I ask a question?
NPC- Yes. (if the PC is dwarven)
conversation continues
else
NPC- No. (if the PC is not dwarven)
conversation ends
Sili
Race Check
Moderator: Event DM
Race Check
grunt_work: and lycans are just furries with an attack bonus
- Aloro
- Team Member; Retired with Honors
- Posts: 12805
- Joined: Sat Dec 28, 2002 5:11 am
- Location: Rainbow's End
- Contact:
Re: Race Check
Sure.Sili wrote:Is it possible for an NPC to do a race check within a conversation?
ex.
NPC- Hello.
PC- Can I ask a question?
NPC- Yes. (if the PC is dwarven)
conversation continues
else
NPC- No. (if the PC is not dwarven)
conversation ends
Sili
Oh, wait, you wanted more than just an answer, didn't you?
* sighs *
OK, what ya do is something like this (pseudocode written at the office):
Code: Select all
int StartingConditional()
{
object oPC = GetPCSpeaker();
int iRace = GetRacialType(oPC);
if (iRace = RACIAL_TYPE_DWARF) return TRUE;
else return FALSE;
}
- Aloro
Aleksandr Solzhenitsyn wrote:The meaning of earthly existence lies, not as we have grown used to thinking, in prosperity, but in the development of the soul.