func GiveAllKnowledge() { var i, id; while (id = GetDefinition(i++)) { SetPlrKnowledge(nil, id); } }
func Dlg_Pyrit_15(object clonk) { MessageBox("$Pyrit15$", clonk, dlg_target); // take con plans for plane g_pyrit_spoken = true; g_goal->SetStagePlane(); AddTimer(this.CheckOilAtPlane, 10); SetBroadcast(false); StopDialogue(); SetDialogueProgress(16); SetPlrKnowledge(NO_OWNER, Plane); // many NPCs get new texts now Dialogue->FindByTarget(npc_newton)->SetDialogueProgress(200, nil, true); Dialogue->FindByTarget(npc_mave)->SetDialogueProgress(100, nil, true); Dialogue->FindByTarget(npc_clonko)->SetDialogueProgress(100, nil, true); Dialogue->FindByTarget(npc_dora)->AddAttention(); // in case player spoke to Dora before speaking to Pyrit... return true; }