Common tasks

Each of these runs after a save has loaded, for example inside Events.WhenReady(() => { ... }).

Give the player half a level of Cooking. Add returns false when the game refuses, for example at the maximum level.

Skills.Add(Skill.Cooking, 0.5f);

Check whether the player is drunk right now.

bool drunk = Effects.IsActive(Effect.Drunk);

Hurt the player. The reason is the kind of damage, and the game’s normal sounds and protection rules apply.

PlayerState.Damage(10f, DamageReason.Fall);

Make the player unkillable for a while. Pass your mod’s id, so your claim does not clash with another mod’s (see Owner), and release it when you are done.

PlayerState.SetGodMode("example.playerbasics", true);
PlayerState.SetGodMode("example.playerbasics", false);

Check a subscription and list the level’s named spawn points, then send the player to one.

bool has = Subscriptions.IsActive("some-id");
foreach (string name in Travel.Entrypoints()) Log.Info(name);
Travel.TeleportTo("some-name");