How do I. . . get a generator to list multiple entries?

General program usage, discussion on writing generators for IPad Pro.

How do I. . . get a generator to list multiple entries?

Postby jdrakeh » Mon Jul 05, 2010 5:11 am

Frex, the AdventureHooks.ipt in c:/program files(x86)/nbos/inspirationpadpro2/generators/encounters generates a single hook at a time, drawn from the AdventureHooks.ipt in the c:/program files(x86)/nbos/inspirationpadpro2/common/nbos folder. What command would I need to use in order to get it to present *two* hooks at a time drawn from the AdventureHooks.ipt in the c:/program files(x86)/nbos/inspirationpadpro2/common/nbos folder?
jdrakeh
Torch Bearer
 
Posts: 2
Joined: Mon Jul 05, 2010 4:55 am

Re: How do I. . . get a generator to list multiple entries?

Postby Ed_NBOS » Wed Jul 07, 2010 1:31 am

Tell the generator how many times you want to roll on a subtable, instead of [@name] which rolls once, do [@2 name] which produces two results. See the reference section in the help file that describes the [@table] tag.
Ed_NBOS
Site Admin
 
Posts: 522
Joined: Wed Jul 08, 2009 12:16 am

Re: How do I. . . get a generator to list multiple entries?

Postby jdrakeh » Wed Jul 07, 2010 11:01 pm

Thanks!
jdrakeh
Torch Bearer
 
Posts: 2
Joined: Mon Jul 05, 2010 4:55 am

Re: How do I. . . get a generator to list multiple entries?

Postby NanoEther » Tue Oct 12, 2010 8:46 pm

I'm having an issue getting some code to work that is related to the earlier the post,
My original code is:
[@{number=[@{$prompt1}]} BombDrop1]

but I want to change it so that I display how many warheads are dropped, like this:
{number=[@{$prompt1}]} Warheads\n [@{$number} BombDrop1]

But it doesn't work, up to the \n comes out fine, but the rest gives me a (Missing) result. If I put a literal value in it spits out that many repetitions

OK figured it out:
* {!number=[@{$prompt1}]} Warheads\n [@{$number} BombDrop1]

I was missing the '!'
NanoEther
Torch Bearer
 
Posts: 11
Joined: Wed Sep 22, 2010 6:10 pm


Return to Inspiration Pad Pro General

Who is online

Users browsing this forum: No registered users and 0 guests

cron