Change Variables (FarmingItem_Start = CurrentFarmingItem) Begin Loop ├─ Change Variables (CurrentFarmingItem += 1) ├─ If (CurrentFarmingItem > 5) │ └─ Change Variables (CurrentFarmingItem = 0) ├─ If (CurrentFarmingItem == 1) │ └─ If (Inventory Seedbag1 >= 1) │ └─ Break Loop ├─ Else If (CurrentFarmingItem == 2) │ └─ If (Inventory Seedbag2 >= 1) │ └─ Break Loop ├─ Else If (CurrentFarmingItem == 3) │ └─ If (Inventory PikAxe3 >= 1) │ └─ Break Loop ├─ Else If (CurrentFarmingItem == 4) │ └─ If (Inventory Shovel4 >= 1) │ └─ Break Loop ├─ Else If (CurrentFarmingItem == 5) │ └─ If (Inventory WaterCan5 >= 1) │ └─ Break Loop ├─ If (CurrentFarmingItem == FarmingItem_Start) │ ├─ Change Variables (CurrentFarmingItem = 0) │ └─ Break Loop End Loop

============

Set FarmingItem_Start = CurrentFarmingItem

Begin Loop Set CurrentFarmingItem = CurrentFarmingItem + 1 If CurrentFarmingItem > 5 Set CurrentFarmingItem = 1

// Check inventory for corresponding item If (CurrentFarmingItem == 1) and (Inventory Seedbag1 >= 1) Break Loop Else If (CurrentFarmingItem == 2) and (Inventory Seedbag2 >= 1) Break Loop Else If (CurrentFarmingItem == 3) and (Inventory PikAxe3 >= 1) Break Loop Else If (CurrentFarmingItem == 4) and (Inventory Shovel4 >= 1) Break Loop Else If (CurrentFarmingItem == 5) and (Inventory WaterCan5 >= 1) Break Loop

// If we've looped all the way around, give up If CurrentFarmingItem == FarmingItem_Start Set CurrentFarmingItem = 0 // no item found Break Loop

End Loop

======

Set FarmingItem_Start = CurrentFarmingItem

Begin Loop
    Set CurrentFarmingItem = CurrentFarmingItem + 1
    If (CurrentFarmingItem > 5)
        Set CurrentFarmingItem = 1

    If (CurrentFarmingItem == 1)
        If (Inventory Seedbag1 >= 1)
            Break Loop
    Else If (CurrentFarmingItem == 2)
        If (Inventory Seedbag2 >= 1)
            Break Loop
    Else If (CurrentFarmingItem == 3)
        If (Inventory PikAxe3 >= 1)
            Break Loop
    Else If (CurrentFarmingItem == 4)
        If (Inventory Shovel4 >= 1)
            Break Loop
    Else If (CurrentFarmingItem == 5)
        If (Inventory WaterCan5 >= 1)
            Break Loop

    If (CurrentFarmingItem == FarmingItem_Start)
        Set CurrentFarmingItem = 0
        Break Loop
End Loop

    ◆ If: Script: Input.isPressed("action-K")
        ◆ Control Variables: [ItemSelector] += 1
        ◆ If: Variable [ItemSelector] > 5
            ◆ Control Variables: [ItemSelector] = 1
        ◆ End
    ◆ End

    ◆ If: Variable [ItemSelector] == 1
        ◆ If: Variable [1: Fish1] == 1
            ◆ Show Text: "You selected Item 1!"
        ◆ Else
            ◆ Show Text: "No item found."
        ◆ End  
    ◆ Else If: Variable [ItemSelector] == 2
        ◆ If: Variable [2: Fish2] == 1
            ◆ Show Text: "You selected Item 2!"
        ◆ Else
            ◆ Show Text: "No item found."
        ◆ End  
    ◆ Else If: Variable [ItemSelector] == 3
        ◆ If: Variable [3: Fish3] == 1
            ◆ Show Text: "You selected Item 3!"
        ◆ Else
            ◆ Show Text: "No item found."