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

Hexploration Macro and math help

1586805484

Edited 1586805536
I am trying to get a macro running in my hexploration game, but for the life of me I cant seem to get math to calculate in the roll20 macro system. The macro is for calculating distance traveled while considering random variables, the pressence of certain obstacles such as terrain, and random occurences like weather /w gm ?{careful, walking, or hustle? miles per hour |1|3|6}*((5d3)*(1/10))*?{easy, medium, hard, or extreme terrain? |1|3/4|1/2|1/4}*?{Conditions modifier|3/4|1/2|1/4|1/10} This is what I've got so far and I dont even have it close to working as far as I can tell. Any assistance would be dearly appreciated.
I reformatted a little to give more tooltip info on mousing over the roll, and someone else can pobably make it even cleaner, but try this:  /w gm [[?{Pace?|Careful, 1 [Careful pace] |Walking, 3 [Walking pace] |Hustle, 6 [Hustle pace]}  * ?{Terrain grade? |Easy,1 [Easy terrain]|Normal, 3/4 [Normal terrain]|Difficult, 1/2[Difficult terrain]|Harsh, 1/4 [Harsh terrain]} * ?{Conditions modifier|Good, 3/4 [Good conditions]|Normal, 1/2 [Normal conditions]|Difficult, 1/4 [Difficult conditions]|Harsh, 1/10 [Harsh conditions]} * [[5d3 / 10]] [Randomizer] ]] miles per hour  
Oh my god your a saint. I'd almost given up on getting this to work. I'm gonna spend quite a bit of time unpacking how you got it to work. Seriously, I thank you profusely.
1587222476

Edited 1587222670
Here is the finished hexploration macro im gonna use for my game. Learned a lot from picking through your macro W. Thanks again. the ugly veer line is just because im using a table for that bit. /em TRAVEL /w gm ?{DC?|Destination has a clear road trail or wellmarked path leading to it, No navigation DC |Destination lacks a path but is in open terrain, Navigation DC10 |Destination lacks a path but is in dense terrain such as forest or mountains, Navigation DC15|Destination is hidden with active efforts made to conceal its existence through mundane means, Navigation DC20|Destination is hidden using illusions or other magic, Navigation DC25|Destination is hidden using powerful magic such as a regional effect that causes a forests trees to slowly shift and force characters onto the wrong path, Navigation DC30} /w gm Navigation Roll:[[1d20+?{modifier?|0}]] /w gm [[1d10]] = veer 1234left 56straight 78910right /em DISTANCE /w gm [[?{Pace?|Careful, 1 [Careful pace] |Walking, 3 [Walking pace] |Hustle, 6 [Hustle pace]} * ?{Terrain grade? |Easy,1 [Easy terrain]|Normal, 3/4 [Normal terrain]|Difficult, 1/2[Difficult terrain]|Harsh, 1/4 [Harsh terrain]} * ?{Conditions modifier|Good, 3/4 [Good conditions]|Normal, 1/2 [Normal conditions]|Difficult, 1/4 [Difficult conditions]|Harsh, 1/10 [Harsh conditions]} * [[5d3 / 10]] [Randomizer] ]] miles per hour /em ENCOUNTER /w gm ?{Chance of combat encounter|Safe, No Encounter|Low,Encounter if 1=[[1d10]]|Moderate,Encounter if 1=[[1d6]]|Considerable,Encounter if 1=[[1d4]]|High,Encounter if 1=[[1d2]]|Extreme, Encounter Occurs}
Nice!&nbsp; I am pretty new, too, and just saw something I thought I could manage.&nbsp; Glad it helped.&nbsp; Also check out&nbsp; <a href="https://wiki.roll20.net/Rollable_Tables" rel="nofollow">https://wiki.roll20.net/Rollable_Tables</a> &nbsp;for veer and encounters, that format might be more suitable.&nbsp;