Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Macro to Power Card Help request

Hello Everyone, I have been trying my hand at converting some of my generic macro templates into Power Cards  and not making a great deal of progress. I GM for a palladium game system (Robotech), and have been using generic Character Sheets that are very basic (Weapons stats can not be called out).  So anyway below is one of my missile macro's.  Now I am trying to convert this Template/macro format into a Power Card.  This is what I have come up with so far, and can not see my errors (not that I know what to look for yet, still learning). !power {{ --emote|Armoured panels on @{selected|character_name}’s Officers Pod open between the machine’s shoulders, with a roar mini missiles are launched! --Action|@{selected|character_name} shoots @{target|token_name} -- name|RDS-10 Mini-Missile Launcher ^^ @{selected| character_name} --txcolor|#EAEDED --bgcolor|#791B24 --leftsub|Ranged --rightsub|Attack --Effect:|_HEAP missile contrails streak away from the Officers Pod to it's target!_   erowbg|#D5D8DC --orowbg|#ABB2B9 --Attack:|= [[(1d20cf<4+?{Strike Modifier|0}]] --Range:|=1 Mile. --Blast:|=3 foot Radius. --Payload Max:=20 Missiles. --?? $HEAP Mini Missile == 1 ?? |~C//**1 HEAP Mini Missile**~C --?? $HEAP Mini Missile == 2 ?? |~C//**2 HEAP Mini Missile**~C --?? $HEAP Mini Missile == 3 ?? |~C//**4 HEAP Mini Missile**~C --?? $HEAP Mini Missile == 4 ?? |~C//**4 HEAP Mini Missile**~C --?? $HEAP Mini Missile == 5 ?? |~C//**10 HEAP Mini Missile**~C --?? $HEAP Mini Missile == 6 ?? |~C//**20 HEAP Mini Missile**~C --hroll|[[ [$HEAP Mini Missile] ?{Effect| 1 HEAP Mini Missile, 1|2 HEAP Mini Missile, 2|4 HEAP Mini Missile, 3|5 HEAP Mini Missile, 4|10 HEAP Mini Missile, 5|20 HEAP Mini Missile, 6} +0D0]] --?? $HEAP Mini Missile == 1 ?? Damage:|**[[1d4*10]] M.D. ** --?? $HEAP Mini Missile == 2 ?? Damage:|**[[2d4*10]] M.D. ** --?? $HEAP Mini Missile == 3 ?? Damage:|**[[4d4*10]] M.D. ** --?? $HEAP Mini Missile == 4 ?? Damage:|**[[5d4*10]] M.D. ** --?? $HEAP Mini Missile == 5 ?? Damage:|**[[10d4*10]] M.D. ** --?? $HEAP Mini Missile == 6 ?? Damage:|**[[20d4*10]] M.D. ** }} Would appreciate any help please.
1574179896
Ziechael
Forum Champion
Sheet Author
API Scripter
Quick glance while in a meeting... Your roll tag looks funky to me, try using the below as your hroll line: --hroll|[[ [$HEAP] ?{Effect| 1 HEAP Mini Missile, 1|2 HEAP Mini Missile, 2|4 HEAP Mini Missile, 3|5 HEAP Mini Missile, 4|10 HEAP Mini Missile, 5|20 HEAP Mini Missile, 6} +0D0]]
1574258112

Edited 1574259085
Sometimes before I group it together for an inline use, I like to spread it out until complete. Took another look after I broke it down 1) there was a space in one of the @{selected | c haracter_name} 2) noticed missing -- for even row color tag 3) Missing end parenthesis in Attack macro moved it around the query 4) Ziechael was correct, it didn't like the HEAP Mini Missile   change it to HEAP 5) It also does not like the same IF THEN call outs...       --?? $HEAP Mini Missile == 1 ?? |~C//**1 HEAP Mini Missile**~C      --?? $HEAP Mini Missile == 1 ?? Damage:|**[[1d4*10]] M.D. ** (Took me some time to get use to not doing that as well....lol) So I kind of combined them all into same IF THEN statement !power {{ --emote|Armoured panels on @{selected|character_name}’s Officers Pod open between the machine’s shoulders, with a roar mini missiles are launched! --Action|@{selected|character_name} shoots @{target|token_name} --name|RDS-10 Mini-Missile Launcher ^^ @{selected|character_name} --txcolor|#EAEDED --bgcolor|#791B24 --leftsub|Ranged --rightsub|Attack --Effect:|_HEAP missile contrails streak away from the Officers Pod to it's target!_   --erowbg|#D5D8DC --orowbg|#ABB2B9 --Attack:|= [[1d20cf<4+(?{Strike Modifier|0})]] --Range:|=1 Mile. --Blast:|=3 foot Radius. --Payload Max:|=20 Missiles. --hroll|[[ [$HEAP] ?{Effect| 1 HEAP, 1|2 HEAP, 2|4 HEAP, 3|5 HEAP, 4|10 HEAP, 5|20 HEAP Mini Missile, 6} +0D0]] --?? $HEAP.total == 1 ?? |~C **1 HEAP Mini Missile** ~C^^Damage: **[[1d4*10]] M.D. ** --?? $HEAP.total == 2 ?? |~C **2 HEAP Mini Missile** ~C^^Damage: **[[2d4*10]] M.D. ** --?? $HEAP.total == 3 ?? |~C **4 HEAP Mini Missile** ~C^^Damage: **[[4d4*10]] M.D. ** --?? $HEAP.total == 4 ?? |~C **4 HEAP Mini Missile** ~C^^Damage: **[[5d4*10]] M.D. ** --?? $HEAP.total == 5 ?? |~C **10 HEAP Mini Missile** ~C^^Damage: **[[10d4*10]] M.D. ** --?? $HEAP.total == 6 ?? |~C **20 HEAP Mini Missile** ~C^^Damage: **[[20d4*10]] M.D. ** }}
Thank you both very much! Had been trying to use a Healing potion coding as my design basis, hence the confused formatting of my attempt. Thank you for cleaning/fixing that for me BilBo 2, really appreciated. Crashed my API script a couple of times as I tried different things to "fix" my work. Works really well now, :D
:)