Inventory Code Help

Should look like this:

*temp inventory
*set inventory " "
*temp comma
*if (silenced_pistol)
    *if comma
        *set inventory &", "
    *set inventory &"Silenced Pistol"
    *set comma true
*if (sleepdarts)
    *if comma
        *set inventory &", "
    *set inventory &"Sleep Darts"
    *set comma true
*if (taser_gun)
    *if comma
        *set inventory &", "
    *set inventory &"Taser Gun"
    *set comma true
*if (throwing_knives)
    *if comma
        *set inventory &", "
     *set inventory &"Throwing Knives"
     *set comma true

Inventory: ${inventory}

Not sure if you had the temp variables at the top of your choicescript_stats.txt. It seems like you forgot the *if comma statement on your silenced pistol.

1 Like