Hello, This seems like the best place to post my problem, so here it is. I made a powercard for a Wand of Magic Missile, based on an example by Nick Olivo (staff of frost example). It works, but not perfectly. Whatever option I choose (number of charges, so number of magic missiles), the script always ask me for 9 targets (maximum of targets for 7 charges). Is there a way to change the script so that I only have to input the exact number of target I need? Here is the card: !power {{ --name|Wand of Magic Missiles --leftsub|Evocation Spell --rightsub|Range 120 feet --inlinereplace|ChargesOnCharacterSheet|@{repeating_resource_$0_resource_right} --?? ?{Select Action|1 charge,1Charge|2 charges,2Charges|3 charges,3Charges|4 charges,4Charges|5 charges,5Charges|6 charges,6Charges|7 charges,7Charges|Recharge,Recharge} == 1Charge ?? skipTo*1|1Charge --?? ?{Select Action|1 charge,1Charge|2 charges,2Charges|3 charges,3Charges|4 charges,4Charges|5 charges,5Charges|6 charges,6Charges|7 charges,7Charges|Recharge,Recharge} == 2Charges ?? skipTo*2|2Charges --?? ?{Select Action|1 charge,1Charge|2 charges,2Charges|3 charges,3Charges|4 charges,4Charges|5 charges,5Charges|6 charges,6Charges|7 charges,7Charges|Recharge,Recharge} == 3Charges ?? skipTo*3|3Charges --?? ?{Select Action|1 charge,1Charge|2 charges,2Charges|3 charges,3Charges|4 charges,4Charges|5 charges,5Charges|6 charges,6Charges|7 charges,7Charges|Recharge,Recharge} == 4Charges ?? skipTo*4|4Charges --?? ?{Select Action|1 charge,1Charge|2 charges,2Charges|3 charges,3Charges|4 charges,4Charges|5 charges,5Charges|6 charges,6Charges|7 charges,7Charges|Recharge,Recharge} == 5Charges ?? skipTo*5|5Charges --?? ?{Select Action|1 charge,1Charge|2 charges,2Charges|3 charges,3Charges|4 charges,4Charges|5 charges,5Charges|6 charges,6Charges|7 charges,7Charges|Recharge,Recharge} == 6Charges ?? skipTo*6|6Charges --?? ?{Select Action|1 charge,1Charge|2 charges,2Charges|3 charges,3Charges|4 charges,4Charges|5 charges,5Charges|6 charges,6Charges|7 charges,7Charges|Recharge,Recharge} == 7Charges ?? skipTo*7|7Charges --?? ?{Select Action|1 charge,1Charge|2 charges,2Charges|3 charges,3Charges|4 charges,4Charges|5 charges,5Charges|6 charges,6Charges|7 charges,7Charges|Recharge,Recharge} == Recharge ?? skipTo*8|Recharge --:1Charge| --?? ~ChargesOnCharacterSheet$ < 1 ?? skipTo*9|NotEnoughCharges --Spell Cast *1| Magic Missile --Effect *1| You create 3 glowing darts of magical force. --npc_qualities_summary *1|@{selected|character_id} --Missile 1 : *1|[[ [$Dmg1] 1d4+1 ]] vs @{target|1 Target|token_name} --Missile 2 : *2|[[ [$Dmg2] 1d4+1 ]] vs @{target|2 Target|token_name} --Missile 3 : *3|[[ [$Dmg3] 1d4+1 ]] vs @{target|3 Target|token_name} --alterbar1a|_target|@{target|1 Target|token_id} _bar|1 _amount|-[^Dmg1] _show|all --alterbar1b|_target|@{target|2 Target|token_id} _bar|1 _amount|-[^Dmg2] _show|all --alterbar1c|_target|@{target|3 Target|token_id} _bar|1 _amount|-[^Dmg3] _show|all --Charges Spent *1| 1 --api_modattr *1|_silent _charid @{character_id} _repeating_resource_$0_resource_right|-1 --?? ~ChargesOnCharacterSheet$ == 1 ?? skipTo*10|DestructionCheck --skipTo*11|EndOfCard --:2Charges| --?? ~ChargesOnCharacterSheet$ < 2 ?? skipTo*12|NotEnoughCharges --Spell Cast *2| Magic Missile --Effect *2| You create 4 glowing darts of magical force. --npc_qualities_summary *2|@{selected|character_id} --Missile 1 : *4|[[ [$Dmg1] 1d4+1 ]] vs @{target|1 Target|token_name} --Missile 2 : *5|[[ [$Dmg2] 1d4+1 ]] vs @{target|2 Target|token_name} --Missile 3 : *6|[[ [$Dmg3] 1d4+1 ]] vs @{target|3 Target|token_name} --Missile 4 : *7|[[ [$Dmg4] 1d4+1 ]] vs @{target|4 Target|token_name} --alterbar2a|_target|@{target|1 Target|token_id} _bar|1 _amount|-[^Dmg1] _show|all --alterbar2b|_target|@{target|2 Target|token_id} _bar|1 _amount|-[^Dmg2] _show|all --alterbar2c|_target|@{target|3 Target|token_id} _bar|1 _amount|-[^Dmg3] _show|all --alterbar2d|_target|@{target|4 Target|token_id} _bar|1 _amount|-[^Dmg4] _show|all --Charges Spent *2| 2 --api_modattr *2|_silent _charid @{character_id} _repeating_resource_$0_resource_right|-2 --?? ~ChargesOnCharacterSheet$ == 2 ?? skipTo*13|DestructionCheck --skipTo*14|EndOfCard --:3Charges| --?? ~ChargesOnCharacterSheet$ < 3 ?? skipTo*15|NotEnoughCharges --Spell Cast *3| Magic Missile --Effect *3| You create 5 glowing darts of magical force. --npc_qualities_summary *3|@{selected|character_id} --Missile 1 : *8|[[ [$Dmg1] 1d4+1 ]] vs @{target|1 Target|token_name} --Missile 2 : *9|[[ [$Dmg2] 1d4+1 ]] vs @{target|2 Target|token_name} --Missile 3 : *10|[[ [$Dmg3] 1d4+1 ]] vs @{target|3 Target|token_name} --Missile 4 : *11|[[ [$Dmg4] 1d4+1 ]] vs @{target|4 Target|token_name} --Missile 5 : *12|[[ [$Dmg5] 1d4+1 ]] vs @{target|5 Target|token_name} --alterbar3a|_target|@{target|1 Target|token_id} _bar|1 _amount|-[^Dmg1] _show|all --alterbar3b|_target|@{target|2 Target|token_id} _bar|1 _amount|-[^Dmg2] _show|all --alterbar3c|_target|@{target|3 Target|token_id} _bar|1 _amount|-[^Dmg3] _show|all --alterbar3d|_target|@{target|4 Target|token_id} _bar|1 _amount|-[^Dmg4] _show|all --alterbar3e|_target|@{target|5 Target|token_id} _bar|1 _amount|-[^Dmg5] _show|all --Charges Spent *3| 3 --api_modattr *3|_silent _charid @{character_id} _repeating_resource_$0_resource_right|-3 --?? ~ChargesOnCharacterSheet$ == 3 ?? skipTo*16|DestructionCheck --skipTo*17|EndOfCard --:4Charges| --?? ~ChargesOnCharacterSheet$ < 4 ?? skipTo*18|NotEnoughCharges --Spell Cast *4| Magic Missile --Effect *4| You create 6 glowing darts of magical force. --npc_qualities_summary *4|@{selected|character_id} --Missile 1 : *13|[[ [$Dmg1] 1d4+1 ]] vs @{target|1 Target|token_name} --Missile 2 : *14|[[ [$Dmg2] 1d4+1 ]] vs @{target|2 Target|token_name} --Missile 3 : *15|[[ [$Dmg3] 1d4+1 ]] vs @{target|3 Target|token_name} --Missile 4 : *16|[[ [$Dmg4] 1d4+1 ]] vs @{target|4 Target|token_name} --Missile 5 : *17|[[ [$Dmg5] 1d4+1 ]] vs @{target|5 Target|token_name} --Missile 6 : *18|[[ [$Dmg6] 1d4+1 ]] vs @{target|6 Target|token_name} --alterbar4a|_target|@{target|1 Target|token_id} _bar|1 _amount|-[^Dmg1] _show|all --alterbar4b|_target|@{target|2 Target|token_id} _bar|1 _amount|-[^Dmg2] _show|all --alterbar4c|_target|@{target|3 Target|token_id} _bar|1 _amount|-[^Dmg3] _show|all --alterbar4d|_target|@{target|4 Target|token_id} _bar|1 _amount|-[^Dmg4] _show|all --alterbar4e|_target|@{target|5 Target|token_id} _bar|1 _amount|-[^Dmg5] _show|all --alterbar4f|_target|@{target|6 Target|token_id} _bar|1 _amount|-[^Dmg6] _show|all --Charges Spent *4| 4 --api_modattr *4|_silent _charid @{character_id} _repeating_resource_$0_resource_right|-4 --?? ~ChargesOnCharacterSheet$ == 4 ?? skipTo*19|DestructionCheck --skipTo*20|EndOfCard --:5Charges| --?? ~ChargesOnCharacterSheet$ < 5 ?? skipTo*21|NotEnoughCharges --Spell Cast *5| Magic Missile --Effect *5| You create 7 glowing darts of magical force. --npc_qualities_summary *5|@{selected|character_id} --Missile 1 : *19|[[ [$Dmg1] 1d4+1 ]] vs @{target|1 Target|token_name} --Missile 2 : *20|[[ [$Dmg2] 1d4+1 ]] vs @{target|2 Target|token_name} --Missile 3 : *21|[[ [$Dmg3] 1d4+1 ]] vs @{target|3 Target|token_name} --Missile 4 : *22|[[ [$Dmg4] 1d4+1 ]] vs @{target|4 Target|token_name} --Missile 5 : *23|[[ [$Dmg5] 1d4+1 ]] vs @{target|5 Target|token_name} --Missile 6 : *24|[[ [$Dmg6] 1d4+1 ]] vs @{target|6 Target|token_name} --Missile 7 : *25|[[ [$Dmg7] 1d4+1 ]] vs @{target|7 Target|token_name} --alterbar5a|_target|@{target|1 Target|token_id} _bar|1 _amount|-[^Dmg1] _show|all --alterbar5b|_target|@{target|2 Target|token_id} _bar|1 _amount|-[^Dmg2] _show|all --alterbar5c|_target|@{target|3 Target|token_id} _bar|1 _amount|-[^Dmg3] _show|all --alterbar5d|_target|@{target|4 Target|token_id} _bar|1 _amount|-[^Dmg4] _show|all --alterbar5e|_target|@{target|5 Target|token_id} _bar|1 _amount|-[^Dmg5] _show|all --alterbar5f|_target|@{target|6 Target|token_id} _bar|1 _amount|-[^Dmg6] _show|all --alterbar5g|_target|@{target|7 Target|token_id} _bar|1 _amount|-[^Dmg7] _show|all --Charges Spent *5| 5 --api_modattr *5|_silent _charid @{character_id} _repeating_resource_$0_resource_right|-5 --?? ~ChargesOnCharacterSheet$ == 5 ?? skipTo*22|DestructionCheck --skipTo*23|EndOfCard --:6Charges| --?? ~ChargesOnCharacterSheet$ < 6 ?? skipTo*24|NotEnoughCharges --Spell Cast *6| Magic Missile --Effect *6| You create 8 glowing darts of magical force. --npc_qualities_summary *6|@{selected|character_id} --Missile 1 : *26|[[ [$Dmg1] 1d4+1 ]] vs @{target|1 Target|token_name} --Missile 2 : *27|[[ [$Dmg2] 1d4+1 ]] vs @{target|2 Target|token_name} --Missile 3 : *28|[[ [$Dmg3] 1d4+1 ]] vs @{target|3 Target|token_name} --Missile 4 : *29|[[ [$Dmg4] 1d4+1 ]] vs @{target|4 Target|token_name} --Missile 5 : *30|[[ [$Dmg5] 1d4+1 ]] vs @{target|5 Target|token_name} --Missile 6 : *31|[[ [$Dmg6] 1d4+1 ]] vs @{target|6 Target|token_name} --Missile 7 : *32|[[ [$Dmg7] 1d4+1 ]] vs @{target|7 Target|token_name} --Missile 8 : *33|[[ [$Dmg8] 1d4+1 ]] vs @{target|8 Target|token_name} --alterbar6a|_target|@{target|1 Target|token_id} _bar|1 _amount|-[^Dmg1] _show|all --alterbar6b|_target|@{target|2 Target|token_id} _bar|1 _amount|-[^Dmg2] _show|all --alterbar6c|_target|@{target|3 Target|token_id} _bar|1 _amount|-[^Dmg3] _show|all --alterbar6d|_target|@{target|4 Target|token_id} _bar|1 _amount|-[^Dmg4] _show|all --alterbar6e|_target|@{target|5 Target|token_id} _bar|1 _amount|-[^Dmg5] _show|all --alterbar6f|_target|@{target|6 Target|token_id} _bar|1 _amount|-[^Dmg6] _show|all --alterbar6g|_target|@{target|7 Target|token_id} _bar|1 _amount|-[^Dmg7] _show|all --alterbar6h|_target|@{target|8 Target|token_id} _bar|1 _amount|-[^Dmg8] _show|all --Charges Spent *6| 6 --api_modattr *6|_silent _charid @{character_id} _repeating_resource_$0_resource_right|-6 --?? ~ChargesOnCharacterSheet$ == 6 ?? skipTo*25|DestructionCheck --skipTo*26|EndOfCard --:7Charges| --?? ~ChargesOnCharacterSheet$ < 7 ?? skipTo*27|NotEnoughCharges --Spell Cast *7| Magic Missile --Effect *7| You create 9 glowing darts of magical force. --npc_qualities_summary *7|@{selected|character_id} --Missile 1 : *34|[[ [$Dmg1] 1d4+1 ]] vs @{target|1 Target|token_name} --Missile 2 : *35|[[ [$Dmg2] 1d4+1 ]] vs @{target|2 Target|token_name} --Missile 3 : *36|[[ [$Dmg3] 1d4+1 ]] vs @{target|3 Target|token_name} --Missile 4 : *37|[[ [$Dmg4] 1d4+1 ]] vs @{target|4 Target|token_name} --Missile 5 : *38|[[ [$Dmg5] 1d4+1 ]] vs @{target|5 Target|token_name} --Missile 6 : *39|[[ [$Dmg6] 1d4+1 ]] vs @{target|6 Target|token_name} --Missile 7 : *40|[[ [$Dmg7] 1d4+1 ]] vs @{target|7 Target|token_name} --Missile 8 : *41|[[ [$Dmg8] 1d4+1 ]] vs @{target|8 Target|token_name} --Missile 9 : *42|[[ [$Dmg9] 1d4+1 ]] vs @{target|9 Target|token_name} --alterbar7a|_target|@{target|1 Target|token_id} _bar|1 _amount|-[^Dmg1] _show|all --alterbar7b|_target|@{target|2 Target|token_id} _bar|1 _amount|-[^Dmg2] _show|all --alterbar7c|_target|@{target|3 Target|token_id} _bar|1 _amount|-[^Dmg3] _show|all --alterbar7d|_target|@{target|4 Target|token_id} _bar|1 _amount|-[^Dmg4] _show|all --alterbar7e|_target|@{target|5 Target|token_id} _bar|1 _amount|-[^Dmg5] _show|all --alterbar7f|_target|@{target|6 Target|token_id} _bar|1 _amount|-[^Dmg6] _show|all --alterbar7g|_target|@{target|7 Target|token_id} _bar|1 _amount|-[^Dmg7] _show|all --alterbar7h|_target|@{target|8 Target|token_id} _bar|1 _amount|-[^Dmg8] _show|all --alterbar7i|_target|@{target|9 Target|token_id} _bar|1 _amount|-[^Dmg9] _show|all --Charges Spent *7| 7 --api_modattr *7|_silent _charid @{character_id} _repeating_resource_$0_resource_right|-7 --?? ~ChargesOnCharacterSheet$ == 7 ?? skipTo*28|DestructionCheck --skipTo*29|EndOfCard --:Recharge| --Recharge Formula|[[ [XPND] [$RegainedCharges] 1d6+1 + @{repeating_resource_$0_resource_right}]] --?? $RegainedCharges >= 7 ?? api_setattr *5|_silent _charid @{character_id} _repeating_resource_$0_resource_right|7 --?? $RegainedCharges < 7 ?? api_setattr *6|_silent _charid @{character_id} _repeating_resource_$0_resource_right|[^RegainedCharges] --Note *51|The Recharge Formula above is calculated by rolling 1d6+1, and then adding the number of charges the wand currently has (if any). The wand can hold a maximum of 7 charges. If the total number of charges exceeds 7, then the number of charges will be set to 7. --skipTo*30|EndOfCard --:NotEnoughCharges| --Failure|Not enough charges for this option --skipTo*31|EndOfCard --:DestructionCheck| --Warning|All charges used --Destruction Check| [[ [$Dest] 1d20]] --?? $Dest > 1 ?? Safe|The wand is out of charges, but undamaged --?? $Dest == 1 ?? Destroyed|The wand crumbles into ashes and is destroyed! --:EndOfCard| }}