I have been trying for days to figure out how to go about creating a rage tracker, to send it to a variable. Could anyone assist me in this?
I have managed to find the specific bit to probe for, but I can't figure out how to parse it into two separate vars.
What I have is the following:
stats = args.gmcp_args.charstats
As I said above, this returns two bits, both Bleed and Rage. Thank you in advance!
If you write a code, I can send you IG gold.
Comments
Important things to note:
Lua is 1-indexed, JavaScript is 0-indexed. So in Lua you use [1] to refer to the first item in a list; in JavaScript, you use 1 to refer to the second item in a list. If you have a list of entries that are Bleed and then Rage, in Lua you'd use 1 to get Bleed and 2 to get Rage, but in JavaScript you'd use 0 for Bleed and 1 for Rage.
I've assumed the ordering of charstats in the above code. 1 may not be the correct index to use to get the entry for Rage.
That's about as much help as I can give. I've hardly used the Nexus client, so while I can do general JavaScript I don't know the oddities of how coding for Nexus works (by all accounts variables can be a bit awkward in regards to visibility).
Results of disembowel testing | Knight limb counter | GMCP AB files