Author Topic: iftrinkets won't call script?  (Read 969 times)


  • Crewmate
  • *
  • Posts: 1
    • View Profile
iftrinkets won't call script?
« on: December 30, 2019, 04:36:59 pm »
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?


  • Global Moderator
  • Captain
  • *****
  • Posts: 2190
    • View Profile
    • The Open Level Project
Re: iftrinkets won't call script?
« Reply #1 on: December 30, 2019, 04:42:28 pm »
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.