Abre la actividad
LMSInitialize("") → "true"
LMSGetValue("cmi.core.lesson_status") → "not attempted"
LMSSetValue("cmi.core.lesson_status", "incomplete")
Decide ofrecer un 5 % y regatear (A)
LMSSetValue("cmi.interactions.0.id", "decision_negociacion")
LMSSetValue("cmi.interactions.0.type", "choice")
LMSSetValue("cmi.interactions.0.student_response", "a")
LMSSetValue("cmi.interactions.0.result", "wrong")
LMSCommit("")
Vuelve a decidir: pregunta por qué sube el precio (B)
LMSSetValue("cmi.interactions.1.id", "decision_negociacion")
LMSSetValue("cmi.interactions.1.type", "choice")
LMSSetValue("cmi.interactions.1.student_response", "b")
LMSSetValue("cmi.interactions.1.result", "correct")
LMSCommit("")
Elige «¿Para qué necesita la sala cada área?» (C)
LMSSetValue("cmi.interactions.2.id", "pregunta_intereses")
LMSSetValue("cmi.interactions.2.type", "choice")
LMSSetValue("cmi.interactions.2.student_response", "c")
LMSSetValue("cmi.interactions.2.result", "correct")
LMSCommit("")
Termina con 80 puntos: 20 de la decisión, en el segundo intento, y 60 de la pregunta
LMSSetValue("cmi.core.score.min", "0")
LMSSetValue("cmi.core.score.max", "100")
LMSSetValue("cmi.core.score.raw", "80")
LMSSetValue("cmi.core.lesson_status", "passed")
LMSCommit("")
Cierra la actividad
LMSSetValue("cmi.core.session_time", "00:03:48")
LMSSetValue("cmi.core.exit", "")
LMSCommit("")
LMSFinish("")