It looks like you're new here. If you want to get involved, click one of these buttons!

- 1.9K All Categories
- 193 Site Announcements
- 65 News and Announcements
- 128 General Discussion
- 768 Fractal Mapper
- 194 Fractal Mapper General
- 568 Maps and Symbols
- 30 Skwyre Virtual Table Top
- 27 Skwyre General Discussion
- 3 Skwyre How-To
- 332 AstroSynthesis
- 250 AstroSynthesis General
- 82 AstroSynthesis Plug-ins and Scripts
- 103 The Keep
- 103 The Keep General
- 59 ScreenMonkey General
- 18 ScreenMonkey Setup and Configuration
- 272 Inspiration Pad Pro
- 272 Inspiration Pad Pro General
- 128 NBOS Character Sheet Designer
- 128 Character Sheet Designer General

She was implanted with her 1st clutch, (4-kind). (5-wrong?) She laid (6-number of eggs) eggs, (7-days) days later. (8-survivors)% died, with a total of (8b) survivors. She rested (9-days) days.

5 - Generate random number between 1 & 100. If 1-5, print 'Something went wrong, (5b) days in.' Otherwise blank.

5b - If 4=drone, generate random number between 25 & 50. If 4=warrior, generate random number between 25 & 80. If 4=artisan, generate random number between 25 & 110. If 4=speaker, generate random number between 25 & 170.

6 - If 4=drone, generate random number between 30 & 40. If 4=warrior, generate random number between 15 & 20. If 4=artisan, generate random number between 10 & 12. If 4=speaker, generate random number between 6 & 10.

(7, 8, and 9 are dependent on 4 as well)

And my generator so far goes like this:

Table: Mother Set: Kind = [@Kind&;#93; She was implanted with her 1st clutch, {Kind}, on (2b). [@Wrong&;#93; Table: Kind Type: Lookup Roll: 1d20 1-7: drones 8-13: warriors 14-17: speakers 18-20: artisans Table: Wrong Type: Lookup Roll: 1d100 1-5: Something went wrong [@WrongDays&;#93; days in. 6-100: // leave blank

And that's where everything fell apart. What I need is something like:

if {$Kind} = drones {1d25 + 25}

if {$Kind} = warriors {1d55 + 25}

if {$Kind} = speakers {1d145 + 25}

if {$Kind} = artisans[do] {1d85 + 25}[end]

But conditionals can't do that and I can't figure a way to make it work. The only way I can figure to do it is something like

Table: Mothers She was implanted with her 1st clutch, [@Kind&;#93;, on (2b). Table: Kind Type: Lookup Roll: 1d20 1-7: [@Drones&;#93; 8-13: warriors 14-17: speakers 18-20: artisans Table: Drones , on (2b). [@WrongDrone&;#93;. She laid {1d10 + 20} eggs, {1d12 + 54} days later. {1d10 * 10}% died. (etc) Table: WrongDrone Type: Lookup Roll: 1d100 1-5: Something went wrong {1d25 + 25} days in. 6-100: // leave blank

And basically duplicate all the stuff four times. There HAS to be a better way of doing that, but I don't know it. Suggestions?

## Comments

And a stupid question, because I'm used to dealing with random number generators, not dice.

How do I get a random number between 30 & 40? 1d10 + 30 won't give 30...

1d11 + 29