hi. this is a question related to a mod im working on. how do i change the way an npc addresses charles, based on current rank of the equipped patent?
my current code is as follows:
case "Shylock_deluxe_officer":
{
if (isMainCharacterPatented() && sti(Items[sti(pchar.EquipedPatentId)].TitulCur) >= 1)
{
dialog.text = "What do you need, "+pchar.EquipedPatentId.TitulCur+" "+pchar.name+"?";
Link.l1 = "Listen to my order!";
Link.l1.go = "stay_follow";
link.l2 = "Tell me about yourself!";
link.l2.go = "Shylock_deluxe";
link.l3 = "Nothing at the moment. At ease!";
link.l3.go = "exit";
NextDiag.TempNode = "Shylock_deluxe_officer";
}
}
else
{
{
dialog.text = "What do you need, Monsieur "+pchar.name+"?";
Link.l1 = "Listen to my order!";
Link.l1.go = "stay_follow";
link.l2 = "Tell me about yourself!";
link.l2.go = "Shylock_deluxe";
link.l3 = "Nothing at the moment. At ease!";
link.l3.go = "exit";
NextDiag.TempNode = "Shylock_deluxe_officer";
}
}
break;
issue is it works to an extent. aka, with no rank, he replies proper, wityh rank, he said error
any help is much appreciated
EDIT: every time i talk with the guy, this happens:
my current code is as follows:
case "Shylock_deluxe_officer":
{
if (isMainCharacterPatented() && sti(Items[sti(pchar.EquipedPatentId)].TitulCur) >= 1)
{
dialog.text = "What do you need, "+pchar.EquipedPatentId.TitulCur+" "+pchar.name+"?";
Link.l1 = "Listen to my order!";
Link.l1.go = "stay_follow";
link.l2 = "Tell me about yourself!";
link.l2.go = "Shylock_deluxe";
link.l3 = "Nothing at the moment. At ease!";
link.l3.go = "exit";
NextDiag.TempNode = "Shylock_deluxe_officer";
}
}
else
{
{
dialog.text = "What do you need, Monsieur "+pchar.name+"?";
Link.l1 = "Listen to my order!";
Link.l1.go = "stay_follow";
link.l2 = "Tell me about yourself!";
link.l2.go = "Shylock_deluxe";
link.l3 = "Nothing at the moment. At ease!";
link.l3.go = "exit";
NextDiag.TempNode = "Shylock_deluxe_officer";
}
}
break;
issue is it works to an extent. aka, with no rank, he replies proper, wityh rank, he said error
any help is much appreciated
EDIT: every time i talk with the guy, this happens:
Attachments
Last edited: