Stendhal Quest Coding - Part 3: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Kymara |
imported>Kymara |
||
| Line 168: | Line 168: | ||
There are a few ways to check the states. Some developers use ChatConditions like we did when setting the NPC conversation. Others use more direct checks on the quest state. If using ChatConditions, these have been written to work with the add method for the NPC. If you just want to use them to get a true/false value directly, , you need to get at the 'fire', for example <code>(new() QuestCompletedCondition(QUEST_SLOT).fire(player, null, null)</code>. |
There are a few ways to check the states. Some developers use ChatConditions like we did when setting the NPC conversation. Others use more direct checks on the quest state. If using ChatConditions, these have been written to work with the add method for the NPC. If you just want to use them to get a true/false value directly, , you need to get at the 'fire', for example <code>(new() QuestCompletedCondition(QUEST_SLOT).fire(player, null, null)</code>. |
||
=== getQuestInfo === |
=== getQuestInfo / fillQuestInfo === |
||
{{TODO|populate with an example from BeerForHayunn and explanation}} |
{{TODO|populate with an example from BeerForHayunn and explanation}} |
||