-
Notifications
You must be signed in to change notification settings - Fork 0
/
StoryBuilder
160 lines (129 loc) · 2.66 KB
/
StoryBuilder
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
StoryBuilder
GenerateGroup
Seeded Categories:
-
(World) [Res, Cal, Fir]
(Region) [North, South, East, West, Northeast, Northwest, Southeast, Southwest, Central]
world:[
{
id: 1,
name: 'Res',
},{
id: 2,
name: 'Cal'
},{
id: 3,
name: 'Fir'
}
]
region:[
{
id: 1,
region: 'North'
},
{
id: 2,
region: 'South'
},
{
id: 3,
region: 'East'
},{
id: 4,
region: 'West'
},{
id: 5,
region: 'Northeast'
},{
id: 6,
region: 'Northwest'
},{
id: 7,
region: 'Southwest'
},{
id: 8,
region: 'Southeast'
}
]
Familes:
------------------------------------------------------------------------
Take random number size between 5 and 80 and generate characters based off family seeding.
Family Name - grab random name from db [last name]
Ancestor [ family prime ] - generate original person with characteristics (Adam)
Then build a tree
Total Family Size, average 4 kids per generation (minimum 5 total)
{
id:
parent_id:
first_name:
last_name:
}
-------------------------------------------------------------------------------------------
var randomFirstName = function(names){
};
var char_id_track = 1; //main scope
const num_children = 4;
const prime = {
id: char_id_track,
parent_id: 0,
first_name: 'Adam',
last_name: 'Lathsi'
};
var build_family = function(patriarch, family_size){
let family = [patriarch];
let next_generation = [];
var create_child = function(p){
char_id_track++;
let c = {
id: char_id_track,
parent_id: p.id;
first_name: randFirstName(),
last_name: p.last_name,
};
next_generation.push[c];
family.push[c];
};
let members = [patriarch];
let gen_track = 1;
while(family.length < family_size){
//if our next generation queue is full up, iterate through that and clear it
if(next_generation.length > ( Math.pow( num_children,gen_track ) - 1 ) ){
members = next_generation;
next_generation = [];
gen_track++;
}
members.map(create_child);
}//end loop
}
build_family(prime, 10);
-------------------------------------------------------------------------------------------
Character:
-
(First Name) ( random 'first_name' )
(Last Name) ( random 'last_name' & family )
(Special 1) ( random > threshold | random special )
(Special 2) ( random > threshold | random special )
-Story:
World:
Country/Kingdom:
State/Barony:
Family:
[ Result of family generation ]
Organization/Religion:
[First name] [Last name] is a member of the [ ]
-Attributes:
Strength
Dexterity
Charisma
Psychic
------------------------------------------------------------------------
Item Slots:
Head 1
Eyes 1
Neck 1
Torso 1
Arms 2
Legs 2
Feet 1
Hands 2
Wrists 2