Hello together, I'm playing MajiMonsters with some newbies and since they have some problems calculating their damage I wanted to write up some macros for them to use. Since I'm not very involved into any kind of programming, I've encountered two difficulties I can't quite figure out: 1. I want a simple 2d6 + character's attribute (in this case 'Magic') + a situationally changeable modifier compared to the enemies discipline score, so i went this way: #Attack
/em : @{selected|character_name} attacks @{target|character_name}:
/r {2d6 +@{selected|magic} +?{Modifier|0}}>@{target|discipline} Since the querry ends at the first closing bracket, I replaced the ones inside the querry with html entities, but everything I get in return is: No attribute was found for @{selected|magic} +?{Modifikator|0}} 2. Okay, here is the big one. Since damage calculation in MajiMonsters factors in a lot of variables, I decided to try a mainly simple choice driven approach (I've inserted a break before every new modifier for clarity: /r ?{Critical?|Yes,1|No,2[Crit!]}d?{Die Type}
+?{Empowered|No,0|Yes,@{selected|grade}d6}
+?{Technique Bonus|Brawn,@{selected|brawn}|Talent,@{selected|talent}|None,0}
+?{Affinity Bonus|Yes,[[@{selected|grade}*2]]|No,0}
+?{Enemy Vulnerable|No,0|Yes,[[@{selected|grade}*2]]} Here I get following response: TypeError: d is undefined I'm very sorry if these questions are pretty dumb, actually these are the first 'complex' macros I'm making, apart from typical 'roll NdX+Y' macros. Thank you for your help and patience ;)