creating a specific potion item and ingredients

For all talk about quests. Creating, testing, bugs, and development progress.
Post Reply
haloterm
Posts: 96
Joined: Sat Feb 16, 2019 5:21 am

creating a specific potion item and ingredients

Post by haloterm » Sat Feb 08, 2020 10:23 am

Time for another stupid question:

How do I create a specific type of potion, for example a potion of levitation?

Which class and subclass would that be?

I can't find any reference to potions in the item class/subclass table linked at viewtopic.php?f=25&t=606.

If that's not possible, I can instead create items for the ingredients the players would need to brew that potion, but giving the potion itself would be easier.
Last edited by haloterm on Sun Feb 09, 2020 8:16 am, edited 1 time in total.

haloterm
Posts: 96
Joined: Sat Feb 16, 2019 5:21 am

Re: creating a specific potion item and ingredients

Post by haloterm » Sun Feb 09, 2020 8:16 am

Hm, seems I can't create ingredients either.

When I use the following commands

Item _BHCIngred1_ item class 18 subclass 47
Item _BHCIngred2_ item class 20 subclass 58
Item _BHCIngred3_ item class 20 subclass 64
Item _BHCIngred4_ item class 22 subclass 77

in my quest, it _should_ create the ingredients needed for crafting a Potion of Cure Poison. But the quest fails to run when I include these lines.

I got the class and subclass id's from the spreadsheet here: viewtopic.php?f=25&t=606

User avatar
Hazelnut
Posts: 1974
Joined: Sat Aug 26, 2017 2:46 pm
Contact:

Re: creating a specific potion item and ingredients

Post by Hazelnut » Sun Feb 09, 2020 3:07 pm

You can't create potions, they're glass bottles with some extra metadata applied which is not supported.

You're on the right track with the potion ingredients but you have the wrong subclass values. The first one the 47 should be 1, because this is the enum index of ItemEnums.CreatureIngredients2 and it's the second element of that enum. (first is 0)

The value you are using is the DF item template id. See https://github.com/Interkarma/daggerfal ... emEnums.cs
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

haloterm
Posts: 96
Joined: Sat Feb 16, 2019 5:21 am

Re: creating a specific potion item and ingredients

Post by haloterm » Sun Feb 09, 2020 3:20 pm

Hazelnut wrote:
Sun Feb 09, 2020 3:07 pm
You can't create potions, they're glass bottles with some extra metadata applied which is not supported.

You're on the right track with the potion ingredients but you have the wrong subclass values. The first one the 47 should be 1, because this is the enum index of ItemEnums.CreatureIngredients2 and it's the second element of that enum. (first is 0)

The value you are using is the DF item template id. See https://github.com/Interkarma/daggerfal ... emEnums.cs
Thank you, I will try that!

Edit: Worked fine! :)

Post Reply