void main()
{
    // Get the player currently speaking in the conversation
    object oPC = GetPCSpeaker();
    
    // Find the item tagged "I_CAS_CASINOHANDLE" in the player's inventory
    object oTargetItem = GetItemPossessedBy(oPC, "I_CAS_CASINOHANDLE");

    // Check if the item exists
    if (GetIsObjectValid(oTargetItem))
    {
        // Apply the variable to the item
        SetLocalInt(oTargetItem, "I_CAN_BE_GRAPPLED", 1);
        
        // Notify the player
        SendMessageToPC(oPC, "The item has been prepared to allow grappling.");
    }
    else
    {
        // Notify the player if no valid item was found
        SendMessageToPC(oPC, "No item with the tag 'I_CAS_CASINOHANDLE' was found in your inventory.");
    }
}
