athornton: Angry.  Drunken.  BOFH. (Default)
[personal profile] athornton
I took the opportunity of Secret Santicore to teach myself some Javascript.

First I took my table and implemented it as a Web 1.0 CGI script in Perl; then I ported that to Javascript.

The Javascript version is at santicore.fsf.net and the CGI version is linked from there.

The request was "Spells for door traps, the more obscure the better," so what I did was take the list of spells in Unearthed Arcana and select all the ones I could think of plausible door traps for.

Then I created a choice function. Actually, I created three:

One is straight-up Gonzo: equal chance of any spell, any level, any class.

One is Location-Independent: I assigned a weight to the class choice (15% Cleric, 5% Druid, 70% Magic-User, 10% Illusionist), and then a weight to each spell level (the top-level spell got one slot, the second-from-the-top two, and so on, until you get to the bottom of the list). Then within a class/level the choice is equally-weighted.

The third is Depth-Based. Basically, I rolled a d20 for the Level Of Characters That Should Be Exploring Here, and picked the highest-level spell of the chosen class (same weighted function as in Location-Independent) that a character could cast. Then I applied 4DF to it (4d3-8), capped at top or bottom as needed, and then picked a random spell of that class/level. This sort of approximates 3E Challenge Ratings, really.

Then for each spell, you may need to know the level at which it is cast, so that's the minimum level required for the spell plus 1d6-1.
From:
Anonymous( )Anonymous This account has disabled anonymous posting.
OpenID( )OpenID You can comment on this post while signed in with an account from many other sites, once you have confirmed your email address. Sign in using OpenID.
User
Account name:
Password:
If you don't have an account you can create one now.
Subject:
HTML doesn't work in the subject.

Message:

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org


 
Notice: This account is set to log the IP addresses of everyone who comments.
Links will be displayed as unclickable URLs to help prevent spam.

Profile

athornton: Angry.  Drunken.  BOFH. (Default)
athornton

July 2016

S M T W T F S
     12
3456789
10111213141516
17181920212223
2425262728 2930
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 23rd, 2017 02:43 am
Powered by Dreamwidth Studios