Posts made by Tim Hunt

Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
If you just try to understand oumultiresponse, you will only be seeing a small fraction of the picture, becuase it is built on the core multiplechoice type. You need to understand a bit more about how the core question type works.

I think you should be able to achieve what you want just by overriding start_attempt and apply_attempt_state. If you do that right, then probably you don't need to change the renderer at all.

And, probably, more important that trying to follow what the code is doing, focus on the data structure. What do the various files of the class mean? https://github.com/moodle/moodle/blob/master/question/type/multichoice/question.php#L60(Hmm. Wouldn't it be nice if the person who created this question type had bothered to write PHPdoc comments. I wonder who should be blamed for that wink)