Author: Knight Captain
Date: 02-04-17 00:33
Here's the answer to an ancient bug report as to why Yurel can give two purple orbs:
There are three variable checks, as converted:
var got_wheel = hasItemCount(AVATAR, 1, SHAPE_FOOD, QUALITY_ANY, FRAME_CHEESE_WHEEL);
var got_wedge = hasItemCount(AVATAR, 1, SHAPE_FOOD, QUALITY_ANY, FRAME_CHEESE_WEDGE);
var got_green = hasItemCount(AVATAR, 1, SHAPE_FOOD, QUALITY_ANY, FRAME_GREEN_CHEESE);
If you meet the got_wheel check, Yurel says the same text and gives the orb, but misses the setting the of gflags[0x030E] = true; so he still acts hungry. The other two checks correctly set the flag, so you cannot get additional orbs if you didn't first give him the yellow cheese wheel.
As part of my mod work I have fully reimplemented Yurel to fix the many missing closing quotes in his conversation, enable his PATROL barks, and also knock out him saying he's hungry after he's gotten some cheese. Hopefully this can be used in SIfixes someday as well.
The submitter's email is dead. :(