• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
Gift Box Items

Resource Gift Box Items 1.0

wrigty12

Tester-Coder Hybrid
Member
Joined
Jul 24, 2022
Posts
547
wrigty12 submitted a new resource:

Gift Box Items - A box full of items!

A simple plugin that provides a way to create gift boxes that provide a bunch of items to the player.

Features
  • Customize the item list for each item
  • Weights for items (to allow for rarities)
  • Set how many random items you get from the box
  • Allow/disallow repeat items
Setup and Usage
1) Move the files in the Graphics, PBS, and Plugins folders into your project's respective folders.
2) Open the Gift_Box_Item file in the plugin and edit/add...

Read more about this resource...
 

ardicoozer

Cooltrainer
Member
Joined
Sep 29, 2020
Posts
173
I still confuse how to use this plugins
Can you make a Box can using directly from bag?
Honestly, I don't understand how to use it.
Every I open a Gift item from bag, use command not show..
Only Toss, debug and cancel
 

wrigty12

Tester-Coder Hybrid
Member
Joined
Jul 24, 2022
Posts
547
Are you using the premade items I provide in the plugin, or are you adding new ones and those ones aren't working? If you're making custom ones, make sure you duplicate the UseFromBag handler examples I provide when making your new ones and your item in the PBS has FieldUse = Direct defined.

I'm not doing anything special with the creation of items (that all works the same as any item you would add normally). I just provide a code structure and function to allow for easy to turn regular items into gift boxes.
 
Last edited:

Maurili

Not a scobunny
Member
Joined
Jan 23, 2018
Posts
55
Would it be possible to make an alternative script/ plugin where you dont use items?
E.G. it only activates using the pbOpenGiftBox(item, pulls, pull_count, allow_repeats) command
i want to maybe use it for a game corner thing
 

wrigty12

Tester-Coder Hybrid
Member
Joined
Jul 24, 2022
Posts
547
Would it be possible to make an alternative script/ plugin where you dont use items?
E.G. it only activates using the pbOpenGiftBox(item, pulls, pull_count, allow_repeats) command
i want to maybe use it for a game corner thing
I don't have any plans on doing anything with this plugin besides bug fixes since it was a random one-off for someone. But it sounds like an easy learning experience to try coding that yourself!
 
Back
Top