Silvyre said: Unique [$RollIDs] can only be defined once within a macro; they cannot
be defined by the outcome of conditionals. Here is a macro that works around this: !power {{
--whisper|GM, @{character_name}
--hroll|?{Difficulty|Harassment,2|Public Insult,3|Sight or Smell of Blood,4|Taste of Blood,5|Attacked or Betrayed,5|Betrayed by a Loved One,7|Love One Slain,10}
--?? ?{Difficulty} == 2 ?? Harassment|
--?? ?{Difficulty} == 3 ?? Public Insult|
--?? ?{Difficulty} == 4 ?? Sight or Smell of Blood|
--?? ?{Difficulty} == 5 ?? Taste of Blood/Attacked or Betrayed|
--?? ?{Difficulty} == 7 ?? Betrayed by a Loved One|
--?? ?{Difficulty} == 10 ?? Love One Slain|
--Roll|[[ [$Fre] (@{S_I} + @{WP})d10>?{Difficulty}f1 + ?{Willpower|0} ]]
--?? $Fre.total < 1 ?? !Result|@{character_name} loses control and frenzies !!
--?? $Fre.total > 0 ?? !Result|@{character_name} controls the Beast... for now.
--Willpower Spent| ?{Willpower}
--Difficulty|Depends on cause
}}
Alternatively, this macro separates the two Difficulty 5 options: !power {{
--whisper|GM, @{character_name}
--hroll|?{Difficulty|
Harassment, [Harassment](2) |
Public Insult, [Public Insult](3) |
Sight or Smell of Blood, [Sight or Smell of Blood](4) |
Taste of Blood, [Taste of Blood](5) |
Attacked or Betrayed, [Attacked or Betrayed](5) |
Betrayed by a Loved One, [Betrayed by a Loved One](7) |
Love One Slain, [Love One Slain](10)
}
--?{Difficulty}|[[ [$Fre] (@{S_I} + @{WP})d10>[[ ?{Difficulty} + {0} ]]f1 + ?{Willpower|0} ]]
--?? $Fre.total < 1 ?? !Result|@{character_name} loses control and frenzies !!
--?? $Fre.total > 0 ?? !Result|@{character_name} controls the Beast... for now.
--Willpower Spent| ?{Willpower}
--Difficulty|Depends on cause
}} That worked like a charm. You guys give great support to your Scripts and are awesome. Now if this was all written in an older language (Basic, VB) then I could do it myself, but I have been out of the programming world for a loooong time. I did have one other question. I am incorporating sounds from !roll20AM script (which I believe Power Cards supports) but can't get the sound to play after a specific line of code. Basically I am trying to add the following command after the "loses control and frenzies" line above. --soundfx|--play,Main|Frenzy The command itself works fine, but when I add it to the 'frenzy' line it comes out as text. I'm sure I'm doing something wrong.