I have a homebrew resource system that I am trying to create a macro for. This system allows the player to use their mental strength to transfer energy between a source and a target. The amount of energy they can move is a non linear curve based on the amount of mental strength they put into it. You roll a number of d20's such that you can just get the source number, so ceil(sourcenumber/20) this number, capped at the source amount, is how much you apply to your target. I have a query that functionally does what I need it to, but I want the player to know what their max draw from the source is while in the drop down. Which means having my equation for max draw based on mental strength in the query name. Looks like this: "Max draw of [[equation]] ____"
Here is my query(I have this in the abilities section of a character):
/em @{character_name} uses [[?{Alar amount|}]] Alar to draw ([[ ?{Max Draw of [[?{Alar amount|}*?{Alar amount|}-?{Alar amount|}+4]]|} ]]/[[?{Alar amount|}*?{Alar amount|}-?{Alar amount|}+4]] max) Au of energy from the source and apply [[ { [[[[ceil([[?{Alar amount|}*?{Alar amount|}-?{Alar amount|}+4]]/20)]]d20]], ?{Max Draw of [[?{Alar amount|}*?{Alar amount|}-?{Alar amount|}+4]]|}}kl1 ]] Au of energy to the target.
Here is my query(I have this in the abilities section of a character):
/em @{character_name} uses [[?{Alar amount|}]] Alar to draw ([[ ?{Max Draw of [[?{Alar amount|}*?{Alar amount|}-?{Alar amount|}+4]]|} ]]/[[?{Alar amount|}*?{Alar amount|}-?{Alar amount|}+4]] max) Au of energy from the source and apply [[ { [[[[ceil([[?{Alar amount|}*?{Alar amount|}-?{Alar amount|}+4]]/20)]]d20]], ?{Max Draw of [[?{Alar amount|}*?{Alar amount|}-?{Alar amount|}+4]]|}}kl1 ]] Au of energy to the target.