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

[Script] ScriptCards - Thread #2

Thanks, I also needed to remove the space before [$Die]. 
1749756138

Edited 1749756244
<Pats himself on back> Whooo hoo! I'm starting to make some headway in grokking this stuff. I know it's newb level, but I managed to add crit/fail sound triggers to the 5E Action Menu script.  Around line 707 I added this.  Mostly there because it looked like a lot of other roll-based calculations were happening there so the variables would already be "loaded". There could be a better place.    --?[$attack_crit] -eq 1|>audioCrit   --?[$attackRoll.Base] -eq 1|>audioFail At the end I added these at the end... gosubs?   --:audioCrit|   --@roll20AM|_audio,play,nomenu|sfxCrit   --<|     --:audioFail|   --@roll20AM|_audio,play,nomenu|sfxFail   --<|    I'm not sure this was a "good" way to do it, but it worked (After much head scratching and screwing things up, LOL.) In case it helps someone else. I'd appreciate pointers on more elegant methods. ScriptCards roll20AM critical fail sound trigger  5e_Character_Action_Menu.scard  5e_Character_Action_Menu
1749756814

Edited 1749836848
More blabberings... I posted about heals not working on my 5E ActionMenu  script. I was looking at it and this section looks mal-formatted to me, starting at line 954. It is also in the one on the github, not just my copy. Not sure that's any help, but I figured I'd should it out.   --?[&spell_heal] -eq 1|[     --&damageToApply|   --]| (Edited for clarity that I mean the 5E Action Menu script, not some script I created.)
1752616140

Edited 1752616151
Kurt J.
Pro
API Scripter
ScriptCards 3.0.12 is queued for OneClick The latest version of ScriptCards is now queued for inclusion in OneClick. Changes since 3.0.01 include: - Support for Campaign properties "nodeVersion" and "sandboxVersion" to [*C:...] - Added _defaulttoken to the list of fields treated like "bio" fields to allow it to be retrieved. - New string line functions: numbersonly, nonumbers, alphaonly, and numericonly.    Examples given &Test is "-abc123.zyx89":     [&Test(numbersonly)] = 12389     [&Test(nonumbers)] = -abc.zyx     [&Test(alphaonly)] = abczyx     [&Test(numericonly)] = -123.89