Author Topic: How do I do Iftrinkets?  (Read 1647 times)

Lollipop

  • Captain
  • *****
  • Posts: 422
  • fornite funnys
    • View Profile
How do I do Iftrinkets?
« on: July 12, 2014, 06:14:59 pm »
I know it's really dumb, but I can't do the if trinkets in the script. Could someone give an
Explanation and an example?

Dav999

  • Global Moderator
  • Captain
  • *****
  • Posts: 2183
    • View Profile
    • The Open Level Project
Re: How do I do Iftrinkets?
« Reply #1 on: July 12, 2014, 07:01:20 pm »
In iftrinkets(a,b), the first argument (a) means the amount of trinkets you need to have collected for the specified script (b) to run.

An example of its use:
iftrinkets(2,cutscene) would run the script called "cutscene" if you have 2 or more trinkets.

Code: (script1) [Select]
say(2)
I will now check if you
you have 3 or more trinkets.

iftrinkets(3,script2)

say(1)
You have less than 3 trinkets.

Code: (script2) [Select]
say(1)
You have 3 or more trinkets!

destroy(gravitylines)

Lollipop

  • Captain
  • *****
  • Posts: 422
  • fornite funnys
    • View Profile
Re: How do I do Iftrinkets?
« Reply #2 on: July 12, 2014, 09:10:31 pm »
In iftrinkets(a,b), the first argument (a) means the amount of trinkets you need to have collected for the specified script (b) to run.

An example of its use:
iftrinkets(2,cutscene) would run the script called "cutscene" if you have 2 or more trinkets.

Code: (script1) [Select]
say(2)
I will now check if you
you have 3 or more trinkets.

iftrinkets(3,script2)

say(1)
You have less than 3 trinkets.

Code: (script2) [Select]
say(1)
You have 3 or more trinkets!

destroy(gravitylines)

Thanks!