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

Weather Tracking problem...

My game system tracks weather on a moving table. What I mean by this is, there may be 40 types of weather listed for Summer. If the current weather is "number 27" on the list, a dice roll determines whether the weather stays the same (number 27), moves up the list by one increment (number 26), or moves down the list by one increment (number 28). I am thinking that the easiest way to accomplish this would be to have a dummy character sheet called "Weather" with an attribute defined to store the current weather type. All I need to do then is have a macro that reads this attribute, rolls the dice, and then updates the attribute on the character sheet. Is this feasible? and what would I have to do to execute the update to the character sheet? Thanks in advance...Ray
1547424999
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Using your dummy character method, all you'd need is the chatsetattr script to set the attribute.
Scott C. said: Using your dummy character method, all you'd need is the chatsetattr script to set the attribute. Thanks Scott...can you show me a generic example of what that code would look like??
1547465715

Edited 1547466428
With the chatsetattr-script installed, the simplest would be an ability on the same charsheet as the stored weather attribute: !modattr --charid @{character_id} --currentweather|?{New weather?|Stays same, 0|Gets better, 1|Gets worse, -1} Edit: Or with the die included: !modattr --charid @{character_id} --currentweather|[[1d3-2]]
Danii said: With the chatsetattr-script installed, the simplest would be an ability on the same charsheet as the stored weather attribute: !modattr --charid @{character_id} --currentweather|?{New weather?|Stays same, 0|Gets better, 1|Gets worse, -1} Edit: Or with the die included: !modattr --charid @{character_id} --currentweather|[[1d3-2]] ahhhh...makes sense Danii....thanks to you both for your wisdom. :)