New food item question

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
Ezric
Posts: 55
Joined: Thu May 14, 2020 1:34 pm

New food item question

Post by Ezric »

I presume the easiest way to make new food items would be to add additional frames to the existing food shape. It seems to work, but where in Studio do I set the food value of the new frame? I don't see it.

Thanks for your time and patience.
Crowley
Posts: 459
Joined: Thu May 14, 2020 1:34 pm

Re: New food item question

Post by Crowley »

I am not sure, but I think those are handled with usecode.
Ezric
Posts: 55
Joined: Thu May 14, 2020 1:34 pm

Re: New food item question

Post by Ezric »

I suspected that, but this thread would seem to indicate otherwise, based on the thread title and content of the thread.
marzo
Site Admin
Posts: 1925
Joined: Thu May 14, 2020 1:34 pm

Re: New food item question

Post by marzo »

Crowley is correct: food values are defined in usecode.
------
Marzo Sette Torres Junior
aka Geometrodynamic Dragon
[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
Wizardry Dragon
Posts: 1241
Joined: Thu May 14, 2020 1:34 pm

Re: New food item question

Post by Wizardry Dragon »

Specifically the usecode for when you use food items first gets a target and then adds an amount based on the frame of the item to how full the character is, then it destroys the item. To add a new frame you would have to reimplement the food item. Easier would be making a new item altogether.

Wizardry dragon
Cheers, Wizardry Dragon
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
marzo
Site Admin
Posts: 1925
Joined: Thu May 14, 2020 1:34 pm

Re: New food item question

Post by marzo »

Although making a new item has the downside of it not being found for feeding with the 'f' key. The exceptions being the cases where (a) in SI, if you reimplement the feeding function to find the new food objects as well or (b) for everything else, if you change the 'f' keybinding to use a custom usecode function instead of the hard-coded feeding function in Exult.
------
Marzo Sette Torres Junior
aka Geometrodynamic Dragon
[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
Wizardry Dragon
Posts: 1241
Joined: Thu May 14, 2020 1:34 pm

Re: New food item question

Post by Wizardry Dragon »

I had forgotten about that in SI. I haven't played in SI forever. You could just make a custom function though. It wouldn't be hard.

Wizardry dragon
Cheers, Wizardry Dragon
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
Knight Captain
Posts: 1219
Joined: Thu May 14, 2020 1:34 pm

Re: New food item question

Post by Knight Captain »

Does the F key also use the second food shape in SI that has the horned fish and Monk Isle berries? If so that would be the place to add new shapes.
Locked