yes, but the only place you error is, they won't see the line at all unless they "qualify" you determine who is qualified to read each one, therefore, under TextAppearsWhen, for the LINE (highlight the line you wish to use a script on), in the white box, place the TextAppearsWhen script..
You can use the default bioware wizard to create these, as they are rather trivial to create...
essentiallly, you will want to create it something like so...
int StartingConditional()
{
object oPC = GetPCSpeaker();
int i; //The variable we will be checking..
i = FALSE; //Always return false (dont' show the line) if the PC isn't qualified..
if(GetHitDice(oPC) >= 10) //if the PC is level 10 or higher...
{
i = TRUE; //Show the line in the conversation..
}
return i;
}
We will replace if(GetHitDice(oPC) >= 10) with other functions to do different kinds of checks...
For Example...
// if the PC has at least 20 Skill Ranks in Appraise... (With Bonuses)
// use TRUE instead of FALSE (To see if the player has 20 Base Ranks - with no bonuses)
if(GetSkillRank(SKILL_APPRAISE, oPC, FALSE) >=20)
{
i = TRUE;
}
or..
//For Multiple Checks... just use multiple conditionals...
if(GetLevelByclass(class_TYPE_CLERIC, oPC)>=1) //if the PC is a Cleric..
{
i = TRUE;
}
//If the PC is a Druid & at least level 10 or higher...
if(GetLevelByclass(class_TYPE_DRUID, oPC)>=1 && GetHitDice(oPC) >=10)
{
i = TRUE;
}
Is this the kind of help you were looking for?
Modifié par Genisys, 17 août 2010 - 03:08 .