The ability that sets its power and toughness is a characteristic-defining ability. This means it applies before any other effects that modify power and/or toughness.

Artwork
Loading artwork…
Shapeshifter
Fifth Edition · #398 · EN
Nonfoil—Foil—
Card rules
As this creature enters, choose a number between 0 and 7.
At the beginning of your upkeep, you may choose a number between 0 and 7.
Shapeshifter's power is equal to the last chosen number and its toughness is equal to 7 minus that number.
*/7-*
Uncommon · Illustrated by Adrian Smith
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker Legal
PreDH Legal
Premodern Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Modern Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
Pioneer Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
The ability that lets you choose a new number is a triggered ability that triggers only once each upkeep.