Selectable_if issues


#1
*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


#2

What is the error?


#4

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

#5

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


#6

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