Difference between revisions of "Char (TeaScript)"
|Line 154:||Line 154:|
|The total amount of liquid F.L.U.D.D.
|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.
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
id stands for the player (1: player 1; 2: player 2). Note: the name is not case sensitive.
To change the value of
Char(id).name = value
||The X-scene coordinate of the player.|
||The Y-scene coordinate of the player.|
||The X-speed of the player.|
||The Y-speed of the player.|
||The current character
||The current power-up of the player.
3: Fire Flower
5: Tanooki Suit
6: Hammer Suit
7: Ice Flower
8: Frog Suit
9: Blue Shell
10: Propeller Suit
11: Mini Mushroom
12: Penguin Suit
-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.
||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.|
||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.|
||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.|
||The side the player is facing. 1: Left; 2: Right. Note: can be temporarily overridden using a spin jump.|
||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.|
||The number of keys the player has primarily used in Link. If set to a negative number, the player can't collect keys anymore.|
||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.|
||The radius of light made when using |
||The width of the player's hitbox.|
||The height of the player's hitbox.|
||The flight timer for raccoon leaf and tanooki suit.|