From cd3d55aaec578b13ff1754cf80fef9cf90eae00f Mon Sep 17 00:00:00 2001 From: haven1433 Date: Wed, 1 Mar 2023 22:04:15 -0600 Subject: [PATCH] update python tool initial text --- src/HexManiac.Core/ViewModels/Tools/PythonTool.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/HexManiac.Core/ViewModels/Tools/PythonTool.cs b/src/HexManiac.Core/ViewModels/Tools/PythonTool.cs index b755c9ed..f2af743a 100644 --- a/src/HexManiac.Core/ViewModels/Tools/PythonTool.cs +++ b/src/HexManiac.Core/ViewModels/Tools/PythonTool.cs @@ -27,9 +27,13 @@ namespace HavenSoft.HexManiac.Core.ViewModels.Tools { Text = @"print(''' Put python code here. Use 'editor' to access the EditorViewModel. - Use 'table' to access tables from the current tab. + Use a table name to access tables from the current tab. For example, try printing: - table['data.pokemon.names'][1]['name'] + data.pokemon.names[1].name + Or try changing a table using a loop: + + for mon in data.pokemon.stats: + mon.hp = 100 ''')"; }