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 |
--Used in the group election system to determine what system requested the election, if relevant
ZO_GROUP_ELECTION_DESCRIPTORS =
{
NONE = "[ZO_NONE]" ,
READY_CHECK = "[ZO_READY_CHECK]" ,
}
if isLeader and groupSize == STANDARD_GROUP_SIZE_THRESHOLD then
ZO_Dialogs_ShowPlatformDialog ( "LARGE_GROUP_INVITE_WARNING" , characterOrDisplayName , { mainTextParams = { STANDARD_GROUP_SIZE_THRESHOLD } } )
else
if displayInvitedMessage then
ZO_Alert ( ALERT , nil , zo_strformat ( GetString ( "SI_GROUPINVITERESPONSE" , GROUP_INVITE_RESPONSE_INVITED ) , ZO_FormatUserFacingCharacterOrDisplayName ( characterOrDisplayName ) ) )
end
end
end
return
end
if not isLeader and groupSize > 0 then
ZO_Alert ( UI_ALERT_CATEGORY_ALERT , nil , GetString ( "SI_GROUPINVITERESPONSE" , GROUP_INVITE_RESPONSE_ONLY_LEADER_CAN_INVITE ) )
return
end
local displayName = characterOrDisplayName
if success then
end
end
ZO_ConsoleAttemptInteractOrError ( GroupInviteCallback , displayName , ZO_PLAYER_CONSOLE_INFO_REQUEST_DONT_BLOCK , ZO_CONSOLE_CAN_COMMUNICATE_ERROR_ALERT , ZO_ID_REQUEST_TYPE_DISPLAY_NAME , displayName )
else
return
end
end
end
if isVeteranDifficulty then
return DUNGEON_DIFFICULTY_VETERAN
else
return DUNGEON_DIFFICULTY_NORMAL
end
end
return dungeonDifficulty == DUNGEON_DIFFICULTY_VETERAN
end
end
end
else
end
end
return electionType == GROUP_ELECTION_TYPE_GENERIC_SIMPLEMAJORITY or electionType == GROUP_ELECTION_TYPE_GENERIC_SUPERMAJORITY or electionType == GROUP_ELECTION_TYPE_GENERIC_UNANIMOUS
end
if resultType == GROUP_ELECTION_RESULT_TIED or resultType == GROUP_ELECTION_RESULT_TIMED_OUT then
return GROUP_ELECTION_RESULT_ELECTION_LOST
end
return resultType
end
local DEFAULT_TARGET = nil
local flags = GROUP_ELECTION_FLAGS_REQUIRE_ALL_VOTES + GROUP_ELECTION_FLAGS_IGNORE_OFFLINE_MEMBERS
BeginGroupElection ( GROUP_ELECTION_TYPE_GENERIC_UNANIMOUS , ZO_GROUP_ELECTION_DESCRIPTORS . READY_CHECK , DEFAULT_TARGET , flags )
end |