API:GetQuestPointConditions
From RoR Wiki
UI Lua API · Game functions
Version: WAR 1.4.8
Returns which conditions of a quest a quest point on a map stands for.
conditions = GetQuestPointConditions(mapDisplayName, pointIndex)
Arguments
- mapDisplayName
string– Name of the map display window.- pointIndex
number– Index of the point on that map.
Returns
- conditions
table– Array of condition numbers (number, 1–10), indexed from 1. Nothing is returned for other points.
Details
- The point is looked up as in GetMapPointData.
- Only points of type 24 answer; the stock UI calls the function for quest points. For any other point type, or an unknown point, the function returns nothing.
- The numbers index the quest's
conditionstable from GetQuestData. - The function needs at least two arguments and only reads the last two.
Errors
None.
Example
From easystem_tooltips/source/maptooltips.lua:
local condList = GetQuestPointConditions( mapDisplay, ptData.pointIndex )
if( condList )
then
for index, condition in ipairs( condList )
do
local conditionData = questData.conditions[condition]
