Apologies for formatting, I'm on mobile. I'll do my best to make it look right.
Hey guys, so I just recently got into this and had the wonderful idea to take a script that randomly takes names from a list and turns them into D&D characters. Right now, I'm trying to have the script select names from a list where one group is more likely to be chosen than the other.
I want to be able to press Control q and generate names where human names are more likely to be chosen than half elf names.
If you can describe how to do this as well, my DMs setting has I think 25 different races to choose from. I just picked human and half-elf while I'm learning what to do. Also, I found a script online that I've Frankensteined into this, so I have no idea what StringSplit, ValueArray, `, or % ValueArray%rand% mean
{
Random, var, 1, 100
{
if (var 20, 100)
{
Values = Jack ,Jane ,Jerry
StringSplit, ValueArray, Values, `,
Random, rand, 1, 3
SendInput % ValueArray%Rand%
}
}
{
if (var 1, 19)
{
Values = Meliana ,Melechael ,Mytostinks
StringSplit, ValueArray, Values, `,
Random, rand, 1, 3
SendInput % ValueArray%rand%
Thank you in advance for the help! I'm a little lost!
Subreddit
Post Details
- Posted
- 6 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/AutoHotkey/...