Jump to content

Any help figuring out how to create a mod that starts game with all alchemy recipes?


Atheosis

Recommended Posts

Check the script files.

For example the starting alchemy recipes and crafting schematics are added in W3PlayerWitcher::OnSpawned (playerWitcher.ws) function:

// Add starting alchemy recipes
AddAlchemyRecipe('Recipe for Swallow 1',true,true);
AddAlchemyRecipe('Recipe for Cat 1',true,true);
AddAlchemyRecipe('Recipe for White Honey 1',true,true);
 
AddAlchemyRecipe('Recipe for Samum 1',true,true);
AddAlchemyRecipe('Recipe for Grapeshot 1',true,true);
 
AddAlchemyRecipe('Recipe for Specter Oil 1',true,true);
AddAlchemyRecipe('Recipe for Necrophage Oil 1',true,true);
AddAlchemyRecipe('Recipe for Alcohest 1',true,true);
 
// CRAFTING ITEM SCHEMATICS
AddStartingSchematics();

and

// New mutagen recipes, added here to work with old saves
AddAlchemyRecipe('Recipe for Mutagen red',true,true);
AddAlchemyRecipe('Recipe for Mutagen green',true,true);
AddAlchemyRecipe('Recipe for Mutagen blue',true,true);
AddAlchemyRecipe('Recipe for Greater mutagen red',true,true);
AddAlchemyRecipe('Recipe for Greater mutagen green',true,true);
AddAlchemyRecipe('Recipe for Greater mutagen blue',true,true);

AddCraftingSchematic('Starting Armor Upgrade schematic 1',true,true);

The Wolven Hour potion is added in W3PlayerWitcher::ApplyPatchFixes function (playerWitcher.ws):

//potion reducing level requirement
if(FactsQuerySum("LevelReqPotGiven") < 1)
{
	FactsAdd("LevelReqPotGiven");
	inv.AddAnItem('Wolf Hour', 1, false, false, true);
}

Search for a file named temp.ws for few examples, so you don't have too look in the XML files for every item name.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...