Selectable_if issues

*choice
    *selectable_if ((pistol) and (sil))#Use Silenced Pistol
        *set ammo1 -2
        *goto sh3
    *selectable_if ((assault_rifle) and (sil)) #Use Silenced Assault Rifle
        *set ammo2 -6
        *goto sh3
    *selectable_if (pistol) #Use Pistol
        *set ammo1 -2
        *goto sh3
    *selectable_if (assault_rifle) #Use Rifle
        *set ammo2 -6
        *goto sh3

Can anyone help me with this??
I have tried using (= true) in pistol,sil,assault rifle.But I keep receiving error of couldn’t parse.I need help asap ,thanks

What is the error?

1 Like

There’s no space between the first *selectable_if and #Choice text.

*choice
    *selectable_if ((pistol) and (sil)) #Use Silenced Pistol
        *set ammo1 -2
        *goto sh3
    *selectable_if ((assault_rifle) and (sil)) #Use Silenced Assault Rifle
        *set ammo2 -6
        *goto sh3
    *selectable_if (pistol) #Use Pistol
        *set ammo1 -2
        *goto sh3
    *selectable_if (assault_rifle) #Use Rifle
        *set ammo2 -6
        *goto sh3
2 Likes

Thanks a lot…such a small error,gotta be more careful

1 Like

it was my fault,I didn’t add space after selectable_if