if (args.gmcp_method == "IRE.Target.Info") { id = args.gmcp_args.id; desc = args.gmcp_args.short_desc; tarhp = args.gmcp_args.hpperc; client.print("ID: " + id + " Tar: " + desc + " HP: " + tarhp); client.set_variable('current-tar-id', id); client.set_variable('current-tar-desc', desc); client.set_variable('current-tar-hp', tarhp); };
Answers
although, I have already looked at those, and am still confused...