New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thorus' bribe dialog doesn't disappear #16
Comments
DIA_GRD_200_Thorus.d gothic-1-community-patch/scriptbase/_work/Data/Scripts/Content/Story/Missions/DIA_GRD_200_Thorus.d Lines 429 to 468 in 746a440
changed to // ************************************************************
// Give1000Ore
// ************************************************************
var int thorus_bribed;
INSTANCE Info_Thorus_Give1000Ore (C_INFO)
{
npc = GRD_200_THORUS;
nr = 1;
condition = Info_Thorus_Give1000Ore_Condition;
information = Info_Thorus_Give1000Ore_Info;
permanent = 1;
description = "I have the 1000 nuggets of ore. Now let me go in!";
};
FUNC INT Info_Thorus_Give1000Ore_Condition()
{
if (Npc_KnowsInfo(hero,Info_Thorus_BribeGuard))
&& (Diego_GomezAudience == FALSE)
&& (thorus_bribed == FALSE)
{
return 1;
};
};
FUNC VOID Info_Thorus_Give1000Ore_Info()
{
AI_Output (other, self,"Info_Thorus_Give1000Ore_15_00"); //I have the 1000 nuggets of ore. Now let me go in!
if (Npc_HasItems(other, ItMiNugget)>=1000)
{
B_GiveInvItems (other,self,ItMiNugget,1000);
AI_Output (self, other,"Info_Thorus_Give1000Ore_09_01"); //Alright, go ahead. You can go in the castle, but don't do anything stupid, okay?
var C_NPC wache212; wache212 = Hlp_GetNpc(Grd_212_Torwache);
var C_NPC wache213; wache213 = Hlp_GetNpc(Grd_213_Torwache);
wache212.aivar[AIV_PASSGATE] = TRUE;
wache213.aivar[AIV_PASSGATE] = TRUE;
thorus_bribed = TRUE;
}
else
{
AI_Output (self, other,"Info_Thorus_Give1000Ore_09_02"); //Don't try'n trick me, kid. You don't have 1000 nuggets of ore!
};
}; gothic-1-community-patch/scriptbase/_work/Data/Scripts/Content/Story/Missions/DIA_GRD_200_Thorus.d Lines 484 to 491 in 746a440
changed to FUNC INT Info_Thorus_LetterForMages_Condition()
{
if Npc_KnowsInfo(hero, Info_Thorus_EnterCastle)
&& (Diego_GomezAudience == FALSE)
&& (thorus_bribed == FALSE)
&& (Npc_HasItems (hero, ItWr_Fire_Letter_01) || Npc_HasItems (hero, ItWr_Fire_Letter_02))
{
return 1;
};
}; |
It is quite tricky to set the variable |
Is |
Should look into Diego_GomezAudience = TRUE |
Good hint. It looks like this variable has strictly speaking nothing to do with it. In my opinion, the bribe dialog should always remain there until the player is granted access to the castle. This is unambiguously evident by the AI-variable of the guards at the gates. I will update the PR. |
#16 add new condition to Thorus's bribe dialogs
Describe the bug
Expected behavior
Thorus can't be bribed if the player has already obtained the permit to pass the guards. Also the option to bribe Thorus disappears after the player has bribed him.
The text was updated successfully, but these errors were encountered: