Free D&D campaign tools (for iOS)

Nenn Esoss

First Post
OK, so I arrived here yesterday and my first post was basically me asking out for some ideas on smashing a few dragons that hold a grudge for us having killed and bartered one of theirs who happen to be the co-founder of a fanatics christian-like sect which we have burnt one of their churches down after locking-in the choir and turning their head priest into a zombie after which we burnt the place down... :blush:

I said in that A case of misplaced dragon anger thread, I would try to make up for my barging in which a contribution to the community, so here it is.

I'm a professional software developer and in my free time, developed a scripting language which I have used for a number of purpose. I eventually ported the language and packaged it into a complete environment for use on the iPhone, iPod Touch and iPads (all models are supported). This app is called MoPile Explorer and is freely available on the App store.

Where this gets interesting is that in the course of using it for my own use and for testing out new language features, I have used my scripting tool to develop some D&D tools. All source code for these scripts is on the Pile Samples Wiki page.

Get MoPile Explorer in your device first and head up to the wiki to copy and paste the scripts in your App. The scripts are described on the wiki but let me tingle your senses with a copy of the descriptions:

D20

The D20 sample code is a script that simply defines a number of functions that rolls dices of given faces, such as is popular in many role playing games.
Use it in your own scripts using the <D20> import.


Mass Attack

Requires D20 above!
This sample script shows how one can automate mass attacks in role playing games. It outputs the results of each "dice rolls" and compiles the count of successful attacks and foul ones.


NPC

Requires D20 above!
This script is used to define a "NPC" class that you can import in your own script. You can adjust the values of your specific instance if you want and then call NPC.Make to generate a random role playing character.


Races

Requires D20, NPC above!
This script shows how you can import a module ("NPC") and instanciate specializations of it to create new versions of NPC. It then adjusts some of the variables defined in NPC for each specialization and defines MakeParty function to generate one role playing character for each specialization.


Make NPC party

Requires: D20, NPC, Races
This sample script imports <Races> (which in turned imports <NPC> which imports <D20>) and calls MakeParty.
This will generate a party of role playing characters.


The Pile language is simple enough so that most of you can come up with your own scripts or even modify the ons I provided.

The above sample scripts were created with the 2E system in mind.

The Mass Attack is especially useful in large campaigns. We use it weekly.

Again, all these tools are free. Not making a dime on them and am not asking for anything in return other than Pass To The Next. If you come up with interesting D&D scrips, please do share them to the community here.

Thanks and have fun.
 

log in or register to remove this ad

Another script, not on the wiki site, does mass Savings Throws. Here is the code you copy-paste in MoPile Explorer. Requires D20 to be there too.

Code:
;
; Mass Savings Throw.pile
;
; Look for sample code at http://www.doryu.ca/Pile/Forum/
;

<ENV>
<D20>

"How many characters?" input num set
"Min Sav Throw?" input 1 sub js set
0 numOK set

increment
{
    numOK ? 1 add numOK set
} def

doRoll
{
    d20 ! dup $ js ? ascend increment rot ifend
} def

num ? doRoll repeat

numOK ? " succeeded their savings throw" cat print

The code outputs something like:

Code:
10
5
2
8
4
17
17
12
10
16
16
20
10
13
5
3
2
15
9
20
12 succeeded their savings throw
(null)
 

Remove ads

Top