Resource icon

[Open Assets] Item Rain v2.3

I made sure my file(s) follow the Submissions Guidelines
  1. Yes
This is a script which causes items to randomly appear around the course. The item limit, rate at which items appear, types of items that can appear (this is separate from the items you can get from boxes!), and some other behaviors can be customized. Additionally, it includes a new mechanic that can be enabled or disabled separately: boxstacking.

During a free race, items other than sneakers will not rain, and items will spawn closer than normal in battle mode.

Tested in singleplayer and 4-player offline multiplayer, both battle and race modes.

Console Variables
ir_mode
"Race" by default.
You can enable the script across both modes, in battle only or race only, or disable it entirely.

ir_traps
Off by default.
If "on", certain items will transform into hazards when rained.

ir_limit
90 by default.
Limits how many rain items are allowed to exist at one time.

ir_limit_spb
2 by default.
Limits how many rain SPBs are allowed to exist at one time.

ir_lifetime
1400 ticks (40 seconds) by default.
Determines the number of ticks before a rained item is destroyed.

ir_delay
13 ticks (~0.37 seconds) by default.
Determines the number of ticks required between each rained item.

ir_startup
70 ticks (2 seconds) by default.
Determines the number of ticks required before item rain begins.

ir_pickups
"Vanilla" by default.
If "none", item boxes will be destroyed. If switched back to any other mode, the destroyed item boxes will not return until the next map. Use "Stack" to enable box stacking!

Console Commands
ir_additem (item ID, trap ID, minimum from rain, maximum from rain, rain rarity, minimum from boxstacking, maximum from boxstacking, boxstacking rarity)
Defines a new rainable item.

ir_preset
Uses one of my presets for rainable items. Descriptions are as follows:
  • none - use this as a basis for custom item rain tables!
  • vanilla - all items will rain, and boxstacking will often fail to yield stacks for powerful items. the default.
  • mint - all items will rain, some items have very annoying trap forms, and boxstacking is consistent.
  • neapolitan - all items will rain with maximum stacks, some items have very annoying trap forms, and boxstacking is POWERFUL.
  • strawberry - speed-boosting items only.
  • chocolate - attack items only.
  • banana - all bananas, all the time.
  • rockyroad - enable traps and Chao Garden fruit will rain down to block your path!
  • superman - enable traps and red, yellow, or blue springs will appear on the course!
  • soap - sinks only.

Mod Support
Item Rain makes some of its variables global to allow other Lua scripts to insert their own item rain definitions. Review the script for a brief explanation of how to use this functionality.
  • kart0000.png
    kart0000.png
    454.1 KB · Views: 280
Author
Togen
Downloads
697
Views
2,129
Extension type
lua
File size
22 KB
MD5 Hash
5ee11f346d814b8c48ab265ccd7db6c4
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Togen

Share this resource

Latest updates

  1. Sinkholes begone

    I am pleased to announce that random objects/states will no longer be transformed into sinks...
Back
Top