CollectSwitchCtrl - Lord-G-INC/Modular-PTD GitHub Wiki
Author: Aurum
Purpose
CollectSwitchCtrl activates its SW_A
switch when the defined conditions are met.
Parameters and Setup
Parameter Name | Type | Name | Default Value | Purpose |
---|---|---|---|---|
Obj_arg0 |
int | Item Type | 0 | Item type to check for. |
Obj_arg1 |
int | Item Count | 0 | Target item amount to check for. |
Obj_arg2 |
int | Item Comparator | 0 | Item value operation type. |
Obj_arg3 |
bool | Switch Once? | false | Always check? |
Obj_arg4 |
bool | Clear Star Bits? | false | Clears the player's Star Bits upon stage initialization. |
Obj_arg0
)
Item Types (Type | Target | Extra Requirements |
---|---|---|
0 | Coin | None |
1 | Purple Coins | None |
2 | Star Bits | None |
3 | Power Star Count | None |
4 | Blue Coins | The BlueCoinSystem module |
Obj_arg2
)
Comparator Types (Type | Comparator |
---|---|
0 | (current amount) == Obj_arg1 |
1 | (current amount) < Obj_arg1 |
2 | (current amount) <= Obj_arg1 |
3 | (current amount) > Obj_arg1 |
4 | (current amount) >= Obj_arg1 |
5 | (current amount) != Obj_arg1 |
Obj_arg3
)
Switch Once (This argument makes it so that the CollectSwitchCtrl will deactivate its event if the defined condition is no longer true.