
Hi all, I've been trying hard to get a nested query to work. Essentially, you should be able to pick a body location which will then based on a damage and penetration imputed will return a final wounds value. The reason the queries are nested is to allow custom text to point to the body part being hit to be displayed. Below is the nested query, trying my best to format it for viewability: ?{Hit Location?|
Head, [[ {[[-@{selected|HArmour}+[[floor(@{selected|Toughness}/10]] ]] + [[?{Penetration?}]], [[0]]}kl1 + ?{Damage?;}]] wounds to the head!|
Body, [[ {[[-@{selected|BArmour}+[[floor(@{selected|Toughness}/10]] ]] + [[?{Penetration?}]], [[0]]}kl1 + ?{Damage?;}]] wounds to the body!
} Even though the nested queries do appear, it's with completely strange behaviour Any help on this? To help out, below is the basic equation I want to be solved within the larger query (the thing that changes is BArmor and 'wounds to the body' between options) [[{[[-@{selected|BArmour}+-floor(@{selected|Toughness}/10)]] + [[?{Penetration?|0}]], [[0]]}kl1 + ?{Damage?|0}]] wounds to the Body!