|The total amount of liquid F.L.U.D.D.d has. Max is 1001 and minimum is 1. If set to anything less than 0, it is automatically sets to 0. If se to anything larger than 1000, it caps at 10000. 500 units are used per max F.L.U.D.D.d use.

+

|The total amount of liquid F.L.U.D.D. has. Max is 1001 and minimum is 1. If set to anything less than 0, it is automatically sets to 0. If se to anything larger than 1000, it caps at 10000. 500 units are used per max F.L.U.D.D. use.

|-

|-

|<code>Brightness</code>

|<code>Brightness</code>

Revision as of 18:25, 24 May 2019

Char is a class in TeaScript.vbs that allows you to read/write values for the player.

To read the value of Char use:

Char(id).name

id stands for the player (1: player 1; 2: player 2). Note: the name is not case sensitive.

To change the value of Char use:

Char(id).name=value

Name

Description

X

The X-scene coordinate of the player.

Y

The Y-scene coordinate of the player.

Xsp

The X-speed of the player.

Ysp

The Y-speed of the player.

id

The current character

0: Mario

1: Luigi

2: Peach

3: Toad

4: Link

Status

The current power-up of the player.

1: Small

2: Mushroom

3: Fire Flower

4: Leaf

5: Tanooki Suit

6: Hammer Suit

7: Ice Flower

8: Frog Suit

9: Blue Shell

10: Propeller Suit

11: Mini Mushroom

12: Penguin Suit

ItemSlot

0: None

-150: Fairy

-20: Coin Box

-19: Cannon Box

-18: Propeller Box

-17: Spiny Helmet

-16: Goomba Hat

-15: Buzzy Helmet

-14: Invisible mask

-13: Rocket F.L.U.D.D.

-12: Turbo F.L.U.D.D.

-11: Hover F.L.U.D.D.

-10: Makes the player invisible

-9: Makes the player invisible

-8: Makes the player invisible

-7: Makes the player invisible

-6: Makes the player invisible

-5: Mega Mushroom

-4: Clown Car

-3: Lakitu's Shoe

-2: Fire's Shoe

-1: Kuribo's Shoe

1: Green Yoshi

2: Blue Yoshi

3: Yellow Yoshi

4: Red Yoshi

5: Black Yoshi

6: Purple Yoshi

7: Pink Yoshi

8: Cyan Yoshi

Setting an invalid number can crash the game.

ItemRsrv

This is the value of the NPC ID in the player's reserve box. Use 0 to empty the reserve box. Unused with Toad, Peach, and Link. Setting an invalid ID crashed the game.

InvTime

The invincibility timer for a star. When the value is larger than 0, it decreases by one every frame, until it reaches 0. The timer will not move if set to a negative number. Note: collecting an invincibility star sets this value to 800.

HitPoint

The amount of hearts the player has. Only used with Toad, Peach, and Link. Note: if you set the amount of hearts more than 3 or less than 0, the game will still remember that value, and setting this less than 0 does not kill the player.

Facing

The side the player is facing. 1: Left; 2: Right. Note: can be temporarily overridden using a spin jump.

bombcnt

The number of bombs the player has primarily used in Link. Can be used to force the counter to show up for the other players, but the only Link can use the bombs. If set to a negative number, the game will save that number and the player needs to collect more bombs until it reaches 0.

keycnt

The number of keys the player has primarily used in Link. If set to a negative number, the player can't collect keys anymore.

fluddcap

The total amount of liquid F.L.U.D.D. has. Max is 1001 and minimum is 1. If set to anything less than 0, it is automatically sets to 0. If se to anything larger than 1000, it caps at 10000. 500 units are used per max F.L.U.D.D. use.

Brightness

The radius of light made when using sysval(EnableLighting). The unit is in pixels. Making this value 0, or a negative number will cause the player to not emit light.