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

KittyGame

  • Crewmate
  • *
  • Posts: 1
  • tinyurl.com/IWannaBHG
    • View Profile
iftrinkets won't call script?
« on: December 30, 2019, 08:36:59 AM »
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

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