
So, basic request that I just cant seem to figure out, mostly because I don't know the proper call/send lines for this. I know basic(oh boy do I mean basic) Java so I know the essential idea I want, I just don't know how to do it myself and I've never seen one like it before.
All I want is to be able to toggle the value of an attribute with a single button. My party has about a half dozen toggle-stat items a piece, and having an on and off button for all of them makes their macro lists a mile long.
Here's what I'm looking for type deal.
!toggle [toggleName] [number] [attribute]
Ex. !toggle Keeyaw 7 AC (the number can be either negative or positive depending on what you want the initial effect to be)
Our fighter has a toggleable shield that he can turn on and off as a swift action. This is so he can do things like a 2-handed power attack. I was thinking of building something along the lines of
Check to see if a character has an attribute named toggleName (In this example Keeyaw)
If they do see if it's value is either true or false
If value is false, set to true and multiply number by 1.
If value if true, set to false and multiply number by -1.
Take new multiplied number and add it to the attribute. Therefore increasing or decreasing the attribute by a set amount.
Something like this is pretty simple to put together for like basic Java, but once I get into the calls and stuff for API it goes way over my head. Could someone help me out?
All I want is to be able to toggle the value of an attribute with a single button. My party has about a half dozen toggle-stat items a piece, and having an on and off button for all of them makes their macro lists a mile long.
Here's what I'm looking for type deal.
!toggle [toggleName] [number] [attribute]
Ex. !toggle Keeyaw 7 AC (the number can be either negative or positive depending on what you want the initial effect to be)
Our fighter has a toggleable shield that he can turn on and off as a swift action. This is so he can do things like a 2-handed power attack. I was thinking of building something along the lines of
Check to see if a character has an attribute named toggleName (In this example Keeyaw)
If they do see if it's value is either true or false
If value is false, set to true and multiply number by 1.
If value if true, set to false and multiply number by -1.
Take new multiplied number and add it to the attribute. Therefore increasing or decreasing the attribute by a set amount.
Something like this is pretty simple to put together for like basic Java, but once I get into the calls and stuff for API it goes way over my head. Could someone help me out?