En:SetQuestState

Материал из Pocket Fallout для КПК на PDA PC PPC Mobile.

Содержание

Syntax

SetQuestState(identifier : Number, 
              state : Boolean)

Description

Set quest state by its identifier;

Параметры

  • identifier - number. Quest identifier;
  • state - boolean. Setted the quest state: true - the quest is solved, false - the quest isn't solved;

Result

The procedure returns nothing;

Example

if answer_id == 151 then //Let's check it
    hero = CreateObject("MapObject");
    hero.GetObjectByName("hero");			
    if hero.isItemInInventory("knizka") then
	SetQuestState(100, true); //  The quest is solved
	hero.MoveItemFromInventory("knizka", unit_name); // The inventory  
                                                       //item is gave
	bot.SetCurrentTalkID(170);
    else
	bot.SetCurrentTalkID(160);
    endif			
    hero.free();
endif

See also

General procedures and functions

Личные инструменты