Plugin : Gashapon
Author:Rex.Rainbow
- Gashapon in shuffle or random mode.
Download
Properties
Mode
- Generater mode.
- Options : ["Shuffle","Random","Shuffle wo restart"]
Patterns
- Set patterns. ex:"{"A":10,"B":20}".
Actions
Generator
Action:Start
Action:Generate
JSON
Action:Load
- Load from an object previously encoded in JSON format.
- JSON ( string ) : A string of the JSON data to load.
Mode
Action:Set mode
- Set mode of pattern generator.
- Mode ( Combo ) : Mode of pattern generator.
- Options : ["Shuffle","Random","Shuffle without restart"]
Pattern
Action:Set pattern
- Set pattern.
- Pattern ( string ) : Pattern in gererator.
- Count ( number ) : Pattern count.
Action:Add to pattern
- Add to pattern.
- Pattern ( string ) : Pattern in gererator.
- Count ( number ) : Pattern count.
Action:Put pattern back
- Put pattern back without change total count of this pattern, do nothing if the pattern is not existed. It is only ussd in Shuffle mode.
- Pattern ( string ) : Pattern in gererator.
- Count ( number ) : Pattern count.
Pattern - remove
Action:Remove pattern
- Remove pattern.
- Pattern ( string ) : Pattern in gererator.
Action:Remove all patterns
Setup
Action:Set random generator
- Set random generator object.
- Random generator ( object ) : Random generator object
Expressions
Generator
Expression:Pattern
- Get pattern from generator.
Expression:ManualPick
- Manual pick pattern. Return pattern if success, else return ""
- Pattern ( string ) : Pattern in gererator.
Expression:LastPattern
- Get last generated pattern.
JSON
Expression:AsJSON
- Return the contents of the patterngen in JSON format.
Pattern
Expression:TotalCount
- Get total count of patterns.
- Pattern ( string ) : Pattern in gererator.
Expression:RemainCount
- Get count of remain patterns.
- Pattern ( string ) : Pattern in gererator.
Pattern - for each
Expression:CurPatternName
- Get current pattern name under "Condition: For each pattern".
Expression:CurPatternTotalCount
- Get total count of current pattern under "Condition: For each pattern".
Expression:CurPatternRemainCount
- Get remain count of current pattern under "Condition: For each pattern".
Expression:LoopIndex
- Get loop index under "Condition: For each pattern".
Conditions
Pattern - for each
Condition:For each pattern
- Repeat the event for each pattern.
- Order ( Combo ) : Sort by name or count.
- Options : ["Pattern count in ascending order","Pattern count in descending order","Pattern name in ascending order","Pattern name in descending order"]