Page 1 of 1

New food item question

Posted: Tue Dec 15, 2009 4:20 am
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.

Re: New food item question

Posted: Tue Dec 15, 2009 9:04 am
by Crowley
I am not sure, but I think those are handled with usecode.

Re: New food item question

Posted: Tue Dec 15, 2009 12:26 pm
by Ezric
I suspected that, but this thread would seem to indicate otherwise, based on the thread title and content of the thread.

Re: New food item question

Posted: Tue Dec 15, 2009 1:41 pm
by marzo
Crowley is correct: food values are defined in usecode.

Re: New food item question

Posted: Tue Dec 15, 2009 7:11 pm
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

Re: New food item question

Posted: Wed Dec 16, 2009 1:42 am
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.

Re: New food item question

Posted: Wed Dec 16, 2009 2:35 am
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

Re: New food item question

Posted: Fri Feb 17, 2017 12:53 am
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.

Fatal: Not able to open ./cache/production/data_global.php