Kurt J. said: Wolf Thunderspirit said: Kurt J. said: Wolf Thunderspirit said: Need a little help on a script ... dunno what I'm doing wrong. In an undead companion's attack description called "Glare": The mummy uses a random glare on a target that it can see within 60 feet.}} @{Mute Companion|charname_output} !power {{ --tokenid|@{selected|token_id} --emote|Companion Glares ... --leftsub|DC 14 --Random Identifier|[[ [$Rando] 1d4 ]] checking [^Rando] --?? [^Rando] -eq 1 ?? Dreadful Glare|%{-MIU8WnkrC0Uj7YSg5cF|1_Mummy_Glare} --?? [^Rando] -eq 2 ?? Terrifying Glare|%{-MIU8WnkrC0Uj7YSg5cF|2_Mummy_Glare} --?? [^Rando] -eq 3 ?? Cursing Glare|%{-MIU8WnkrC0Uj7YSg5cF|3_Mummy_Glare} --?? [^Rando] -eq 4 ?? Destroying Glare|%{-MIU8WnkrC0Uj7YSg5cF|4_Mummy_Glare} }} ! These are the macros set up on the sheet: 1_Mummy_Glare: --name|Dreadful Glare --rightsub|Constitution Save --!description|The targeted creature must succeed on a DC 14 Constitution saving throw or be paralyzed for 1 minute. ^^ The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. 2_Mummy_Glare: --name|Terrifying Glare --rightsub|Wisdom Save --!description|The targeted creature must succeed on a DC 14 Wisdom saving throw or be frightened for 1 minute. ^^ The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. 3_Mummy_Glare: --name|Cursing Glare --rightsub|Constitution Save --!description|The targeted creature must make a DC 14 Constitution saving throw, taking 8d8 necrotic damage on a failed save, or half as much damage on a successful one. --!Damage|[[8d8]] Necrotic Damage; Half on Save 4_Mummy_Glare: --name|Destroying Glare --rightsub|Dexterity Save --!description|If the target is a creature, it must succeed on a DC 14 Dexterity saving throw or take 10d8 force damage. If this damage reduces the creature to 0 hit points, its body becomes a pile of fine gray dust. ^^ If the target is a Large or smaller nonmagical object or creation of magical force, it is disintegrated without a saving throw. ^^ If the target is a Huge or larger nonmagical object or creation of magical force, this ray disintegrates a 10-foot cube of it. --!Damage|[[10d8]] Force Damage The thing is that it's not outputting anything but the 4th option, even when 1, 2, & 3 are rolled (had to take out the --hroll, replacing with --Random Identifier|[[ [$Rando] 1d4 ]] checking [^Rando], to see what was actually happening behind the scenes) Can anyone tidy this up for me? I think it's just not doing the conditionals right, but I'm missing what I'm doing wrong ... EDIT: I realize now what is happening - beyond the API. It is that the %{character ID|Ability Call} HAS to fire and replaces all before it. In contrast, Something like this won't work because of the reserved tags. The mummy uses a random glare on a target that it can see within 60 feet.}} @{Mute Companion|charname_output} !power {{ --tokenid|@{selected|token_id} --emote|Companion Glares ... --leftsub|DC 14 --Random Identifier|[[ [$Rando] 1d4 ]] checking [^Rando] --?? [^Rando] -eq 1 ?? name|Dreadful Glare --?? [^Rando] -eq 1 ?? rightsub|Constitution Save --?? [^Rando] -eq 1 ?? !description|The targeted creature must succeed on a DC 14 Constitution saving throw or be paralyzed for 1 minute. ^^ The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. --?? [^Rando] -eq 2 ?? name|Terrifying Glare --?? [^Rando] -eq 2 ?? rightsub|Wisdom Save --?? [^Rando] -eq 2 ?? !description|The targeted creature must succeed on a DC 14 Wisdom saving throw or be frightened for 1 minute. ^^ The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. --?? [^Rando] -eq 3 ?? name|Cursing Glare --?? [^Rando] -eq 3 ?? rightsub|Constitution Save --?? [^Rando] -eq 3 ?? !description|The targeted creature must make a DC 14 Constitution saving throw, taking 8d8 necrotic damage on a failed save, or half as much damage on a successful one. --?? [^Rando] -eq 3 ?? !Damage|[[8d8]] Necrotic Damage; Half on Save --?? [^Rando] -eq 4 ?? name|Destroying Glare --?? [^Rando] -eq 4 ?? rightsub|Dexterity Save --?? [^Rando] -eq 4 ?? !description|If the target is a creature, it must succeed on a DC 14 Dexterity saving throw or take 10d8 force damage. If this damage reduces the creature to 0 hit points, its body becomes a pile of fine gray dust. ^^ If the target is a Large or smaller nonmagical object or creation of magical force, it is disintegrated without a saving throw. ^^ If the target is a Huge or larger nonmagical object or creation of magical force, this ray disintegrates a 10-foot cube of it. --?? [^Rando] -eq 4 ?? !Damage|[[10d8]] Force Damage }} ! I'm at a loss what to do here. Any suggestions? You are using expanded conditional operators with normal conditional tags. The ??..?? conditionals use ==, >, >=, etc. The expanded conditionals (?!..!?) are the ones that use "powershell" operators (-eq, -gt, etc.) None of the conditionals will ever fire because none of them will ever be true. But yes, you won't be able to include self-running macros in the powercard because they would have to be expanded by the chat server, and indeed you can't have multiple rightsub, etc. tags. You could have the card output buttons for the macros that you could then click. I'm trying to reduce the number of clicks. Since Powercards is the only API I know of that can use an IF/ THAN conditional, I was hoping to be able to process the variable out of the powercard itself, then be able to call only which one was randomized. Essentially, I just wanted him to be able to click the attack once and have it do what it needs to. I am right in assuming reserved tags can't be used with conditionals, correct? That is correct. @Kurt So - with a little more poking, prodding, plowing through the wiki page, and good ol' trial and error - I got something that works ... Never let it be said it Can't be done! (Just find a different way of doing it...lol) !power {{ --tokenid|@{selected|token_id} --name|Mummy Glare^^[img2](<a href="https://thumbs.gfycat.com/AgitatedPoshEuropeanfiresalamander-max-1mb.gif" rel="nofollow">https://thumbs.gfycat.com/AgitatedPoshEuropeanfiresalamander-max-1mb.gif</a>) --emote|The Companion Glares ... --hroll|[[ [$Rando] 1d4 ]] --?! $Rando -eq 1 !? DC 14 Constitution Save| --?- $Rando -eq 2 -? DC 14 Wisdom Save| --?- $Rando -eq 3 -? DC 14 Constitution Save|^^[[8d8]] Necrotic Damage; Half on Save --?- $Rando -eq 4 -? DC 14 Dexterity Save|^^[[10d8]] Force Damage --?! $Rando -eq 1 !? Dreadful Glare|The targeted creature must succeed on a DC 14 Constitution saving throw or be paralyzed for 1 minute. ^^ The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. --?- $Rando -eq 2 -? Terrifying Glare|The targeted creature must succeed on a DC 14 Wisdom saving throw or be frightened for 1 minute. ^^ The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. --?- $Rando -eq 3 -? Cursing Glare|The targeted creature must make a DC 14 Constitution saving throw, taking 8d8 necrotic damage on a failed save, or half as much damage on a successful one. --?- $Rando -eq 4 -? Destroying Glare|If the target is a creature, it must succeed on a DC 14 Dexterity saving throw or take 10d8 force damage. If this damage reduces the creature to 0 hit points, its body becomes a pile of fine gray dust. ^^ If the target is a Large or smaller nonmagical object or creation of magical force, it is disintegrated without a saving throw. ^^ If the target is a Huge or larger nonmagical object or creation of magical force, this ray disintegrates a 10-foot cube of it. }} Just posting in case its useful as a jumping off point in making randomized single powercards for anyone else. It takes a bit of tweaking, but essentially you are making each consecutive line of if/else statements appear in order, rather than a block, and when you check the random conditional it had to be in a certain format and avoid certain characters ( [ and ] in my case ). And, of course (no matter how nice it would look), no using reserved tags in conditionals :-( I also had a typo on a couple lines. This API is SUPER SENSATIVE regarding typos! Get your syntax right or either crash, or ouput nada. lol But I'm glad to say that this works, and thanks for the API! PS: Here's the funny part ... we think the player I was doing this for quit the group ... *sigh*