Basically, I'm trying to make a versatile Macro where I can manually input the Property name and manually input a numeric value to increase or lower that Property's value.
I tried a more complicated Macro but it failed then I tried a more simplistic one, that failed as well. From what I gather when I put something like [h:CurrentLimbST=ManualLimbInput] it is taking my Input as just that without trying to see if it is a property or if any value is associated with it.
Code: Select all
[h:status = input(
"LimbSTChange|0|Number of Limb Stabilty",
"TargetLimb|LArm1,LArm2,LArm3,LArm4,LArm5,RArm1,RArm2,RArm3,RArm4,RArm5,LLeg1,LLeg2,LLeg3,LLeg4,LLeg5,RLeg1,RLeg2,RLeg3,RLeg4,RLeg5,LWing1,LWing2,LWing3,LWing4,LWing5,RWing1,RWing2,RWing3,RWing4,RWing5,Tail1,Tail2,Tail3,Tail4,Tail5|Which Limb is being affected?|LIST|SELECT=0 VALUE=STRING",
"lostOrgained|Lost, Gained|Is Limb ST being lost or gained?|RADIO|SELECT=0")]
[h:abort(status)]
[if(lostOrgained == 0),CODE:
{
[h:LimbSTLoss = TargetLimb - LimbSTChange]
[h:CurrentLimbST = max(LimbSTLoss, 0)]
[h:TargetLimb = CurrentLimbST]
[r:token.name] [r:TargetLimb] loses [r:LimbSTChange] ST.
};
{
[h:diff = MaxST - ST]
[h:ST = min(ST+LimbSTChange, MaxST)]
[r:token.name] gains [r:min(diff,LimbSTChange)] ST.
}]
Is there a specific macro option or way to write this which will both bring the Property name and it's Property value so I can use it in the/a Macro? I am quite tired and mentally drained at this point so I wouldn't be surprised if it is something simple that I am not thinking of.
Thank you, in advance.