I've found out the problem. You wrote:
iftrinkets(0,thisisscript)
iftrinkets(1,whatisthis)
This doesn't work, as iftrinkets(X,script) will check if you have X or more trinkets. You always have 0 or more, so iftrinkets(0,script) always loads the script. Try moving iftrinkets(0,thisisscript) below iftrinkets(1,whatisthis) and it should work.