Jass:CreateQuestBJ
Aus Mappedia
| Funktion: CreateQuestBJ | |
|---|---|
| Parameter: | integer string string string |
| Rückgabewert: | quest |
| Autor: | Blizzard |
| Quelle: | Blizzard.j |
| Synchron: | Unbekannt |
Code
function CreateQuestBJ takes integer questType, string title, string description, string iconPath returns quest local boolean required = (questType == bj_QUESTTYPE_REQ_DISCOVERED) or (questType == bj_QUESTTYPE_REQ_UNDISCOVERED) local boolean discovered = (questType == bj_QUESTTYPE_REQ_DISCOVERED) or (questType == bj_QUESTTYPE_OPT_DISCOVERED) set bj_lastCreatedQuest = CreateQuest() call QuestSetTitle(bj_lastCreatedQuest, title) call QuestSetDescription(bj_lastCreatedQuest, description) call QuestSetIconPath(bj_lastCreatedQuest, iconPath) call QuestSetRequired(bj_lastCreatedQuest, required) call QuestSetDiscovered(bj_lastCreatedQuest, discovered) call QuestSetCompleted(bj_lastCreatedQuest, false) return bj_lastCreatedQuest endfunction
Parameter
| Typ | Name | Beschreibung |
|---|---|---|
| integer | questType | |
| string | title | |
| string | description | |
| string | iconPath |
