Hi All,
I would like to create a macro that rolls randomly on separate tables to generate items. For example, there is a 50% chance that you will roll on Table X but a 25% chance on table Y. Any help appreciated.
Roll Randomly Between Separate Tables
Moderators: dorpond, trevor, Azhrei
Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
-
- Kobold
- Posts: 16
- Joined: Wed Jul 24, 2013 11:50 am
Re: Roll Randomly Between Separate Tables
I would use tables, just like they do in the games.
So table 1 would contain a list of table names: Then your code would be something like:
Then you can muck about with the percentages, just by altering the values in the tables.
So table 1 would contain a list of table names: Then your code would be something like:
Code: Select all
[h:tableName= table("tbl1")]
[r: table(h:tableName)]