You can't write into global variables that have been created in func _ready() -> void:, but you can write into variables that have been made before that The staminometer broke though
I love developing with Godot when you add a variable => the entire project stops working => you revert the changes and it still doesn't work Before it could write to the variable but now it suddenly can't