1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
--TUTORIAL_TRIGGER
local TutorialTriggerHandlers = {
[ EVENT_FAST_TRAVEL_NETWORK_UPDATED ] = function ( )
return TUTORIAL_TRIGGER_TWO_FAST_TRAVEL_NODES
end
end ,
[ EVENT_ALLIANCE_POINT_UPDATE ] = function ( alliancePoints , _ , difference )
if alliancePoints > 0 and difference > 0 then
return TUTORIAL_TRIGGER_EARNED_ALLIANCE_POINTS
end
end ,
[ EVENT_MISSING_LURE ] = function ( )
return TUTORIAL_TRIGGER_ATTEMPTED_TO_FISH_WITHOUT_BAIT
end ,
if unit == "player" then
return TUTORIAL_TRIGGER_WEAPON_SWAPPING_UNLOCKED
end
end
end ,
[ EVENT_SKILL_POINTS_CHANGED ] = function ( oldPoints , newPoints , oldPartialPoints , newPartialPoints )
if oldPartialPoints ~= newPartialPoints then
return TUTORIAL_TRIGGER_SKYSHARDS_DISCOVERED
end
end ,
[ EVENT_POI_DISCOVERED ] = function ( zoneIndex , poiIndex )
if poiType == POI_TYPE_GROUP_DUNGEON or poiType == POI_TYPE_PUBLIC_DUNGEON then
return TUTORIAL_TRIGGER_DISCOVERED_GROUP_DUNGEON
end
end ,
[ EVENT_CAPTURE_AREA_STATUS ] = function ( )
return TUTORIAL_TRIGGER_ENTERED_OBJECTIVE_CAPTURE_AREA
end ,
[ EVENT_QUEST_ADDED ] = function ( questIndex )
return TUTORIAL_TRIGGER_DAILY_QUEST_ADDED
end
end ,
[ EVENT_RAID_TRIAL_STARTED ] = function ( )
return TUTORIAL_TRIGGER_RAID_TRIAL_STARTED
end ,
[ EVENT_RAID_TRIAL_COMPLETE ] = function ( )
return TUTORIAL_TRIGGER_RAID_TRIAL_COMPLETED
end ,
[ EVENT_RAID_TRIAL_FAILED ] = function ( )
return TUTORIAL_TRIGGER_RAID_TRIAL_FAILED
end ,
[ EVENT_ENLIGHTENED_STATE_GAINED ] = function ( )
return TUTORIAL_TRIGGER_ENLIGHTENED_STATE_GAINED
end
end ,
[ EVENT_ENLIGHTENED_STATE_LOST ] = function ( )
return TUTORIAL_TRIGGER_ENLIGHTENED_STATE_LOST
end
end ,
[ EVENT_PLAYER_ACTIVATED ] = function ( )
end
end
end
end
end
end ,
[ EVENT_MOUNTED_STATE_CHANGED ] = function ( isMounted )
if isMounted then
return TUTORIAL_TRIGGER_MOUNTED
end
end ,
}
return TutorialTriggerHandlers
end |