,rand_skill: 0
,dieroll: 0
*label rand_sub1
*if rand_skill > 80
*rand dieroll 6 10
*return
*elseif rand_skill > 60
*rand dieroll 5 10
*return
*elseif rand_skill > 40
*rand dieroll 4 10
*return
*elseif rand_skill > 20
*rand dieroll 3 10
*return
*else
*rand dieroll 2 10
*return
*set rand_skill command
*gosub rand_sub1
*if (or whatever - using the new value of "dieroll" as required)
*set rand_skill command
*if (born_lucky)
*gosub rand_sub1
*if not (born_lucky)
*gosub rand_sub2
*if (or whatever - using the new value of "dieroll" as required)
*temp description_text
*if description = 1
*set description_text "First Description"
*if description = 2
*set description_text "Second Description"
.
.
.
*stat_chart
text Strength
${description_text}
,description: 0
*temp description_text
*if leadership < 20
*set description_text "People aren't likely to follow you."
*if leadership > 30
*set description_text "People will follow you."
label display
*stat_chart
text Name
text Rank
text Gender
percent Leadership
${description_text}
percent Strength
How strong you are.
percent Will
How resistant you are to outside influence.
stats = {
leadership: 10
,description_text: ""
,strength: 10
,will: 10
,name: "No name"
,rank: "Ensign"
,gender: "None"
};<pre> </pre> tags (put the code between the tags). It looks like you're new here. If you want to get involved, click one of these buttons!