Docs/NPC Info

From Sunshine Wiki
Jump to navigation Jump to search

General Info[edit]

Chucking[edit]

NPCs all have a flag you can set in their stage parameters that will change the type of NPC they are. 0 defines a normal NPC, 1 defines an NPC that throws Mario after their text box ends. Only Piantas have unique animations for throwing Mario.

Coloring[edit]

Material names on models are read by the game and colored in by reading pointers to where color info begins in the DOL. Each color entry is 8 bytes long (RGBA), the first byte for a color channel is the render type and the second is the color value. These color entries are chosen through the NPC's stage parameters. However the game never stops reading for color info and keeps going past the end of the color entries, creating garbage colors from existing info in the DOL. NPCs have 5 color params: Body Color, Clothes Color, and three accessory color params.

Action[edit]

This variable sets which action the NPC does as a default. Some actions specify what happens when the character is moving along a rail (otherwise the NPC will default to a walking animation). Special NPCs will also do their specific actions no matter the value.

Value Pianta Noki Toadstool
0 Basic Stand Basic Stand Basic Stand
1 Sitting Sitting Sitting
2 Looking Up
  • Males cover eyes with right hand
  • Females cover eyes with both hands
Walking Running
3 Looking Down
  • Males bob with hands on hip
  • Females have both arms open
Running Talking
4 Talking
  • Males beckon right hand
  • Females beckon both hands
Talking Sitting & Talking
5 Sitting & Talking
  • Both raise and drop arms
Sitting & Talking
  • Males wave with right arm
  • Females wave with left arm
Walking
6 Walking NULL Walking & Stopping
7 Running Dancing
  • Males toe tap dance
  • Females sway side to side
Running & Stopping
8 Angry NULL Worried
9 Playing Ukulele (NPCMonteMH) Ride Jellyfish (NPCMareMA/WA) Worried Sitting
10 Hula Dance (NPCMonteWC) Holding Baby (NPCMareWB) Worried Running
11 Dancing Walking & Stopping Worried Talking
12 Swimming (NPCMonteMF) Running & Stopping Worried Sitting & Talking
13 Walking & Stopping NULL Worried Walking
14 Walking & Stopping to Look Up talking?? Worried Walking & Stopping
15 Walking & Stopping to Look Down Playing Shell Flute (NPCMareMD) Worried Running & Stopping
16 Walking & Stopping to Talk Looking Up
17 Running & Stopping
18 Running & Stopping to Look Up
19 Running & Stopping to Look Down
20 Running & Stopping to Talk
21 Walking & Playing Ukulele (NPCMonteMH)
22 Mopping (NPCMonteMG)
23 Holding Sign (For Females)
24 Caught on Fire (For Males)
120 Standing Still ? ?

Body Colors[edit]

Toad[edit]

Male Pianta[edit]

Normal[edit]

Color 10 is a garbage color, only seen used in pre-release

Suit[edit]

The suit Pianta NPCMonteMB has its own color variants separate from the others

Female Pianta[edit]

Color 6 is a garbage color, only seen used in pre-release

Male Noki[edit]

Female Noki[edit]

Clothes Colors[edit]

Toad[edit]

Tanooki[edit]

Male Pianta[edit]

Aloha Shirt[edit]

Suit[edit]

Round Collar Shirt[edit]

Tank Top[edit]

Female Pianta[edit]

Muumuu[edit]

T-shirt[edit]

Accessories[edit]

Accessories are added based on a geometric sequence. Each new common ratio the set will reset and add a new accessory. Using basic math, you are able to setup an NPC with the preferred accessories you desire (WARNING: accessories can overlap and all rely on the same color params, so be careful)

Toad[edit]

Value Added
0 Nothing
1 Sunglasses

Toadsworth[edit]

Value Added
0 Nothing
1 Staff

Princess Peach[edit]

Value Added
0 Nothing
1 Normal Hair
2 NOTHING
4 NOTHING
8 Ponytail
16 Parasol

Tanooki[edit]

Value Added
0 Nothing
1 Lifesaver

Male Pianta[edit]

Value Added
0 Nothing
1 Hat
2 Mustache
4 Sunglasses
8 Glasses
16 Straw Hat
32 Sailor Cap
64 Shine Cap
128 Bell-boy Cap
256 Backwards Cap
512 Neckerchief
1024 Bowtie
2048 Backpack (MonteM-ME)
2048 Duck Floaty (MonteMF)
2048 Mop (MonteMG)
2048 Ukulele (MonteMH)

Female Pianta[edit]

Value Added
0 Nothing
1 Flower
2 Hat
4 Glasses
8 Right Sign
16 Left Sign
32 Flower Crown (MonteWC)
64 Right Bracelet (MonteWC)
128 Left Bracelet (MonteWC)

Male Noki[edit]

For MareMA, the jellyfish is added upon going above 0

Value Added
0 Nothing
1 Scallop
2 Sundial
4 NOTHING
8 Babylon
16 Shell 1
32 Shell 2
64 Glasses
128 Bivalve (Shell 3)
256 Elder Set (MareMB)
256 Park Hat (MareMC)
256 Flute (MareMD)
512 Fishing Pole (MareMB)
512 Goatee (MareMC)
1024 Mustache (MareMC)

Female Noki[edit]

For MareWA, the jellyfish is added upon going above 0

Value Added
0 Nothing
1 Pearl
2 Hat
4 NOTHING
8 NOTHING
16 Shell 1
32 Shell 2
64 NOTHING
128 NOTHING
256 Bivalve (Shell 3)
512 Babylons
1024 Baby (MareWB)

Accessory Colors[edit]

Tanooki[edit]

Male Pianta[edit]

Color Param 1[edit]

Hat[edit]

Straw Hat[edit]

Sailor Cap[edit]

Shine Cap[edit]

Bell-boy Cap[edit]

Backwards Cap[edit]

Color Param 2[edit]

Mustache[edit]

Neckerchief[edit]

Color Param 3[edit]

Glasses[edit]

Other[edit]

The Bowtie is affected by coloring under Color Param 1, though it has no extra colors

Female Pianta[edit]

Color Param 1[edit]

Hat[edit]

Color Param 2[edit]

Flower[edit]

Color Param 3[edit]

Glasses[edit]

Colors 3 and 4 are garbage colors, though despite this color 4 is used in-game technically making color 3 "unused"

Male Noki[edit]

Color Param 1[edit]

Scallop[edit]

Sundial[edit]

Babylon[edit]

Color Param 2[edit]

Shell 1[edit]

Shell 2[edit]

Bivalve (Shell 3)[edit]

Color Param 3[edit]

Glasses[edit]

Other[edit]

The following accessories are affected by coloring but do not have extra colors:

  • Fishing Pole Color Param 1
  • Elder Set Color Param 3
  • Mustache Color Param 1
  • Goatee Color Param 1
  • Park Hat Color Param 1
  • Flute Color Param 3

Female Noki[edit]

Color Param 1[edit]

Pearl[edit]

Hat[edit]

Babylons[edit]

Color Param 2[edit]

Shell 1[edit]

Shell 2[edit]

Bivalve (Shell 3)[edit]

Other[edit]

The Baby is affected by Color Param 3 but does not have any extra colors