Running a Script Confusion

pcarver
04 Apr 2012, 22:47
Dear Quest Users,
Hello! My group is having a bit of a problem with our class project and we're trying to make our game awesome!

Our game is called Master Chef and the storyline is that the player has to gather multiple ingredients to create different courses of meals. In one of the rooms, the player has to use a backscratcher to retrieve the scallops needed for the meal. We want to make it so the player has to have the backscratcher in order to get the scallops and if they don't pick up the backscratcher, they can't pick up the scallops. Does anyone know how to make this happen in the game?

Thanks!

sgreig
05 Apr 2012, 05:41
The easiest way to do it would be to create a type for the scallops that can only be picked up if you have the backscratcher. Alternatively, you could modify the core DoTake function, but that gets really complicated. I just recently did it with my game, and I wouldn't recommend going that route except as a very last resort.

Pertex
05 Apr 2012, 06:56
In my opinion it's better not to change core functions. I did this in my testgames and libraries but I always got problems with new Questversions.

Try something like this with the scallop object:
scallop.jpg