BSet (TeaScript)
Jump to navigation
Jump to search
BSet is a function in TeaScript that allows for flags of object classes to be modified. At the moment, only a few flags of the NPC class can be altered.
Syntax:
call bset(type, ID, FLAG_ID, Param1, Param2, Param3)
| Parameter | Description |
|---|---|
| Type | The object class |
| ID | The ID of the object in the class |
| FlagID | The flag of the object to be altered |
| Param1 | The first parameter of FlagID |
| Param2 | The second parameter of FlagID |
| Param3 | The third parameter of FlagID |
| ID | Description |
|---|---|
| 0 | Unknown |
| 1 | Unknown |
| 2 | NPC Property Settings (General) |
| 138 | Block Collision Detection [Player/NPC] |
"Flag ID" Parameters
Type = 2 | NPC Property Settings (General)
| FlagID | FlagID Desc. | Description | Param1 | Param2 | Param3 |
|---|---|---|---|---|---|
| 1 | Blend Mode | Blend Mode of the NPC |
|
0 | 0 |
| 2 | Brightness | Radius(pixels) of it's illuminating range. | NPC Light Size. | 0 | 0 |
| 3 | Health | Default Health Point of this NPC | NPC Health Amount. | 0 | 0 |
| 4 | FireBallDmg | The damage it will take when it was hit by fireball. | Amount of damage you will receive from the fireball. | 0 | 0 |
| 5 | JumpDmg | The damage it will take when it was hit by player's jump. | Amount of damage you will receive from the Jump. | 0 | 0 |
| 6 | HammerDmg | The damage it will take when it was hit by Hammer. | Amount of damage you will receive from the Hammer. | 0 | 0 |
| 7 | LavaDmg | The damage it will take when it was fall into Lava. | Amount of damage you will receive from the Lava. | 0 | 0 |
| 8 | ShellDmg | The damage it will take when it was hit by Shell. | Amount of damage you will receive from the Shell. | 0 | 0 |
| 9 | ExplosionDmg | The damage it will take when it was bombed. | Amount of damage you will receive from the Explosion. | 0 | 0 |
| 10 | BlockHitDmg | The damage it will take when it was hit by Block. | Amount of damage you will receive from the Block. | 0 | 0 |
| 11 | TailSpinDmg | The damage it will take when it was hit by player's tail spin. | Amount of damage you will receive from the Tail Tanooki/Leaf. | 0 | 0 |
| 12 | Score | How many points the NPC should give you upon its death/collection. |
|
0 | 0 |
| 13 | Liquid Collision | Whether the NPC can interact with liquids of any type. Only works for NPCs that have gravity enabled. By default, most projectile NPCs don't interact with liquids. Setting this to 1 will enable the interaction of liquids with projectile NPCs. | Liquid Collision:
|
0 | 0 |
| 14 | Frozen Timer | How many frames can it be frozen in ice. | Determine NPC freeze time:
|
0 | 0 |
| 16 | NoBlockCollision | Whether this NPC can pass through blocks. | Determines whether the NPC will collide with blocks:
|
0 | 0 |
| 1438 | NPC ID 339 Properties for other NPCs | Makes an NPC of your choice have the same properties as NPC ID 339. Use .advset to adjust the stretched length of the NPC. Use .ivala to adjust the rotation angle of the NPC. Only works when Parallel Execution is disabled. | 38 | 0 | 0 |
| 5438 | CollisionType | Determines the collision type of the NPC. (Disables collision with blocks if used, Enable npc sprite and hitbox rotation using .ivala with a 360 degrees system (45000 = 45°)) | NPC type of collision:
|
0 | 0 |
Type = 138 | Block Collision Detection [Player/NPC]
| FlagID | FlagID Desc. | Param 1 | Param 2 | Param 3 |
|---|---|---|---|---|
| 19 | Slop Plataform (Upper Left) | 0 | 0 | 0 |
| 20 | Slop Plataform (Upper Right) | 0 | 0 | 0 |
| 21 | Slop Plataform (Bottom Left) | 0 | 0 | 0 |
| 22 | Slop Plataform (Bottom Right) | 0 | 0 | 0 |
| 23 | Plataform (Down) | 1 | 0 | 0 |
| 24 | Plataform (Left) | 1 | 0 | 0 |
| 25 | Plataform (Right) | 1 | 0 | 0 |
Oddities and Quirks
Below is a list of certain quirks players have that does not conform to standard behavior or simply other miscellaneous behavior.
- BSet values do not apply to NPC ID 357.