Hi all.
Sorry if i am bothering you (quote gothic 2
) with these difficoult questions but it never hurts to ask.
I ahave created a new weapon (hoping that the texture will work) and now i'd like to let the hero forge it. I detected the two files related to forging weapons Dialoge_Mobsis/SmithWeapon.d and B_Story/B_TeachPlayerTalentSmith.d. I am puzzled about somethings though.
So. I want that when the hero will start forging and he will have to choose the type of weapon (normal weapon or ore weapon) there will be another choice. Once click on this choice there will be two possibilities, the same weapon but one one-hander and the other one two-hander.
I start writing in smithweapon.d (i divided the code and comment it to let you understand better)
Code:
var int My_Sword;
////////////////////////////////////////////////
instance PC_MySword(C_Info)
{
npc = PC_Hero;
condition = PC_MySword_Condition;
information = PC_MySword_Info;
permanent = TRUE;
description = "Bla bla bla";
};
func int PC_MySword_Condition()
{
if((PLAYER_MOBSI_PRODUCTION == MOBSI_SmithWeapon) && (Normalwaffen == FALSE) && (Erzwaffen == FALSE) && (MySword == FALSE) && (Hero_KnowsSpell == TRUE) && (sc_HasSword != TRUE)) //i added this two variables because they are a part of the quest
{
return TRUE;
};
};
func void PC_AdanosSword_Info()
{
My_Sword = TRUE;
};
/////////////////////////////////////////////////////////////////////
instance PC_ItMw_My_Sword_2h(C_Info)
{
npc = PC_Hero;
condition = PC_ItMw_My_Sword_2h_Condition;
information = PC_ItMw_My_Sword_2h_Info;
permanent = TRUE;
};
func int PC_ItMw_My_Sword_2h()
{
if((PLAYER_MOBSI_PRODUCTION == MOBSI_SmithWeapon) && (PLAYER_TALENT_SMITH[ItMw_My_Sword_2h] == TRUE) && (My_Sword == TRUE))
{
return TRUE;
};
};
func void PC_ItMw_Adanos_Sword_2h_Info()
{
// I'll spear you the info instruction
}
//and here i added the MySwordBACK() instance
ok now my perplexity is in func int PC_ItMw_My_Sword_2h, because i do not know were the variables PLAYER_TALENT_SMITH[anyweapons] are defined so if i leave this code in this way the game will crash.
i opened the teachplayertalentsmith but also there the variables are just called and not defined.
Can you have a look there and answer me?
Thank you very much