Plugin : Medal
Author:Rex.Rainbow
- Handles loading and unlocking of medals.
Download
Actions
Medal
Action:Get list
- Loads a list of medal objects.
Action:Unlock
- Unlock medal.
- ID ( number ) : The numeric ID of the medal to unlock.
Expressions
For each - index
Expression:LoopIndex
- Get loop index in for each loop.
Get list
Expression:MedalsAsJSON
- Get received medals as JSON.
Expression:MedalsCount
Get list - for each
Expression:CurMedalDescription
- A short description of the medal in a For Each loop.
Expression:CurMedalDifficulty
- The difficulty id of the medal in a For Each loop.
Expression:CurMedalIcon
- The URL for the medal's icon in a For Each loop.
Expression:CurMedalID
- The numeric ID of the medal in a For Each loop.
Expression:CurMedalName
- The name of the medal in a For Each loop.
Expression:CurMedalValue
- The medal's point value in a For Each loop.
Expression:CurMedalIsSecret
- Get 1 if current medal is secret in a For Each loop.
Expression:CurMedalIsUnlocked
- Get 1 if current medal is unlocked in a For Each loop.
Get list - index
Expression:Index2MedalDescription
- A short description of the medal by index.
- Index ( number ) : Medal line index, 0-based.
Expression:Index2MedalDifficulty
- The difficulty id of the medal by index.
- Index ( number ) : Medal index, 0-based.
Expression:Index2MedalIcon
- The URL for the medal's icon by index.
- Index ( number ) : Medal index, 0-based.
Expression:Index2MedalID
- The numeric ID of the medal by index.
- Index ( number ) : Medal index, 0-based.
Expression:Index2MedalName
- The name of the medal by index.
- Index ( number ) : Medal index, 0-based.
Expression:Index2MedalValue
- The medal's point value by index.
- Index ( number ) : Medal index, 0-based.
Expression:Index2MedalIsSecret
- Get 1 if current medal is secret by index.
- Index ( number ) : Medal index, 0-based.
Expression:Index2MedalIsUnlocked
- Get 1 if current medal is unlocked by index.
- Index ( number ) : Medal index, 0-based.
Result
Expression:ErrorMessage
- Get last error message from last result.
Unlock
Expression:LastUnlockedMedalID
- Get last unlocked medal ID.
Conditions
Get list
Condition:On get medals list
- Triggered when get medals list success.
Condition:On get medals list error
- Triggered when get medals list error.
Get list - for each
Condition:For each medal
- Repeat the event for each medal.
Condition:Is secret
- Return true if current medal is secret in a For Each loop.
Condition:Is unlocked
- Return true if current medal is unlocked in a For Each loop.
Condition:Compare difficulty
- Compare difficulty of current medal in a For Each loop.
- Comparison ( cmp ) : Choose the way to compare difficulty.
- Difficulty types ( Combo ) : Difficulty types.
- Options : ["Easy","Moderate","Challenging","Difficult","Brutal"]
Get list - index
Condition:Is secret
- Return true if medal is secret by index.
- Index ( number ) : Local line index, 0-based.
Condition:Is unlocked
- Return true if current medal is unlocked by index.
- Index ( number ) : Local line index, 0-based.
Condition:Compare difficulty
- Compare difficulty of medal by index.
- Index ( number ) : Local line index, 0-based.
- Comparison ( cmp ) : Choose the way to compare difficulty.
- Difficulty types ( Combo ) : Difficulty types.
- Options : ["Easy","Moderate","Challenging","Difficult","Brutal"]
Unlock
Condition:On unlock medal
- Triggered when unlock medal success.
Condition:On unlock medal error
- Triggered when unlock medal error.