LogoLogo
  • 0. Начало
  • Базовое руководство
    • FAQ
    • Горячие клавиши в Roll20
      • Полезные мелочи в Roll20
    • Использование Журнала (Journal) в Roll20
    • Обзор панели с инструментами
    • Словарь перевода терминологии Roll20
    • Броски костей в Roll20 детальное руководство
      • Советы по поводу настройки бросков костей в Roll20
      • Расширенная логика обработки бросков
    • Макросы
      • Руководство по макросам для игрока
      • Руководство по макросам для игроков
    • Roll templates
    • Токен и его настройка
      • Token Actions Действия токена
      • Действия токенов
    • Untitled
    • Советы по организации рабочего пространства, кнопок у токенов и поля (bar) для кнопок макросов
  • Продвинутое руководство
    • Tricks
    • Пользовательские скрипты bookmarklets
      • Полезные для D&D links
      • Полезные мелочи в Roll20
      • Полезные приемы
      • Полезные ссылки
      • Полезные видео
    • Roll20 API scripts
      • Используемые Roll20 API Scripts
      • Универсальные скрипты
      • Скрипты для 5e shaped
      • Скрипты для 5e OGL
    • Внешние расширения
      • Roll20 Enhanced Suite
      • BetterR20 Script
    • Разработанные макросы
      • poltergeisha roll20 like a pro macros.md
  • 5e shaped
    • Особенности заполнения листа персонажа 5eShaped
    • Руководство Мастера 5e shaped
  • 5e OGL
    • Untitled
    • Руководство Мастера 5e OGL
  • Roll20 Excel companions
    • Roll20 Shaped Character Builder Companion
    • Roll20 NPC Directory Excel Companion
    • Untitled
    • ROLL20CON EPIC SCRIPTS AND MACROS
      • Untitled
    • Пользовательский скрипт Tools5e для Roll20
  • Ссылки
    • DM TOOLKIT & TIPS
    • REFERENCE
    • GENERATORS AND TOOLS
    • GRAPHICS
    • VIDEOS
    • HOMEBREW
    • REDDIT and OTHER
    • INSPIRATION
    • Google Doc with Resources
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Базовое руководство
  2. Броски костей в Roll20 детальное руководство

Советы по поводу настройки бросков костей в Roll20

Conditional Statements (Math Only) Using the multiplicative properties of 0(absorption) and 1(identity) you can write conditional statements for integer values(and to some extent floating point values too) An example of this is the formula "if x greater than or equal to A, then T; else F," where T and F are some values. If x or A are dice rolls, surround them with [[]] inside these formulas. This can be written as a macro with


[[{{x,something-less-than-A}>A}*(T-F) + F]]

Example 1:


[[{{3,0}>2}*(4) + 3]]

Example 2:


[[{{[[1d4]],0}>2}*(4) + 3]]

The above examples will multiply (4) with however many times the statement '{X}>2' was true and add +3 to the result. For example 1 that is true 1 time, since 3 > 2, but 0 [[{{x,something-less-than-A}>[[A+1]]}*(T-F) + F]] (Assuming A is an integer) Alternatively, you can multiply one minus the (x==A) check below with the (x>=A) check above, like so:


[[({{x,something-less-than-A}>A})*(1-{0,floor(1-abs(x-A))}dl1)*(T-F)+F]]

"x equals A" is simpler.


[[({0,floor(1-abs(x-A))}dl1)*(T-F) +F]]

Now for some identities: "x less than A" is the inverse of "x greater than or equal to A," so the conditional can be written as "x greater than or equal to A, then F; else T" using the formulas above. Similarly with "x less than or equal to A" and "x greater than A," as well as with "x not equal to A" and "x equal to A."

PreviousБроски костей в Roll20 детальное руководствоNextРасширенная логика обработки бросков

Last updated 6 years ago

Was this helpful?