Jump to content

One-time Item Pick Up Message

Overview
Creator: Twilight Knight Added: 19 Nov 2020 Tags: Item
Rating[?]: Rating: 4/5 (1 rating)
View Script
Information

Description Setup Reviews Comments

Import the script and select it as pickup script for an item.
Be sure to also include this line somewhere within your script files: "bool itemsObtained[50];"

You need to provide 2 arguments:
  • The string ID of the message to play
  • The type of item (optional)
And 4 things to keep in mind while using this script:
  • If you omit the type, the string will always play.
  • If you set the type to 1 f.e., the string will only play once when first obtaining this type
  • If you set the same type to multiple items, the string will only play once when first obtaining one of this type, though they are different items
  • If there are more than 99 types, you should increase the array length of itemsObtained by changing the number in between the [brackets]