Example - Reasoning

http://yugioh.wikia.com/wiki/Reasoning

Action STActivation

OP (CHOOSE Range:1 FROM Stat:Level STORE DeclaredLevelVar)

LOOP (REVEAL Range:Next FROM Area:Deck, AreaMod:Top CAUSE Method:Excavate STORE CardVar APPEND AllCardsVar) UNTIL (CAN (MOVE CardVar CAUSE Method:Normal Summon))


 * Condition


 * CHECK CardVar.Level IS = DeclaredLevelVar


 * Action


 * MOVE AllCardsVar FROM Area:Deck TO Area:Grave CAUSE Method:Send


 * Condition


 * CAN (MOVE CardVar CAUSE Method:Special Summon)


 * Action


 * MOVE CardVar FROM Area:Deck TO Area:Monster CAUSE Method:Special Summon


 * MOVE AllCardsVar FROM Area:Deck TO Area:Grave CAUSE Method:Send


 * Condition


 * CANT (MOVE CardVar CAUSE Method:Special Summon)


 * Action


 * MOVE AllCardsVar FROM Area:Deck TO Area:Grave CAUSE Method:Send