By a setup part I mean a script in which you set up all brances and subbranches.
thats how looked my first dynamic convo script where the convo was absolutely dynamic in all ways:
SHC_Rozhovor_MenuVytvorMenu(CRAFT_SKILL_ZBRANIR,"1. menu kovare-zbranire");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,1,1,"Měděné zbraně");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,2,1,0,"Vyber druh zbranÄ›:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,2,1,"ÄŒepele");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,3,2,1,"Vyber si druh ÄepelÃ:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,3,1,"Dlouhé meÄe");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,4,3,1,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,4,1,"MedÄ›ný dlouhý meÄ","shc_zba_melon001",0,20,"shc_sle_medingot",3,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",30,2);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,4,1,"Bronzový dlouhý meÄ","shc_zba_brlon001",0,20,"shc_sle_broingot",3,1,2);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",30,2);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,3,2,"Krátké meÄe");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,5,3,2,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,5,1,"MedÄ›ný krátký meÄ","shc_zba_mesho001",-1,16,"shc_sle_medingot",2,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",30,1);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,3,3,"Dýky");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,6,3,3,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,6,1,"Meděná dýka","shc_zba_medyk001",-3,10,"shc_sle_medingot",2,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",50,1);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,3,4,"MeÄe bastardy");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,7,3,4,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,7,1,"MedÄ›ný meÄ bastard","shc_zba_medyk001",12,27,"shc_sle_medingot",3,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",30,1);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,3,5,"ObouruÄnà meÄe");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,8,3,5,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,8,1,"MedÄ›ný velký meÄ","shc_zba_megsw001",18,33,"shc_sle_medingot",5,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",50,2);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,3,6,"Katany");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,9,3,6,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,9,1,"Meděná katana","shc_zba_mekat001",9,20,"shc_sle_medingot",3,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",30,2);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,3,7,"Scimitary");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,10,3,7,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,10,1,"Meděný scimitar","shc_zba_mesci001",11,23,"shc_sle_medingot",3,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",30,1);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,3,8,"RapÃry");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,11,3,8,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,11,1,"MedÄ›ný rapÃr","shc_zba_mesci001",12,24,"shc_sle_medingot",3,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",30,1);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,2,2,"Sekery");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,12,2,2,"Vyber druh sekery:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,12,1,"RuÄnà sekerky");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,13,12,1,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,13,1,"MÄ›dÄ›ná ruÄnà sekerka","shc_zba_mehax001",2,14,"shc_sle_medingot",1,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",10,1);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,12,2,"Bitevnà sekery");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,14,12,2,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,14,1,"Měděná bitevnà sekera","shc_zba_mewax001",5,17,"shc_sle_medingot",2,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",25,1);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,12,3,"ObouruÄnà sekery");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,15,12,3,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,15,1,"MÄ›dÄ›ná obouruÄnà sekera","shc_zba_mewax001",17,30,"shc_sle_medingot",5,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",15,4);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,12,3,"TrpasliÄà váleÄné");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,15,12,3,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,15,1,"MÄ›dÄ›ná trpasliÄà váleÄné sekera","shc_zba_medax001",15,26,"shc_sle_medingot",4,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",45,2);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,2,3,"Dřevcové zbraně");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,16,2,3,"Vyber druh:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,16,1,"Halapartny");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,17,16,1,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,17,1,"Měděná halapartna","shc_zba_mehal001",7,23,"shc_sle_medingot",4,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",45,2);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,16,2,"KopÃ");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,18,16,2,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,18,1,"MÄ›dÄ›né kopÃ","shc_zba_mekop001",4,19,"shc_sle_medingot",3,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",30,2);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,16,3,"Kosy");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,19,16,3,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,19,1,"Měděná kosa","shc_zba_mekos001",10,31,"shc_sle_medingot",6,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",15,6);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,16,4,"Trojzubce");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,20,16,4,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,20,1,"Měděný trojzubec","shc_zba_metro001",5,21,"shc_sle_medingot",3,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",70,1);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,2,4,"Exotické zbraně");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,21,2,4,"Vyber druh:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,21,1,"BiÄe");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,22,21,1,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,22,1,"MÄ›dÄ›ný biÄ","shc_zba_mebic",9,21,"shc_sle_medingot",1,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",15,1);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,21,2,"Kamy");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,23,21,2,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,23,1,"Měděná kama","shc_zba_mekaa001",0,18,"shc_sle_medingot",2,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",30,1);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,21,3,"Kukri");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,24,21,3,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,24,1,"Měděná kukri","shc_zba_mekuk001",1,19,"shc_sle_medingot",2,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",20,2);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,21,4,"Srpy");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,25,21,4,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,25,1,"Měděný srp","shc_zba_mesrp",3,22,"shc_sle_medingot",1,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",25,1);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,21,5,"Oboustranné meÄe");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,26,21,5,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,26,1,"MÄ›dÄ›ný oboustranný meÄ","shc_zba_medsw",7,25,"shc_sle_medingot",4,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",45,3);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,21,6,"Oboustranné sekery");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,27,21,6,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,27,1,"Měděná dvojitá sekera","shc_zba_medax",8,22,"shc_sle_medingot",4,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",40,3);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,21,7,"Oboustranné palcáty");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,28,21,7,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,28,1,"Měděný strašlivý palcát","shc_zba_medma",10,23,"shc_sle_medingot",5,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",50,3);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,2,5,"Tupé zbraně");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,29,2,5,"Vyber druh:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,29,1,"Hole");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,30,29,1,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,30,1,"Měděná hůl","shc_zba_mehul",5,23,"shc_sle_medingot",1,1,1);//TODO drevo
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",15,1);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,29,2,"Lehké cepy");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,31,29,2,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,31,1,"Měděný lehký cep","shc_zba_melma",3,23,"shc_sle_medingot",2,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",25,2);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,29,3,"Těžké cepy");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,32,29,3,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,32,1,"Měděný těžký cep","shc_zba_mehfl",8,27,"shc_sle_medingot",4,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",40,2);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,29,4,"Lehké kladiva");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,33,29,4,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,33,1,"Měděné lehké kladivo","shc_zba_melha",3,22,"shc_sle_medingot",1,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",22,1);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,29,5,"VáleÄné kladiva");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,34,29,5,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,34,1,"MÄ›dÄ›né váleÄné kladivo","shc_zba_mehha",6,27,"shc_sle_medingot",3,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",30,2);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,29,6,"Kyje");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,35,29,6,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,35,1,"Měděný kyj","shc_zba_mekyj",2,22,"shc_sle_medingot",1,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",30,1);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,29,7,"Palcáty");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,36,29,7,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,36,1,"Měděný palcát","shc_zba_memac",2,22,"shc_sle_medingot",1,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",10,1);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,29,8,"Řemdihy");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,37,29,8,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,37,1,"Měděný řemdih","shc_zba_memor",4,25,"shc_sle_medingot",2,1,1);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",22,2);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,2,6,"OstatnÃ");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,38,2,6,"Vyber druh:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,38,1,"Hvězdice");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,39,38,1,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,39,1,"Měděná hvězdice","shc_zba_mehve001",0,17,"shc_sle_medingot",1,1,1);//TODO drevo
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",60,1);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,38,2,"Munice do praku");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,40,38,2,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,40,1,"Měděný kámen","shc_zba_mekam001",-3,14,"shc_sle_medingot",1,1,1);//TODO drevo
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",77,1);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,38,3,"Vrhacà sekery");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,41,38,3,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,41,1,"Měděná vrhacà sekera","shc_zba_metax",3,23,"shc_sle_medingot",1,1,1);//TODO drevo
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",15,1);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,2,7,"Komponenty");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,42,2,7,"Vyber druh:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,42,1,"Hroty");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,43,42,1,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,43,1,"Měděný hrot","shc_zba_mehro001",-4,12,"shc_sle_medingot",1,1,1);//TODO drevo
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",71,1);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,2,8,"NářadÃ");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,44,2,8,"Vyber druh:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,44,1,"Lovecké nože");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,45,44,1,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,45,1,"Měděný lovecký nůž","shc_lov_dyka001",0,21,"shc_sle_medingot",2,1,1);//TODO drevo
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",22,1);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,44,2,"Kovářské kladÃvka");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,46,44,2,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,46,1,"MÄ›dÄ›né kovářské kladÃvko","shc_zba_mekkl001",4,27,"shc_sle_medingot",2,1,1);//TODO drevo
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",22,1);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,44,3,"KrumpáÄe");
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,47,44,3,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,47,1,"MÄ›dÄ›ný krumpáÄ","shc_zba_mekru001",6,30,"shc_sle_medingot",4,1,1);//TODO drevo
SHC_Recept_NastavReceptItemPriNeuspechu("shc_sle_medingot",22,3);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,1,2,"Bronzové zbraně","",50);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,1,3,"Železné zbraně","",100);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,1,4,"StÅ™Ãbrné zbranÄ›","",150);
SHC_Rozhovor_MenuVytvorVetev(CRAFT_SKILL_ZBRANIR,1,5,"Speciálnà zbraně","",0,0,"",0,-1);
SHC_Rozhovor_MenuVytvorPodMenu(CRAFT_SKILL_ZBRANIR,999,1,5,"Výrobky, které dovedeš vykovat:");
SHC_Rozhovor_MenuVytvorSpecialniVetev(CRAFT_SKILL_ZBRANIR,999,1,"Ultrahusty mec","shc_rec_001");
This is a setup script for several sublevels a recipes but only for one kind of material! not only it needs many lines of code but it was very hard to understand how to make sublevel etc.
So I changed the approach to pseudo dynamic convo where I have static part where you can choose material etc. and once you click on recipes, script will get all recipes set up for menu #X, and I do set it up like this now:
//menu 1 - proste
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,1,"Měděná halapartna","shc_med_hb",20,40,"shc_ingot_med",5);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_ingot_med",30,4);
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,1,"MÄ›dÄ›né kopÃ","shc_med_sp",20,40,"shc_ingot_med",4);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_ingot_med",35,3);
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,1,"MÄ›dÄ›né krátké kopÃ","shc_med_os",20,40,"shc_ingot_med",3);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_ingot_med",40,2);
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,1,"Měděná hůl","shc_med_qs",20,40,"shc_ingot_med",3);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_ingot_med",40,2);
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,1,"Měděný srp","shc_med_si",-10,10,"shc_ingot_med",1);
//menu 2 - cepele
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,2,"Měděná dýka","shc_dagger001",-10,10,"shc_ingot_med",1);
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,2,"MÄ›dÄ›ný dlouhý meÄ","shc_med_ls",10,30,"shc_ingot_med",3);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_ingot_med",45,2);
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,2,"MÄ›dÄ›ný krátky meÄ","shc_med_ss",0,20,"shc_ingot_med",2);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_ingot_med",50,1);
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,2,"MÄ›dÄ›ný meÄ bastard","shc_med_bs",20,40,"shc_ingot_med",4);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_ingot_med",40,3);
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,2,"MÄ›dÄ›ný obouruÄnà meÄ","shc_med_ts",30,60,"shc_ingot_med",6);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_ingot_med",35,4);
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,2,"MÄ›dÄ›ný rapÃr","shc_med_ra",10,30,"shc_ingot_med",3);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_ingot_med",40,1);
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,2,"Měděný scimitar","shc_med_sc",10,30,"shc_ingot_med",3);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_ingot_med",40,1);
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,2,"Měděná katana","shc_med_ka",20,40,"shc_ingot_med",4);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_ingot_med",40,3);
//menu 3 - tupe
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,3,"Měděné lehké kladivo","shc_med_lh",-10,10,"shc_ingot_med",1);
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,3,"Měděný lehký cep","shc_med_lf",0,20,"shc_ingot_med",2);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_ingot_med",40,1);
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,3,"Měděný těžký cep","shc_med_hf",30,60,"shc_ingot_med",6);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_ingot_med",25,5);
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,3,"MÄ›dÄ›né váleÄné kladivo","shc_med_wh",20,40,"shc_ingot_med",4);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_ingot_med",30,3);
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,3,"Měděný kyj","shc_med_cl",-5,15,"shc_ingot_med",1);
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,3,"Měděný palcát","shc_med_ma",0,20,"shc_ingot_med",2);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_ingot_med",40,1);
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,3,"Měděný řemdih","shc_med_ms",10,30,"shc_ingot_med",3);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_ingot_med",35,2);
//menu 4 - sekery
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,4,"Měděná bitevnà sekera","shc_med_wa",-10,10,"shc_ingot_med",3);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_ingot_med",45,2);
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,4,"MÄ›dÄ›ná ruÄnà sekerka","shc_med_ha",0,20,"shc_ingot_med",2);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_ingot_med",50,1);
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,4,"MÄ›dÄ›ná trpasliÄà sekera","shc_med_da",20,40,"shc_ingot_med",4);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_ingot_med",40,3);
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,4,"Měděná velká sekera","shc_med_ta",30,60,"shc_ingot_med",6);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_ingot_med",35,4);
//menu 5 - exoticke
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,5,"MÄ›dÄ›ný biÄ","shc_med_wi",-5,15,"shc_ingot_med",1);
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,5,"Měděná kama","shc_med_km",10,30,"shc_ingot_med",2);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_ingot_med",50,1);
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,5,"Měděná kukri","shc_med_ku",20,40,"shc_ingot_med",2);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_ingot_med",40,1);
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,5,"Měděná kosa","shc_med_sy",30,50,"shc_ingot_med",5);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_ingot_med",30,4);
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,5,"Měděná dvojitá sekera","shc_med_ba",30,50,"shc_ingot_med",5);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_ingot_med",30,4);
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,5,"Měděný dvouhlavý palcát","shc_med_dm",30,50,"shc_ingot_med",5);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_ingot_med",30,4);
SHC_Recept_NastavRecept(CRAFT_SKILL_WEAPONMAKER,5,"MÄ›dÄ›ný dvoubÅ™itý meÄ","shc_med_ds",30,50,"shc_ingot_med",5);
SHC_Recept_NastavReceptItemPriNeuspechu("shc_ingot_med",30,4);
not sure if it helps at all anyone, but I posted this rather to get some advices from others, how do you set up several levels convo in ZDialog?