iftrinkets won't call script?

Started by KittyGame, December 30, 2019, 04:36:59 PM

Previous topic - Next topic

KittyGame

I have a terminal in my level that checks if the player has enough trinkets to end the game. It runs dialogue but when it gets to ```iftrinkets(6,BadEnd)``` it doesn't do anything (if the player has enough trinkets. A script called BadEnd does exist, but nothing happens. How do I fix this?

Dav999

Make sure the script name doesn't have any capital letters, and besides, no spaces. Behind the scenes, script lines are lowercased and have spaces removed (except for lines of dialogue), so iftrinkets(6,BadEnd) is changed to iftrinkets(6,badend) and it'll target badend, not BadEnd.