From b6ed10274ba814142a8c1d0eb3d68169015b1bc6 Mon Sep 17 00:00:00 2001 From: Agent X <44549182+AgentXLP@users.noreply.github.com> Date: Fri, 14 Jun 2024 09:42:18 -0400 Subject: [PATCH] Update MarioState documentation --- docs/lua/guides/mario-state.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/lua/guides/mario-state.md b/docs/lua/guides/mario-state.md index 80f26e9d..7b215e65 100644 --- a/docs/lua/guides/mario-state.md +++ b/docs/lua/guides/mario-state.md @@ -87,9 +87,10 @@ The `MarioState` structure contains 76 different variables, this guide will try |`specialTripleJump`|`integer`|Can be used as a bool, sets whether or not to use the special triple jump unlocked after talking to Yoshi. |`wallNormal`|`Vec3f`|The angle of the current wall on the x, y, and z axis. |`cap`|`integer`|Where Mario's cap is meant to be. Can be on Mario's head, the snowman's head in Snowman's Land, held by Klepto, or on Ukiki's head. +|`dialogID`|`integer`|The id of the current dialog Mario is in. The default value for not being in any dialog is -1. ## Section 3: When should I use `gMarioStates`? -Most of the time you won't be using `gMarioStates[0]` to access your Mario, but rather use a hook. A lot of hooks pass `m` through the function. What does this mean? Well, here is a example with comments to explain it as good as possible: +Most of the time you won't be using `gMarioStates[0]` to access your Mario, but rather use a hook. A lot of hooks pass `m` through the function. What does this mean? Well, here is a example with comments to explain it as well as possible: ```lua -- m here is gMarioStates with the index being 0...16, one of those, so you are not always modifying your own mario.