void main()
{
    object oPC = GetPCSpeaker(); 
    int nValue = StringToInt(GetLocalString(oPC, "I_SAID")); // Set in conversation for tokens
    
    // Create the token slip holder item
    object oSlipHolder = CreateItemOnObject("cas_slipholder", oPC);

    // Ensure the item was created successfully
    if (!GetIsObjectValid(oSlipHolder))
    {
        SendMessageToPC(oPC, "Failed to create item. Please check your inventory space.");
        return;
    }

    SetTag(oSlipHolder, "I_CAS_TOKEN");

    // Set name and variable for tokens
    SetName(oSlipHolder, "Token Slip Holder: " + IntToString(nValue));
    SetLocalInt(oSlipHolder, "nCAS_TOKEN", nValue);
}
